lpcware

How to Debug with no executable and no sources

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by MikeSimmonds on Mon Mar 09 14:41:51 MST 2015
I want to start a debug session on  a board.
I have no source, no elf (axf) files.
I want to select the processor type (4370) and to select SWD mode.
I have IDE version 7 and a LPCLink-2 probe.

I can setup a NXP MCU debug launch (with the application left blank)
And setup the options. Mainly SWD, AttachOnly:True: LoadImage:False,
ResetScript:blank (I do not want to reset!)
And no RedTrace or semihosting support thank you so very much!

However, the "Debug" button is greyed out and I can't even try to start a debug session.

I then tried "Attach to Application"
Firstly, there seems to be no way to specify the NXP MCU -- other than having it set in the project properties*.
Second with the debugger tab defaults of gdb clicking the "Debug" button Failed with the error "gdb --version".

I specified a path to <install dir>/tools/arm-none-eabi-gdb.exe, then when I click the "Debug" button
I get a list of processes running on the host PC [Win7-64]. Not what I need at all.

So, I am stuck.

Please NXP (or anyone else) post a FAQ about how to debug a board (attach only/no load) when there is no
source or executable available.
I am quite happy to only see the disassembly. But I do want to open 4370 specific peripheral views.

* By the way I could not setup a new completely empty project folder. I had to put a dummy empty file there
(which I called main.c).

Regards, Mike




Outcomes