Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers

hello

Altera_Forum
Honored Contributor II
1,279 Views

hello 

I would like your help I am new to the Nios II environment alters need to create a new SOPC the code you get is this and create a new nios 2 application and bsp# include <stdio.h># include "system.h"# define switches (volatile char *) 0x0003000# define leds (char *) 0x0003010 

int main() 

{ while (1) 

*leds = *switches; 

The errors I get are these 

luces.elf: section. exceptions lma 0x1020 overlaps previous sections 

luces.elf: section. 0x11b4 lma text overlaps previous sections 

make: *** [luces.elf] Error 1 

onchip_memory2_0 region is full (luces.elf section. text) 

section. exceptions [00001020 -> 000011b3] overlaps section. Rodata [00001020 -> 00001053] 

section. rwdata [00002368 -> 0000367b] overlaps section. text [000011b4 -> 00003403]
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
279 Views

Your onchip_memory is too small to contain your code. Either increase the sive of that memory, use an external memory, or reduce your code size by enabling the optimizations and using the small C library.

0 Kudos
Altera_Forum
Honored Contributor II
279 Views

Thanks and fixed the memory that I collapsed but now I get these errors 

make: *** [../haber/-recurs-make-lib]  

make[1]: *** [public.mk]
0 Kudos
Altera_Forum
Honored Contributor II
279 Views

Do you have any error messages before that?

0 Kudos
Altera_Forum
Honored Contributor II
279 Views

not only give me these two errors after fixing the memory

0 Kudos
Altera_Forum
Honored Contributor II
279 Views

Sorry, I have no idea then... 

Try to clean your project and rebuild it, or check that you don't have any spaces in your project path (this is a persistent bug)
0 Kudos
Altera_Forum
Honored Contributor II
279 Views

Hello and solved the problem now gives me the error when I pass a plate says you can not download the file. Elf 

The error I get is 

nios2-download: error: dog wrapper script only download one file at a time 

But first give me the run configuration failure Target connection
0 Kudos
Reply