KL16z don't work in run mode

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KL16z don't work in run mode

跳至解决方案
998 次查看
carlosalexandre
Contributor II

Hi,

I am developing a program using a kinetis kl16z128. It's works correctly when in "debug mode", but in "run mode", does not boot. It's like if I was not power up or its in reset.

When I click "resume" in debug mode it works correctly. I disconnect the USBDM and reset the board, the programm load do not boot, notinhg works.

I am using CodeWarrior 10.7 and USBDM.

Does anyone know what this problem is?

标签 (1)
标记 (1)
1 解答
830 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hello Carlos Alexandre Ferri,

     1. Make sure you download the code in the flash, not the RAM.

     After you download the code to the flash, power off and power on the board again, to check whether your application code works or not?

    I don't have the USBDM on my side, so I don't know whether it caused by your USBDM.

     2.    Check the following properties

pastedImage_1.png

  Make sure your are select the ewl, not ewl_hosted.

 3. If you are still not OK,

   Check whether your USBDM can download the .bin, .hex directly, without the IDE.

  Then, you can generate the .hex or .bin to download directly.


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

2 回复数
831 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hello Carlos Alexandre Ferri,

     1. Make sure you download the code in the flash, not the RAM.

     After you download the code to the flash, power off and power on the board again, to check whether your application code works or not?

    I don't have the USBDM on my side, so I don't know whether it caused by your USBDM.

     2.    Check the following properties

pastedImage_1.png

  Make sure your are select the ewl, not ewl_hosted.

 3. If you are still not OK,

   Check whether your USBDM can download the .bin, .hex directly, without the IDE.

  Then, you can generate the .hex or .bin to download directly.


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

830 次查看
carlosalexandre
Contributor II

Hi Kerry,

Thank you so much for help.

My project was set "ewl_hosted", when I change to "ewl",  it worked right.

Best regards

Alexandre

0 项奖励
回复