How to burn the program in KEA8 if SWD is disabled in main.

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

How to burn the program in KEA8 if SWD is disabled in main.

1,181 Views
Jerry_xie
Contributor II

Hi,

I had disable SWD,RST NMI in main function. So I can not burn the program again.

SIM->SOPT &= ~SIM_SOPT_NMIE_MASK
SIM->SOPT &= ~SIM_SOPT_SWDE_MASK
SIM->SOPT &= ~SIM_SOPT_RSTPE_MASK

Connected to ULINK plus, Keil prompts SWD communication failure.

 If the NMI pin is grounded , the program cannot be burned too.

How can I solve the problem?

 

Thanks.

 

Labels (1)
0 Kudos
3 Replies

1,178 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Jerry,

Please use the Kinetis_Recovery_Utility described in Bricking and Recovering FRDM-KL25Z Boards: Reset, SWD Clock and Low Power.

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

1,176 Views
Jerry_xie
Contributor II

It seems nice.  But I only have a ulink-plus...  Is there any other solution? 

 

Thanks!

0 Kudos

1,167 Views
ErichStyger
Senior Contributor V

To my knowledge, the ulink does not have this capability.

The easiest solution for sure would be to use the P&E probe.

Otherwise you might need to write a script for your debug probe: basically you need to reset the probe very fast in a loop and try to halt the processor, and check with the probe if the target is haltet. Not sure if the ulink has this script capability?

Erich

0 Kudos