Hi,
I'm usingMCUXpresso with MIMXRT1010-EVK hardware.
In my program I need a big array. The linker tries to put this in the SRAM_DTC (which I assume is the DTCM). But there is not enough room. While the SRAM_OC (which I assume is the OCRAM) is completely empty.
So, how to instruct the linker to put my big array in SRAM_OC?
Is there some tutorial about this kind of memory management stuff?
已解决! 转到解答。
Ok, I found it out.
So here is how I did it, in case other people may want to know:
In the Properties of the project, under C/C++ Build -> MCU settings, I could see that the OCRAM section has the alias 'RAM3'. (here you also can change the sizes of the RAM sections)
Then in the code you can do:
#include <cr_section_macros.h>
__DATA(RAM3) uint16_t buffer[BUFSIZE];
Ok, I found it out.
So here is how I did it, in case other people may want to know:
In the Properties of the project, under C/C++ Build -> MCU settings, I could see that the OCRAM section has the alias 'RAM3'. (here you also can change the sizes of the RAM sections)
Then in the code you can do:
#include <cr_section_macros.h>
__DATA(RAM3) uint16_t buffer[BUFSIZE];