Altera_Forum
Honored Contributor
15 years agoProblems with Nios II
Hi all
I'm new in using nios II and I have some problems: after generating system on SOPC Builder with: - nios 2/f - jtag uart - pio (output, 1 bit) - sysid - onchip_memory i open nios 2 SBT and select the template hello world. Now: - if i build the pjt, the error is "on chip memory overflowed by xxx bytes" i solved it entering in the BSP editor , unchecking - enable c++ - enable clean exit - enable exit and checking - enable small c library - enable reduced device drivers than generate BSP. That's ok? But if i add to hello world.c# include "system.h"# include "altera_avalon_poi_regs.h"
and the other code suggested in "my first nios II software design" to let blink a led,next to the 2 added include i have a question mark that says "unresolved inclusion" and gives me error in building pjt ("undefined reference to main") someone can help? (the only code that i run without problems is hello world small...) n.b: my hardware is altera DE2 board (cyclone 2), and my sw, quartus 2 10.1 and last version of nios2 SBT