I chose my device from the link below and I followed the steps. However, I still can't debug my code.
I can't see OpenSDA CDC serial port. Can anyone help me?
Thank you.
OpenSDA Serial and Debug Adapter | NXP Semiconductors
Hi nxp_user123,
Please refer to: DAPLink bootloader update. Check if your device is in a corrupted state or bricked state, and update your board. Then Step 5 will show you how to: Install an interface firmware application
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.
-------------------------------------------------------------------------------
Hi @Robin_Shen,
I checked my device and it is in a bricked state. After, I followed the steps in the link you posted.
This time I received a message that .axf file does not exist. Am I doing something wrong with the steps?
Best Regards,
nxp_user123
Does that .axf file exist? If it does not exist, then you might have missed to build it (hammer icon in the toolbar) maybe? Or your build has not succeeded and you have errors in the build? Check the console output or the 'Problems' view.
I hope this helps,
Erich
After you followed the steps in the link, can you see the device mounted asMAINTENANCE
?
I can see the PEMicro blmd_master PE Debug in your image, would you please delete it and then click debug again?
I am using MKV11Z128 to reprogram TWR-KE18F. Devices are connected via j link
I did what you said. But I couldn't see available probes. What should I do?
as you are using pyOCD: this is not supported, at least not out of the box. You have to consult the pyOCD group: https://pyocd.io/
Thanks for your advice. I tried what you said but the probes were not found. @ErichStyger
Here is my system.
Seems that you connect to the wrong connector(J10). J1 is used to program K20 OpenSDA.
I found the Unique ID number. Which command should I use at the command line?
So after program K20 OpenSDA.through J1, did OpenSDA CDC serial port show in device manager? I don't know how to use command line in fact. Are you able to debug TWR-KE18F in MCUXpresso IDE?
The device manager shows the port but still cannot debug it. I used pyocd flash command in the command line but it said that KE18F16 is in secure state. How can I disable the secure state?
Sorry. I don't know how to unsecure MCU by using pyocd. It will pop up a windows let you click Yes to unsecure the MCU if you use MCUXpresso IDE.
Do I have a chance to reprogram TWR-KE18F in MCUXpresso IDE?
You can have a try. If you did not disable mass erase. https://www.nxp.com/docs/en/application-note/AN4835.pdf