I've been following a few tutorials using the MCUXpresso IDE, but I am unable to run or debug any of the example code.
I am using two LPC-Link2 boards, one as a debugger and one as an eval board. JP1 and JP2 are connected on the debug LPC-Link 2, such that I can power on the eval board. Initially CMSIS-DAP did not work, so I configured the debugger as a Segger J-Link probe, which seemed to work. However, I am still unable to run or debug any example code.
Set up:
Error #1 for debug mode
Error #2 when breakpoint is added
New to micro-controllers, any advice would be much appreciated!
Solved! Go to Solution.
Hi @act642
I checked your video. you can connect, and debug board without issue.
If you want to run the project, click on Resume(F8) before Terminate. as I showed in my attached video.
Regarding to the run button problem you referred, I will report it. Thanks for brining the problem to our attention.
Have a nice day
Jun Zhang
Hi
1. please test the connection with a simple lpcopen led blink demo.
2. In case the debug firmware is corrupt, use lpcscrypt update firmware, try both Jlink firmware and CMSIS-DAP.
3. If still can't work, send me a photo of your two board connection. tell me which one is for debug and which is for target. Let me check your board setting.
Thanks,
Jun Zhang
Hi act642
Your HW connection is ok. So I suggest you checking PC side.
As you said you already updated firmware with LPCScrypt? if so, Create a NEW project under a NEW workspace. test connection as my attached video shows. If still fails, change another computer and cable, test again.
If the board is not damaged, it should work.
Thanks,
Jun Zhang
Hi Jun,
It still does not work, sometimes I get the same issue.
I also always get this error if I try to run the project.
"Error starting process.
Cannot run program "C:\....\NXP\workspace\test\Debug\test.axf": Launching failed"
I think the board works, I was able to see the debug board flash the LED, but not the target board.
I was only able to step into the code by restarting the debugger and stepping into all debug sessions.
I expect to see a result like in this tutorial: http://thomasweldon.com/tpw/lpc4370/lpc4370tutorial1/index.html
However, I cannot get past line 46,
Hi
From your screenshot, you didn't create a new project to test connection as I showed in my video?
Please create a new project to test connection, thus we can identify if the problem is caused by specific project.
In order to identify if the problem is caused by HW, swap your target and debug board, use LPCScrypt update debug firmware. adjust jumpers. see if the problem the same.
Jun Zhang
Hi Jun,
I created a new workspace and a new project. I also uninstalled everything and re-downloaded everything as well. I have also swapped the target and debug board. Nothing appears to work.
Which version of LPCScrypt do you use to update the firmware? How it shows after update finish? send me a screenshot of it.
please send me a video like what I sent to you. make sure you follow the same steps as I did.
Hi @act642
I checked your video. you can connect, and debug board without issue.
If you want to run the project, click on Resume(F8) before Terminate. as I showed in my attached video.
Regarding to the run button problem you referred, I will report it. Thanks for brining the problem to our attention.
Have a nice day
Jun Zhang