Forum Discussion
Altera_Forum
Honored Contributor
21 years agohow to place firmware in ROM
I use NIOSII IDE ( Version: 1.1.0 Build: 137 ) to write c software for a design consisting of SRAM, peripherals and a PCI-Interface. Booting is done via EPCS and a short programme initializes all per...
Altera_Forum
Honored Contributor
21 years agoHi
This works fine for me as well, but when I try to place a variable in the same memory, I get an error about causing a section type conflict. Just to make clear: I have a program running from sdram. Then I want to have a variable in onchip memory as well as another function in onchip memory. Here is the codeint var __attribute__ ((section (".onchip_ram")))=0;
int func(void) __attribute__ ((section (".onchip_ram"))); Is there any known problem placing both of these in the same memory ? Nir