Forum Discussion
Altera_Forum
Honored Contributor
16 years agoNIOS boot loading
Hello, I am new with NIOS architecture. One part of my project deals with NIOS, I don't have to understand what's going on inside, but it has to be loaded so that my project can work fully. I hav...
Altera_Forum
Honored Contributor
16 years agoIn SOPC builder, check that the ram_bootloader memory is connected to the Nios' instruction master port, and that the CPU's reset vector is set to the ram_bootloader.
Then in your boot.c file, add an attribute to every function and static variables so that they end up in the bootloader RAM. Something like:void myfunc(parameters) __attribute__ ((section ("ram_bootloader"))) And then when you compile your code, it should put all those functions in an hex file that you can include in your project.