openSDA on TWR-K24F120M

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

openSDA on TWR-K24F120M

1,131 Views
iancraven
Contributor I

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:

 

16965_16965.bmpUntitled.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

Labels (1)
0 Kudos
4 Replies

598 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Piotrek,

Before debug , you should update bootloader.

Enter bootloader Mode , then load J-Link Application.

Detail  steps  please refer to below :

pastedImage_2.png

And you only need refer to red box I log.  the JLink driver i attached to you !

Best Regards,

Alice

------------------------------------------------------------------------------------------

If this post answers your question, please click the Correct Answer button.

0 Kudos

598 Views
ivadorazinova
NXP Employee
NXP Employee

Hi Ian,

Why do you need COM when you use J-Link?

Debugger probably cannot read from MCU. It can be problem with connection (power, debug port, clock..).

Best Regards,

Iva

0 Kudos

598 Views
piotrek
Contributor III

Hello Iva,

Why do you need COM when you use J-Link?

That's an interesting question. How would I use printf() in my program to output some test messages without using COM ports (one on the development board and one on the PC)?

Is this possible with J-Link? Where would I see messages? On the IDE console?

Regards,

Piotr

0 Kudos

598 Views
ivadorazinova
NXP Employee
NXP Employee

Piotrek,

yes, that is ok. If Ian wants to use COM, he needs external program, of course (Putty, Tera Term...).

Iva

0 Kudos