variable mapping for STM32F769

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
neums
Posts: 137
Joined: Fri May 08, 2015 1:09 pm
Has thanked: 10 times
Been thanked: 5 times

variable mapping for STM32F769

Post by neums »

Hi,
i am using the STM32F769. The initialized variables are linked to ram0 (alias DATA_RAM) and not initialized variables are linked to ram3 (alias BSS_RAM) which are different as the mapping is as follows:

Code: Select all

    ram0    : org = 0x20020000, len = 384k      /* SRAM1 + SRAM2 */
    ram1    : org = 0x20020000, len = 368k      /* SRAM1 */
    ram2    : org = 0x2007C000, len = 16k       /* SRAM2 */
    ram3    : org = 0x20000000, len = 128k      /* DTCM-RAM */

What is the technical reason for this?

Thank you.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: variable mapping for STM32F769

Post by Giovanni »

Hi,

Cortex-M7 does not support HW cache coherency.

DTCM is not cached, this is done to make cache handling not required when buffers are placed in BSS (most common case). You may put BSS in a different RAM but then you need to take care of cache coherence manually.

Giovanni
Post Reply