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 agoCould you try and put the reset and exceptions vectors to the SDRAM and see if it still hangs? This could help us determine if the problem comes from here or not.
Even if the variable is away from the vectors list, a software bug (such as a negative offset) could overwrite something important. I have another question. In your linealt_read_flash( flash, offset, (void*) ( &rawVideo ), size); what is the value of "size"? If its greater than 4, you overwrite unnallocated memory space.