Skip to main content
aneveux
Associate
November 23, 2017
Solved

How to declare a big arraw in User RAM with STM32H743ZI

  • November 23, 2017
  • 2 replies
  • 851 views
Posted on November 23, 2017 at 11:31

Dear all,

I'm using STM32H743ZI (nucleo-H743ZI board)

This µc have 1Mb of SRAM (512 Kbytes of user sram ?)

When i declare array of 100k uint16

I have this error message :

'section `.bss' will not fit in region `DTCMRAM''

region `DTCMRAM' overflowed by 79544 bytes

How I can place this array in User SRAM ? Not in DTCMRAM ?

Thanks in advance

    This topic has been closed for replies.
    Best answer by aneveux
    Posted on November 23, 2017 at 14:05

    I resolved my problem

    I define my variable in specific sections

      .mysection:

      {

        KEEP(*(.MysectionSection)) /* keep my variable even if not referenced */

      } > RAM_D1

    It's now ok,

    Thanks

    2 replies

    Tesla DeLorean
    Guru
    November 23, 2017
    Posted on November 23, 2017 at 13:52

    Use the attribute setting to direct the allocation into a different section?

    Look at what you have defined in your linker script or scatter file.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    aneveux
    aneveuxAuthorBest answer
    Associate
    November 23, 2017
    Posted on November 23, 2017 at 14:05

    I resolved my problem

    I define my variable in specific sections

      .mysection:

      {

        KEEP(*(.MysectionSection)) /* keep my variable even if not referenced */

      } > RAM_D1

    It's now ok,

    Thanks