2019-02-28 10:43 AM
How can I locate array in SRAM instead of DTCM RAM(128kB)?
uint16_t array[320*240] is overflowed in H743ZI.
Sytem workbench says <DTCMRAM overflowed by 25760 bytes>.
I don't have any trouble with F429ZI.
Solved! Go to Solution.
2019-02-28 11:16 AM
Describe section naming in your linker script and use the attribute directive to drive placement into the appropriate section.
2019-02-28 11:16 AM
Describe section naming in your linker script and use the attribute directive to drive placement into the appropriate section.
2019-02-28 12:05 PM
Thank you for your comment. I am a newbie diving into H7.
Would you give me an example to AXI SRAM or any other section?
2019-02-28 01:13 PM
I'm not a day-to-day user if GNU/GCC, I'll look at what I have pre-built later
The compiler side needs to looks something like this
char buf[256] __attribute__ ((section(".d2sram")));
And on the linker script side
.d2sram :
{
. = ALIGN(4);
*(.d2sram) /* .d2sram sections */
*(.d2sram*) /* .d2sram* sections */
} >RAM_D2 AT> FLASH
2019-02-28 07:58 PM
Thank you very much. I will try as you taught me.