1, Starup_stm32f40_41xxx. S of "Stack_Size EQU 0 x00001000" set role here?
2, the "options" - "target" of the project Settings IRAM1 start address and size size of the size of the size of the use?
3, in FreeRTOSConfig. H, the macro definition # define configTOTAL_HEAP_SIZE ((size_t) (55 * 1024))?
Three set stack and what relationship between the size of the place? Thank you very much!
CodePudding user response:
A stack, one is the IRAM, one is a heap, entirely different natureCodePudding user response:
Can take a look at this:https://blog.csdn.net/weixin_44578655/article/details/105992659
CodePudding user response:
1, Starup_stm32f40_41xxx. S of "Stack_Size EQU 0 x00001000" set role here?set the task's stack size
2, the "options" - "target" of the project Settings IRAM1 start address and size size of the size of the size of the use?
First you have to understand, IRAM is what, IRAM is the meaning of internal ram, you can put on speed with the requirements of the code, such as the interrupt handler, began to address is the starting address of the IRAM. How big is the size size is IRAM, set the size, it's time to prevent users from using overflow, overflow can detect,
3, in FreeRTOSConfig. H, the macro definition # define configTOTAL_HEAP_SIZE ((size_t) (55 * 1024))?
configTOTAL_HEAP_SIZE is heap size set, can the programmer alloc address, set the size, if you find alloc accept fail, has been to reach the maximum of the size,