Debugger .cfg file location and options

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

Debugger .cfg file location and options

2,193 Views
davidpotter
Contributor I

I have a  twrke18f board, and I just starting out using KDS 3.2 and

trying a simple hello world project from SDK_2.0_TWR-KE18F.

what sub-directory is needed for  kinetis.cfg for whatever Debugger Config options file.

Where is there a description of the options possible for the .cfg file?

Labels (1)
0 Kudos
7 Replies

1,927 Views
davidpotter
Contributor I

I started fresh without using the segger jlink and directly using the daplink interface

the message is now:

Started by GNU ARM Eclipse
Info : CMSIS-DAP: FW Version = 1.0
Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : DAP_SWJ Sequence (reset: 50+ '1' followed by 0)
Info : CMSIS-DAP: Interface ready
Info : clock speed 1000 kHz
Info : IDCODE 0x2ba01477
Info : kinetis.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'gdb' connection from 3333
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x00002c24 msp: 0x20007fd0
Error: MCU is unsupported
Error: auto_probe failed
Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'.
Error: attempted 'gdb' connection rejected

The device windows explorer shows:

TWR-KE18FD(E:)

The DETAILS.TXT file contains:

*

# DAPLink Firmware - see https://mbed.com/daplink
Unique
HIC ID: 97969900
Auto Reset: 0
Automation allowed: 0
Daplink Mode: Interface
Interface Version: 0241
Bootloader Version: 0241
Git SHA: 0123456789
Local Mods: 56148
USB Interfaces: MSD, CDC, HID
Bootloader CRC: 0xc4c2faeb
Interface CRC: 0x99c6f8a# DAPLink Firmware - see https://mbed.com/daplink

The real problem is there are no examples for configuring this board. The links to the examples on dead links and there seems to be no support for updating them.

0 Kudos

1,927 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello David,

Yes,  i think the DAPlink not support this board now , so please use the Jlink .

BR

Alice

0 Kudos

1,927 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello David,

Could you please take a screenshot about your problem.

For example where shows "what sub-directory is needed for  kinetis.cfg for whatever Debugger Config options file."

also show the error massage.

In the GDB OpenOCD debug mode :

pastedImage_1.png

BR

Alice

0 Kudos

1,925 Views
davidpotter
Contributor I

Hi Alice,

I attached images of the Debug configuration tabs and the error message received after I

clicked the debug icon.

So you see, everything compiles, but I can’t download the code.

I am using the TWR-KE18F board.

From the TWR-KE18F User’s guide document, page 6,

I believe that I need to get the board to load the demo code into flash and run in debug mode.

Thus, I believe that I have to get the board into CDSIS-DAP bootloader mode

and therefore I follow the instructions on document

TWR-KE18F User’s Guide, Rev. 0, 09/2015. page 6.,

I bring up the board by holding the reset button down while plugging in the USB cable

in order to get it into the bootloader mode.

David W. Potter

Senior Electrical Engineer

East Penn Manufacturing Co.

102 Deka Rd., Lyon Station, PA 19536

Ph. 610.682.6361 x3581

Automated Ph. 610.682.3150 x3581

dpotter@dekabatteries.com

http://www.dekabatteries.com

0 Kudos

1,925 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello David,

1. Please change   -f 'kinetis.cfg' to   -f kinetis.cfg  , have a try.

pastedImage_1.png

2. After connect your board ,Please share the "Device Manager" of your PC, about the Ports :

pastedImage_2.png

BR

Alice

0 Kudos

1,925 Views
davidpotter
Contributor I

Hi Alice,

I removed the quote and the attachment shows the error.

the device DAPLink CMSIS-DAP device shows up in the Devices and Printers and the properties claim the device is working properly

Under the device manager, I see under

portable device, DAPLINKBOOT

Line 3 of kinetis.cfg is

interface cmsis-dap

0 Kudos

1,925 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello David,

- I h ave not this board, while when i set the other kinetis board to CDSIS-DAP bootloader mode,

it should shows:

pastedImage_1.png

- If still can not work , you can also test the Jlink bootloader to have a try .

You can find the firmware at here:

OpenSDA Serial and Debug Adapter|NXP 

pastedImage_3.png

SEGGER - The Embedded Experts - Downloads - J-Link / J-Trace  

pastedImage_4.png

Hope it helps


Have a great day,
Alice Yang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos