Skip to main content
YYi
Associate
February 28, 2019
Solved

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

  • February 28, 2019
  • 4 replies
  • 1148 views

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.
Best answer by Tesla DeLorean

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

4 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
February 28, 2019

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
February 28, 2019

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
February 28, 2019

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
March 1, 2019

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