Forum Discussion
Altera_Forum
Honored Contributor
16 years agoHello,
How are your code sections being initialised? It may be that your on-chip memory has not been loaded. In my system I use flash to store the code images, which are then loaded into RAM by the bootloader at startup. My main code is loaded into an external RAM and I have an ISR which is loaded into on-chip RAM (specified using the __attribute__ keyword as you have described). I'm not 100% sure, but your setup may require you to re-compile your Quartus project (or update RAM contents at least) so that your on-chip RAM is initialised by the FPGA configuration. You should find that the IDE has created a file called onchip_mem.hex in your hardware folder which is used to set the initial contents of your on-chip RAM. I hope this helps. Cheers