AnsweredAssumed Answered

The question about the flash operation in the KL36.

Question asked by Robin Zou on Dec 8, 2016
Latest reply on Dec 11, 2016 by xiangjun.rong

The SDK_1.3 of KL36 is used in my project.

My source code is in the attachment.

 

  1. I need to feed the external watch dog when erasing the flash. So I add a “flash_call_back” function to the “flashSSDConfig”.
  2. The flash erasing in the function “fapp_params_to_flash();    ” is OK before adding “GPIO_DRV_TogglePinOutput(HARDWARE_WATCHDOG);” to the “flash_call_back”.
  3. 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

Outcomes