File tree Expand file tree Collapse file tree
firmware/hw_layer/ports/stm32 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010#if defined(AT32F4XX )
1111#define CCM_OPTIONAL
1212#define SDRAM_OPTIONAL
13- #define NO_CACHE
13+ #define NO_CACHE __attribute__((aligned(4)))
1414#define BKUP_RAM_NOINIT
1515#else
1616// CCM memory is 64k
1717#define CCM_OPTIONAL __attribute__((section(".ram4")))
1818#define SDRAM_OPTIONAL __attribute__((section(".ram7")))
19- #define NO_CACHE // F4 has no cache, do nothing
19+ #define NO_CACHE __attribute__((aligned(4))) // F4 has no cache, do nothing
2020#define BKUP_RAM_NOINIT __attribute__((section(".bkup_ram_noinit")))
2121#define MCU_HAS_CCM_RAM TRUE
2222#endif
Original file line number Diff line number Diff line change 55
66// SRAM2 is 16k and set to disable dcache (see STM32_NOCACHE_ENABLE in mcuconf.h)
77// we have another way to put something in no cache area - __nocache_ prefix in name
8- #define NO_CACHE __attribute__((section(".ram2")))
8+ #define NO_CACHE __attribute__((aligned(4))) __attribute__(( section(".ram2")))
99
1010// TODO: test and switch to this
1111// Current ChibiOS puts nocache data into SRAM3/DTCM that is not chached by design
Original file line number Diff line number Diff line change 33//TODO: update LD file!
44#define SDRAM_OPTIONAL __attribute__((section(".ram8")))
55// SRAM3 is 32k and set to disable dcache
6- #define NO_CACHE __attribute__((section(".ram3")))
6+ #define NO_CACHE __attribute__((aligned(4))) __attribute__(( section(".ram3")))
77
88#define BKUP_RAM_NOINIT __attribute__((section(".bkup_ram_noinit")))
You can’t perform that action at this time.
0 commit comments