Hard fault is hitting at Clock_Ip_SetFlashWaitStatesCallback() in freeRTOS Application

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hard fault is hitting at Clock_Ip_SetFlashWaitStatesCallback() in freeRTOS Application

1,107 Views
samvidh
Contributor II

linker file i set.....s32k312.

int_dtcm : ORIGIN = 0x20000000, LENGTH = 0x0000F000 /* 60KB */
.my_heap (NOLOAD) :
{
*(.my_heap)
}> int_dtcm
__attribute__((section(".my_heap")))uint8_t ucHeap[configTOTAL_HEAP_SIZE];
Memory size

#define configTOTAL_HEAP_SIZE (( size_t ) 1024*28 )
#define configAPPLICATION_ALLOCATED_HEAP 1

Hard fault is hitting at Clock_Ip_SetFlashWaitStatesCallback()
how can i avoid it

0 Kudos
Reply
3 Replies

1,064 Views
samvidh
Contributor II

Hi @danielmartynek,

i'm using RTD 3.0, kinldly check the below image 

samvidh_0-1739336284898.png

 

0 Kudos
Reply

1,058 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @samvidh,

The image you posted does not say anything.

You should be able to identify the type of the fault exception.

Since you changed the linker file, it can be caused by the MPU (MemManage Fault exception).

 

Is this the only change you made in the linker file?

 

Can you share the whole project?

 

Regards,

Daniel

0 Kudos
Reply