This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can only debug once?

Hi,

I'm using an MBC4300 dev board and my application is using CMSIS-RTOS (messaging etc).
My system is up to date (see below):

I am having difficulty debugging, here is what happens.

1. I compile my project (it loads automatically).
2. I can run it and set break points.
3. I can also look at values and monitor RTOS timers in real time.
4. I can stop and re-start.
5. My heart beat LED is flashing
6. However if I stop, reset the debugger (button in uVision) and press start I cannot stop anymore!!
7. Pressing the stop button I get the U:INK-Cortex-M Error message "Could not stop Cortex-M device! Please check the JTAG cable"
8. Press OK to the error message and it jumps out of debug and will not go back in, with same error message.
9. After OKing to this message I also get another message: "Error: Target DLL has been cancelled. Debugger aborted!"
10. Pressing reset on target PCB allows me to re-program / get back into debugger but pressing stop gives same error as no.6 above.

The only way to get it going again is to:

1. press reset on target PCB
2. load blinky (CMSIS RTOS version) project
3. download and run blinky
4. re-load my project and download to target.

Now I can do a one off debug as above.

Please can you tell me what I'm doing wrong?

Thanks

Ian

IDE-Version:
µVision V5.11.1.0

Tool Version Numbers:
Toolchain: MDK-ARM Professional Version: 5.11.0.0
Toolchain Path: C:\Keil_v5\ARM\ARMCC\bin\
C Compiler: Armcc.Exe V5.04.0.49
Assembler: Armasm.Exe V5.04.0.49
Linker/Locator: ArmLink.Exe V5.04.0.49
Librarian: ArmAr.Exe V5.04.0.49
Hex Converter: FromElf.Exe V5.04.0.49
CPU DLL: SARMCM3.DLL V5.11.0.0
Dialog DLL: DCM.DLL V1.11.0.0
Target DLL: UL2CM3.DLL V1.152.17.0
Dialog DLL: TCM.DLL V1.14.1.0