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
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