I am trying to program LPC55s36 board using MCU-link debug probe.
the fist time the board is connected but after debug session it never connects!
I tried it on different board and now I can not program any of them.
has anybody have any experience on that?
Hi,
I was able to proceed with the debug of a program with Gavin's recommendation.
Solved: 回复: Error occurs when debugging FRDM-KW36: Unable ... - NXP Community
Thanks!
Hi,
Were you using the lpcxpresso55S36? I am not sure this board has OpenSDA since it is not one of the options on the dropdown menu in the link provided.
hi!
just wondering if this was solved?
i am encountering the same issue as well and am hoping somebody could help.
thanks!
Hi @All_Seer
If you are using a LPC55 MCU, or similar LPC, try to set the MCU in ISP mode and try to make a mass erase. This is common way to regain debugg access :). ISP mode enter procedure is describen in the MCU user manual
Now, if you are using a custom board and the above still does not help, try to review the SWD connections, have proper power rails.
If still you can not access by SWD, while you are on ISP mode, try to see if you can establish any connection with the ROM bootloader. This can be done with the MCUXpresso Secure Provisioning tool or even with the Flash Magic tool. If you succed with this, try to erase one more time the flash.
All the best,
Diego
I am having the same issue as other members of this post. I have tried the suggested advice but have a couple of questions for you
1. I was able to successfully enter ISP mode by switching jumper JP25 and was even able to to program the CMSIS-DAP and J-Link firmware, but I don't know how to make a mass erase from ISP mode. Trying to mass erase from MCUXpresso IDE shows no compatible probes attached. How do I mass erase in ISP mode?
2. Neither the MCUXpresso Secure Provisioning tool nor the Flash Magic tool show the LPC55S36 as options. Is there anything I can do to be able to use these tools with this processor?
Best,
Antonio
Hi @amonreal
I see! the SPTv5 that I currently have, does not have the LPC55s36, but does have the LPC5536.
The S is version with secure features, like secure boot, debug authentication etc. Can you try to use the LPC553x? I presume that support for LPC55s36 will be added soon on SPT, I can not tell for Flash magic.
When you are in ISP mode, you will need to use BHLOST to communicate with the ROM. However when attempting to burn a new image, the tool does the erase for you. Use the tool's show write script button to see the BLHOST write script, in the write image section. There you will be able to see an example of the use of BLHOST flash-erase-region command to make an erase.
Diego
Hi @diego_charles,
I went ahead and tried to use the LPC5536 setting but it didn't seem to detect it. However, it did detect it as a LPC55S69. I then went ahead and generated the BLHOST write script with those settings. Used the tool's show write script button to see the BLHOST write script. Deleted the lines under "@echo ###Write image###" to only erase the flash and ran it as a batch file. This seemed to work, and once I came out of ISP mode the board didn't have CMSIS-DAP or J-Link firmware so I went back to ISP and installed those.
However after all of that my issue still remains. Is there something I am doing wrong? Do you have any further advice?
Hello,
Try to create a new MCUXpresso IDE workspace when open IDE, then use GUI Flash Tool to Erase chip:
Import a new simple SDK demo, debug again.
BR
Alice
Hi @Alice_Yang,
I have the same issue using lpcxpresso55S36. Attempting to mass erase using GUI Flash Tool fails in the same way. Do you have any suggestions?
Hi Alice:
I faced similiar problem when debug FRDM-KW36, while when I erase chip using GUI Flash Tool, the same error occured:
Is there other solutions?
Hello @Enjoy
Recommend you take a ticket in Kinetis thread:
https://community.nxp.com/t5/Kinetis-Microcontrollers/bd-p/kinetis
BR
Alice