Skip to content

Commit 582da03

Browse files
authored
Merge pull request #2589 from OpenNuvoton/ccli8
[NUC472] Fix heap configuration error with armcc
2 parents 5c30c0f + 0194135 commit 582da03

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rtos/rtx/TARGET_CORTEX_M/RTX_CM_lib.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -579,12 +579,12 @@ osThreadDef_t os_thread_def_main = {(os_pthread)pre_main, osPriorityNormal, 1U,
579579

580580
#elif defined(TARGET_NUMAKER_PFM_NUC472)
581581
# if defined(__CC_ARM)
582-
extern uint32_t Image$$ARM_LIB_HEAP$$Base[];
583-
extern uint32_t Image$$ARM_LIB_HEAP$$Length[];
582+
extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Base[];
583+
extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Length[];
584584
extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Base[];
585585
extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Length[];
586-
#define HEAP_START ((unsigned char*) Image$$ARM_LIB_HEAP$$Base)
587-
#define HEAP_SIZE ((uint32_t) Image$$ARM_LIB_HEAP$$Length)
586+
#define HEAP_START ((unsigned char*) Image$$ARM_LIB_HEAP$$ZI$$Base)
587+
#define HEAP_SIZE ((uint32_t) Image$$ARM_LIB_HEAP$$ZI$$Length)
588588
#define ISR_STACK_START ((unsigned char*)Image$$ARM_LIB_STACK$$ZI$$Base)
589589
#define ISR_STACK_SIZE ((uint32_t)Image$$ARM_LIB_STACK$$ZI$$Length)
590590
# elif defined(__GNUC__)

0 commit comments

Comments
 (0)