Hi,
I tried to use the following definition to set variables in specified SDRAM section:
#include <cr_section_macros.h>
__DATA(RAM4) char data_buffer[1024]; // in SDRAM section
It is all right after I compiled and checking the map file.
But, when I start running, I got hard-fault.
When I use SDRAM as heap stack, it works fine...
I think it may be related to SDRAM initialization because SDARM initialization is done later(after startup)?
Can anyone tell me how to fix this issue, initialize SDRAM earlier, or initialize variables later?
Thanks,
Christie