Good day @jingpan @kerryzhou
I would like to place data in the BOARD_SDRAM (external RAM) block on Embedded Artist's uCOM for the RT1176 (for the use of the M7 core).
I can successfully use the cr_section_macros.h macro's to place variables in the SRAM_OC_2 block, but using similar macro's for the BOARD_SDRAM block does not work.
My memory configuration looks like this (standard RT1176 config):
Before any changes to my project, the linker gives the following output for these memory regions:
If I add the following line of code:
then the memory allocation for SRAM_OC2 increases, as it should:
If I change the above testRegion[] allocation to be in BOARD_SDRAM block:
then the memory allocation for BOARD_SDRAM does not increase:
I also tried allocating testRegion[] to SRAM_OC1 like this:
which also didn't affect the linker output:
Why does this work for some regions and not for others?
Is there a setting that I should change to allocate variables to the BOARD_SDRAM region?
Kind regards
D_Tram23
Solved! Go to Solution.
Hi @jingpan
No, that is to put the application in the RAM, not variables/data.
The problem was that I was not using testRegion[ ] in my code, so it was optimised out and not allocated by the linker.
Since I have other variables that are allocated to SRAM_OC2, so it showed up there.
Frustrated regards,
D_Tram23
Hi @jingpan
No, that is to put the application in the RAM, not variables/data.
The problem was that I was not using testRegion[ ] in my code, so it was optimised out and not allocated by the linker.
Since I have other variables that are allocated to SRAM_OC2, so it showed up there.
Frustrated regards,
D_Tram23