Skip to content

Commit 8b196df

Browse files
authored
fix: cast linker value for configTOTAL_HEAP_SIZE
Fixes #42
1 parent d624467 commit 8b196df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FreeRTOSConfig_Default.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ extern char _Min_Stack_Size; /* Defined in the linker script */
9999
#define configMINIMAL_STACK_SIZE ((uint16_t)((uint32_t)&_Min_Stack_Size/8))
100100
#endif
101101
#ifndef configTOTAL_HEAP_SIZE
102-
#define configTOTAL_HEAP_SIZE ((size_t)(&_estack - _Min_Stack_Size - &_end))
102+
#define configTOTAL_HEAP_SIZE ((size_t)((uint32_t)&_estack - (uint32_t)&_Min_Stack_Size - (uint32_t)&_end))
103103
#endif
104104
#ifndef configISR_STACK_SIZE_WORDS
105105
#define configISR_STACK_SIZE_WORDS ((uint32_t)&_Min_Stack_Size/4)

0 commit comments

Comments
 (0)