cancel
Showing results for 
Search instead for 
Did you mean: 

How to declare a big arraw in User RAM with STM32H743ZI

aneveux
Associate II
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

1 ACCEPTED SOLUTION

Accepted Solutions
aneveux
Associate II
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

View solution in original post

2 REPLIES 2
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
Up vote any posts that you find helpful, it shows what's working..
aneveux
Associate II
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