The SDK_1.3 of KL36 is used in my project.
My source code is in the attachment.
- I need to feed the external watch dog when erasing the flash. So I add a “flash_call_back” function to the “flashSSDConfig”.


- The flash erasing in the function “fapp_params_to_flash(); ” is OK before adding “GPIO_DRV_TogglePinOutput(HARDWARE_WATCHDOG);” to the “flash_call_back”.


- The flash erasing is failed after adding “GPIO_DRV_TogglePinOutput(HARDWARE_WATCHDOG);” to the “flash_call_back”. The CPU always resets and it is caused by the “core lockup”(The bit “LOCKUP” of RCM_SRS1 is set as 1).


Can you tell me what is the reason?
Remark: The SDK_1.3 is used in my project.
My source code is in the attachment.
Please copy it to C:\Freescale\SDK_1.3_KL36\examples\frdmkl46z.
My project is in the address
C:\Freescale\SDK_1.3_KL36\examples\frdmkl46z\user_apps\FMU_MP_W\iar
Original Attachment has been moved to: frdmkl46z.zip