Skip to main content
YYi
Associate
Feb 28, 2019 6:43 PM UTC
Solved

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

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.

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Feb 28, 2019 7:16 PM UTC

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..

4 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Feb 28, 2019 7:16 PM UTC

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
YYi
YYiAuthor
Associate
Feb 28, 2019 8:05 PM UTC

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?

Tesla DeLorean
Guru
Feb 28, 2019 9:13 PM UTC

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
YYi
YYiAuthor
Associate
Mar 1, 2019 3:58 AM UTC

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