I am using LPC54606J512BD100 microcontroller and facing a very serious issue.
The issue is that after successful programming the controller and working at random time I am unable to upload the code again and getting error.
Regarding Programming board:
Using LPC-Link 2 Rev B (https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/lpc-link2:OM...) debug board for programming.
Tried in CMSIS-DAP and J-Link (SW) mode.
Board Connection:
Regarding Controller LPC54606J512BD100:
PIO0_2 to PIO0_6 are left unconnected.
Regarding IDE:
I am using Keil uVision5.
I need help as I am unable to program the microcontroller. Please let me know if any further detail is required if any.
Hi munjal
1. Why don't use use LPC-Link2 J7 as debug interface? Please try J7 debug interface instead.
2. refer attached video, if Jlink commander can detect LPC Core?
3. If 2 fails, Please use LPCScypt update LPC-Link2 firmware, try both CMSIS-DAP and Jlink interface respectively, to make sure LPC-Link2 onboard firmware no issue.
4. If 2 detects LPC core successfully, try to use MCUXpresso IDE to test the connect, MCUXpresso IDE can detect debug interface automatically without other setting.
5. Is your LPC54608 board custom designed PCB? If yes, refer this article to check the interface design
https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Design-Considerations-for-Debug/m-p/469565#M44
Thanks,
Jun Zhang
Hi @ZhangJennie
Earlier the board design was using the J7 connector only and there were multiple issue. At that time we were using MCUXpresso and we were getting the same issue with different error name as wire ack fault in dap access. Also the connector was not reliable and broke more often. Then as per the discussion with NXP FAE we switched to using J6 and after 3 months of working with the same hardware and configuration this issue has came again were the controller's are working with the existing code but we are unable to program the new one code. FAE visited our site and no permanent or proper solution were provided. We have almost changed around 50+ controller with the same issue and now it is becoming pain. Need help to identify the problem whether in hardware/Microcontroller/Debugger or in Driver.
From your description, I wonder your custom board SWD design could have problem.
Again, please follow this article to check SWD design. Or post your SWD design here, I will help to check.
Thanks,
Jun Zhang
HI
There is problem on your reset circuit design
please use RC circuit to produce reset . suggest R=100kΩ, C=0.1~1uF
Thanks,
Jun Zhang
So in your reset circuit, R=1K, C=0.1uF?
Yes, this is used at power on basically.
The value of R*C is not enough.
Please try combination of R=100kΩ, C=0.1uF to make reset low longer.
Thanks,
Jun Zhang
Tried with the combination no luck, still unable to program the controller with the issue.
Tried with the JLink Commander and in this it was not able to connect and displayed the message Connect under reset failed. At this time one of the SWDIO or SWCLK is low.
Also In some controller was successfully able to establish core connection.
Performed Following | |||
Board (with microcontroller) | External Supply (3.3V) | Programmer | Output/Controller Programmed |
Board Connected with 10K pullup on CLK and SWDIO pin | Given to board | JP2 Open | Fail |
Board Connected with 10K pullup on CLK and SWDIO pin | Not Given | JP2 Open | Fail |
Board Connected with 10K pullup on CLK and SWDIO pin | Not Given | JP2 Close | Fail |
Board Connected with 10K pullup on CLK and SWDIO pin | Given to board | JP2 Close | Fail |
Board Connected with no pullup on CLK and SWDIO pin | Given to board | JP2 Open | Fail |
Board Connected with no pullup on CLK and SWDIO pin | Not Given | JP2 Open | Fail |
Board Connected with no pullup on CLK and SWDIO pin | Not Given | JP2 Close | Fail |
Board Connected with no pullup on CLK and SWDIO pin | Given to board | JP2 Close | Fail |
Hi munjal
What's the persentage of "connection failure" boards?
Did you test the board with another emulator? like MCU-Link, Jlink? How is it?
Please test connectin in ISP mode, see if any change?
if still failed, pls upload a photo of Jlink commander error message.
Thanks,
Jun Zhang