How to prevent MBed OS from using DTCM in Nucleo-F767ZI board?


We are trying to place some large array into DTCM in STM32F767, therefore we need to prevent this part of RAM being used as heap. I assume we can edit linker script somehow.

We tried to change MBED_RAM1:

#define MBED_RAM1_START  0x20000000    // start of DTCM
#define MBED_RAM1_SIZE   0x20000
#define MBED_RAM1_START  0x20010000
#define MBED_RAM1_SIZE   0x10000

This didn’t work.

What did we miss here?


use mbed_app.json…
(The configuration system - Program setup | Mbed OS 6 Documentation)

1 Like