cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO-H743ZI. DTCMRAM overflow. How can I locate array in SRAM instead of DTCM RAM(128kB)?

YYi
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions

Describe section naming in your linker script and use the attribute directive to drive placement into the appropriate section.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

4 REPLIES 4

Describe section naming in your linker script and use the attribute directive to drive placement into the appropriate section.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
YYi
Associate II

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?

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
YYi
Associate II

Thank you very much. I will try ​as you taught me.