Content originally posted in LPCWare by navin on Thu Nov 22 04:55:44 MST 2012
My bad. I some how missed that critical info. Thanks for pointing that out. Now it works like it should.
So here is the summary that I had to do to get this done so that some one who wants to have gdb console running can follow these steps (under win):
1) Copy all the contents of bin folder in lpc xpresso folder to a folder convenient to you (Some how, exporting path in env variable under win did not work for me. I would get ExecError when the emulator utility was launched under GDB. Under Linux the export PATH should work I hope and this step might not be necessary)
2) Now copy arm-none-eabi-gdb.exe to the same folder where you had copied the contents of bin folder
3) cd to Script folder in bin and execute "bootLPCXpresso.cmd winusb"
4) cd to the folder where you had made all the copies and run arm-none-eabi-gdb.exe /path/to/your/axf/file
5) Enter "target extended-remote | crt_emu_lpc11_13_nxp.exe -2 -pLPC1115/303 -wire=winusb" under gdb prompt
6) Then enter "load"
7) Now GDB is ready to accept your commands enter 's' to single step, 'b' to add break point (say b main) p to print variables...
I hope this will help some one in future who wants to use GDB to use LPC xpresso with other editors.
Regards,
Navin