AnsweredAssumed Answered

openSDA on TWR-K24F120M

Question asked by Ian Craven on Nov 25, 2014
Latest reply on Nov 27, 2014 by Alice_Yang

I'm having trouble getting the openSDA working on the tWR-K24F120M board.

 

I can see the openSDA port as COM6 in device manager, is there somewhere to enter the COM port number into KDS or does it find it automatically?

 

My setup is:

 

Untitled.bmp

 

 

But I get this when going into debug:

 

Connected to 127.0.0.1

Reading all registers

WARNING: Failed to read memory @ address 0x00000000

Target interface speed set to 1000 kHz

Resetting target

Halting target CPU...

...Target halted (PC = 0x00000000)

R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000

R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000

R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000

R12= 00000000, R13= 00000000, MSP= 00000000, PSP= 00000000

R14(LR) = 00000000, R15(PC) = 00000000

XPSR 00000000, APSR 00000000, EPSR 00000000, IPSR 00000000

CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00

Reading all registers

Select auto target interface speed (1000 kHz)

Flash breakpoints enabled

Semi-hosting enabled (VectorAddr = 0x08)

Semihosting I/O set to TELNET Client

Downloading 1024 bytes @ address 0x00000000 - Verify failed

Downloading 16 bytes @ address 0x00000400 - Verify failed

Downloading 16176 bytes @ address 0x00000410 - Verify failed

Downloading 16096 bytes @ address 0x00004340 - Verify failed

Downloading 16080 bytes @ address 0x00008220 - Verify failed

Downloading 16080 bytes @ address 0x0000C0F0 - Verify failed

Downloading 16176 bytes @ address 0x0000FFC0 - Verify failed

Downloading 16176 bytes @ address 0x00013EF0 - Verify failed

Downloading 16224 bytes @ address 0x00017E20 - Verify failed

Downloading 16096 bytes @ address 0x0001BD80 - Verify failed

Downloading 16128 bytes @ address 0x0001FC60 - Verify failed

Downloading 16176 bytes @ address 0x00023B60 - Verify failed

Downloading 16192 bytes @ address 0x00027A90 - Verify failed

Downloading 16192 bytes @ address 0x0002B9D0 - Verify failed

Downloading 16176 bytes @ address 0x0002F910 - Verify failed

Downloading 11552 bytes @ address 0x00033840 - Verify failed

Downloading 8 bytes @ address 0x00036560 - Verify failed

Downloading 4 bytes @ address 0x00036568 - Verify failed

Downloading 4 bytes @ address 0x0003656C - Verify failed

Downloading 920 bytes @ address 0x00036570 - Verify failed

Writing register (PC = 0x00000530)

Writing register (XPSR = 0x01000000)

WARNING: Failed to read memory @ address 0x00000530

WARNING: Failed to read memory @ address 0x00005440

WARNING: Failed to read memory @ address 0x00005440

GDB closed TCP/IP connection

 

And then this in the error window:

 

Error in final launch sequence

Failed to execute MI command:

tbreak main

Error message from debugger back end:

Cannot access memory at address 0x5440

Cannot access memory at address 0x5440

 

 

An internal error occurred during: "Semihosting process monitor job.".

java.lang.IllegalThreadStateException

 

What did I do wrong?

 

Thanks

Ian

Outcomes