Forum Discussion
Altera_Forum
Honored Contributor
16 years agoHow can I allocate a variable to a specific section?
I want a variable to be allocated in the on-chip RAM. I have all sections (.text, .rodata, .rwdata, .heap, and .stack) in DDR2_SDRAM in the auto-generated linker script. I define a global varia...
Altera_Forum
Honored Contributor
16 years agoWell it seems that you were right, a negative offset is being added to the variable address!
The "size" value is less than a region block size ( which is 65535 Byte ) and I have tried the read operation before using the same size, to different memory device than the onchip RAM, and it passed successfully. Maybe I will change my strategy. Thanks for paying attention