Forum Discussion
Altera_Forum
Honored Contributor
21 years ago"__attribute__((section(".SDRAM")))" problem
Hi all, I'm trying to allocate a buffer in SDRAM using the declaration: volatile int buff1_app[1280] __attribute__((section(".SDRAM"))); in SOPC i've defined a SDRAM controller n...
Altera_Forum
Honored Contributor
21 years agoHi monkeyboy,
if I use lowcase: volatile int buff1_app[1280] __attribute__((section(".sdram"))); I have no compilation error. I download my code in flash, power on the board, the program boots but, after some printf, it stops its execution. If i declare my buffer: volatile int buff1_app[1280]; everything works. What's the difference between the two declarations? In my system library properties i have program data,read only data, read\write data in sdram. thanks