File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed
bsp/stm32/stm32l4r9-st-sensortile-box/board Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change 55 *
66 * Change Logs:
77 * Date Author Notes
8- * 2018-11-5 SummerGift first version
9- * 2019-04-09 jhb
8+ * 2021-08-09 supperthomas first version
109 */
1110
1211#ifndef __BOARD_H__
@@ -25,12 +24,22 @@ extern "C" {
2524#define STM32_FLASH_SIZE (2048 * 1024)
2625#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
2726
28- #define STM32_SRAM3_SIZE (384)
29- #define STM32_SRAM3_START (0x20040000)
30- #define STM32_SRAM3_END (STM32_SRAM3_START + STM32_SRAM3_SIZE * 1024)
27+ #define STM32_SRAM1_SIZE (640)
28+ #define STM32_SRAM1_START (0x20000000)
29+ #define STM32_SRAM1_END (STM32_SRAM1_START + STM32_SRAM1_SIZE * 1024)
30+
31+ #if defined(__CC_ARM ) || defined(__CLANG_ARM )
32+ extern int Image$$RW_IRAM1$$ZI$$Limit ;
33+ #define HEAP_BEGIN ((void *)&Image$$RW_IRAM1$$ZI$$Limit)
34+ #elif __ICCARM__
35+ #pragma section="CSTACK"
36+ #define HEAP_BEGIN (__segment_end("CSTACK"))
37+ #else
38+ extern int __bss_end ;
39+ #define HEAP_BEGIN ((void *)&__bss_end)
40+ #endif
3141
32- #define HEAP_BEGIN STM32_SRAM3_START
33- #define HEAP_END STM32_SRAM3_END
42+ #define HEAP_END STM32_SRAM1_END
3443
3544void SystemClock_Config (void );
3645
You can’t perform that action at this time.
0 commit comments