FREERTOS heap memory S32k3xx

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FREERTOS heap memory S32k3xx

155 次查看
manoj_123
Contributor I

HEAP_SIZE = DEFINED(__heap_size__) ? __heap_size__ : 0x3C00; /*15kb*/

/* heap section */
.heap (NOLOAD):
{
. += ALIGN(4);
_end = .;
end = .;
_heap_start = .;
. += HEAP_SIZE;
_heap_end = .;
} > int_sram

 

#define configTOTAL_HEAP_SIZE (( size_t ) 1024*8 )


my question is if i try to change configTOTAL_HEAP_SIZE is 10kb or below 15kb its jump to hardfault during runtime but it works perfectly for  configTOTAL_HEAP_SIZE is 8kb how to resolve it  

0 项奖励
回复
1 回复

97 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

could you please specify a device and driver version you are using?
Do you have own example or use a demo one? Any modification you did beside configTOTAL_HEAP_SIZE?
Try to find a function where it goes to fault.
Rerefer e.g. to https://community.nxp.com/t5/S32K-Knowledge-Base/How-To-Debug-A-Fault-Exception-On-ARM-Cortex-M-V7M-...
https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-HARDFAULT-Interrupt-Handling-using-...

BR, Petr

0 项奖励
回复