LPCXpresso v6.1.2 mbed LPC1768 CMSIS-DAP Error

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

LPCXpresso v6.1.2 mbed LPC1768 CMSIS-DAP Error

598 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ScubaBoy on Wed Jan 08 07:05:33 MST 2014
Hi,

I've been evaluating LPCXpresso v6.1.2 as an offline tool chain to work with my mbed LPC1768 MCU however I have encountered a problem when trying to run a debug session using the CMSIS-DAP interface. After the image is downloaded to the device it restarts which upsets the CMSIS-DAP connection. If I manually copy the image to the device and then start a debug it works.

Is there any way to restart the CMSIS-DAP session to cope with the device reset after an image download?

LPCXpresso RedlinkMulti Driver v6.0 (Nov 20 2013 07:01:29 - crt_emu_cm_redlink build 252)
Looked for chip XML file in C:/nxp/LPCXpresso_6.1.2_177/lpcxpresso/bin/LPC1768.xml
Looked for vendor directory XML file in C:/nxp/LPCXpresso_6.1.2_177/lpcxpresso/bin/NXP_directory.xml
Found generic directory XML file in C:/nxp/LPCXpresso_6.1.2_177/lpcxpresso/bin/crt_directory.xml
Emu(0): Conn&Reset. DpID: 2BA01477. CpuID: 410FC230. Info: (null)
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Loaded LPC175x_6x_512.cfx: LPC175x_6x (512K) Apr 22 2013 12:14:31  On-chip Flash Memory
Connected: was_reset=true. was_stopped=false
v LPCXpresso Free License - Download limit is 256K
Writing 2704 bytes to 0000 in Flash (assumed clock: unknown)
Erased/Wrote page  0-0 with 2704 bytes in 1449msec
Flash write Done
Stopped (Was Reset)  [Reset from Unknown]
Could not start execution from stop: Ee(FF). Undocumented error.


0 Kudos
10 Replies

563 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Fri Jan 10 03:24:13 MST 2014
Sorry, we have not used that board - and I don't have one (it is not possible for us to have every 3rd party development board).
0 Kudos

563 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ScubaBoy on Fri Jan 10 03:03:20 MST 2014
Have you tried debugging using the following mbed board

http://mbed.org/platforms/Seeeduino-Arch-Pro/

The CMSIS-DAP firmware used by this board is one I'm using.
0 Kudos

563 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Jan 09 15:14:01 MST 2014
LPC1768 and LPC4088. Both work.
0 Kudos

563 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ScubaBoy on Thu Jan 09 12:28:14 MST 2014
Ok thanks I'll give it ago, out of interest which mbed enabled board did you test the debug on?
0 Kudos

563 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Jan 09 10:48:26 MST 2014
There are no special settings. To make sure that you have not broken anything, you can delete you existing launch configs and the press the Debug button in the Quickstart panel. It will reconfigure everything for you
0 Kudos

563 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ScubaBoy on Thu Jan 09 10:07:17 MST 2014
To rule out my debugger settings can you please let me know the correct settings for CMSIS debugging.
0 Kudos

563 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ScubaBoy on Wed Jan 08 09:42:33 MST 2014
Yep Standalone board, got latest CMSIS-DAP firmwire, I ran a similar test using uvision 4 and all worked fine.
0 Kudos

563 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Jan 08 09:37:22 MST 2014
Are you using a standard LPC1768 mbed board that is standalone (i.e. not plugged into any other board).

Are you also certain that you have the very latest CMSIS-DAP firmware programmed in to the mbed board?
0 Kudos

563 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ScubaBoy on Wed Jan 08 09:20:15 MST 2014
Platform Windows 7 64 bit

Get the same result creating a LPC17 project and erasing all flash.

Don't now if this helps but this is the image I used to program the mbed interface side of things.

http://mbed.org/media/uploads/yihui/arch_pro_win8.1.bin

https://github.com/mbedmicro/CMSIS-DAP
0 Kudos

563 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Jan 08 08:57:31 MST 2014
Debugging a "hello world" program created using the LPC17 project wizard seems to work fine here on an mbed board connected via CMSIS-DAP.

I wonder if this is somehow image related. Can you try creating a test project using the project wizard and seeing if that debugs correctly?

If you still see problems, it might also be worth trying a mass erase of the flash before you program:

Also can you confirm which platform you are using. I presume Windows from the debug log - but XP, 7, 8 and 32 or 64 bit?

Regards,
LPCXpresso Support
0 Kudos