Error when trying to debug "not in executable format: File format not recognized"

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error when trying to debug "not in executable format: File format not recognized"

1,969 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dwjperry on Thu Oct 17 23:36:09 MST 2013
I have an Embedded Artists LPC4357 development board and LPC-Link2, and I'm running LPCXpresso 6.0.4 on OS X 10.8.4.

I loaded in the matching CMSIS library, created a project using the wizard (which just increments a counter), built the project successfully, and then ran the debugger.

Yesterday, when I first tried this, it worked almost straight away, and I could step through the program, set breakpoints, all very nice.

When I try today however, I get the following error:

Error in final launch sequence
Failed to execute MI command:
-file-exec-and-symbols /Users/davidperry/Documents/LPCXpresso_6.0.4/workspace/test/Debug/test.axf
Error message from debugger back end:
"/Users/davidperry/Documents/LPCXpresso_6.0.4/workspace/test/Debug/test.axf": not in executable format: File format not recognized

"/Users/davidperry/Documents/LPCXpresso_6.0.4/workspace/test/Debug/test.axf": not in executable format: File format not recognized


The only thing that has changed has been that my computer crashed while LPCxpresso was running. But I've retried re-installing it and creating the projects again from scratch, but I still get the same error.

Is there additional program data I need to clear? Any other ideas? This is driving me crazy!
0 Kudos
Reply
3 Replies

1,473 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon Oct 21 06:37:10 MST 2013
My best guess would be that you have manged to modify the post build step for your original project in such a way as to corrupt the generated AXF file.

If you wanted to provide your build console, that might provide some clues...

http://www.lpcware.com/content/faq/lpcxpresso/build-console

Regards,
LPCXpresso Support
0 Kudos
Reply

1,473 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dwjperry on Sun Oct 20 15:33:10 MST 2013
Aha, yes, if I create a new workspace and project the problem goes away. Go back to the old workspace, and the problem returns.

Can't work out what's changed between the workspaces (had a brief poke around the hidden files, but there was nothing obvious), but at least I have a workaround -- thanks!
0 Kudos
Reply

1,473 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Fri Oct 18 01:10:24 MST 2013
Very strange. If you switch to a new workspace and create a "simple hello world" project with the New project wizard, do you see the same problem? If so, please export the project where you see the problem and post it.

http://support.code-red-tech.com/CodeRedWiki/ImportExport

Regards,

LPCXpresso Support
0 Kudos
Reply