Page 1 of 1

Problems with CodeLite, Arm & GNU toolchain

Posted: Sat Dec 17, 2011 2:04 am
by cerr
Hi,

I'm attempting to connect to a Freescale Kinetis KwikStik (Cortex-M4) via a Segger J-Link interface with CodeLite.
I installed the GDB server, and it seems to detect the target properly. When I hit F5 to build and debug my code, the gdb server recognizes that CodeLite is trying to connect (all status indicators go green for a short sec), but immediately gives me a warning dialog box "Failed to measure CPU clock frequency. Can not read register 0 (R0) while CPU is running [ OK ]" clicking OK brings up the J-Link control panel that gives me multiple other warnings along the likes of "Can no read register 1 (R1) while CPU is running".
The status window of the GDB server says

Code: Select all

Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x00000000 (Data = 0x20007EF0)
Select SWD as target interface
Target endianess set to "little endian"
JTAG speed set to 1000 kHz
Resetting target
Select flash device: LPC1343
Flash download enabled
Downloading 10744 bytes @ address 0x00000000
Downloading 136 bytes @ address 0x000029F8
ERROR: Failed to download RAMCode for CPU clock frequency detection!

Connection to debugger closed !


Writing register (PC = 0x000023B1)

J-Link connected
Firmware: J-Link Lite-FSL V1 compiled Jan 31 2011 11:00:51
Hardware: V1.00
S/N: 430110131
While CodeLite(debug status) says

Code: Select all

Using gdbinit file: C:\DOCUME~1\egr1bny\LOCALS~1\Temp\codelite_gdbinit.txt
Current working dir: C:\Documents and Settings\egr1bny\My Documents\Downloads\LPC1343_CodeBase_v0.95\build\codelite
Launching gdb from : ./Debug
Starting debugger  : arm-none-eabi-gdb.exe --command="C:\DOCUME~1\egr1bny\LOCALS~1\Temp\codelite_gdbinit.txt" --interpreter=mi ""
Debug session started successfully!
GNU gdb (GDB) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type "show copying"\nand "show warranty" for details.
This GDB was configured as "--host=i686-pc-mingw32 --target=arm-none-eabi".\nFor bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Remote debugging using localhost:2331
0x00000000 in ?? ()
Successfully connected to debugger server
Applying breakpoints...
Applying breakpoints... done
Loading section .text, size 0x29f8 lma 0x0
Loading section .data, size 0x88 lma 0x29f8
Start address 0x23b1, load size 10880

Does anyone have a clue what might be going on here? Some help would be appreciated!
Thank you!!!!!
roN

Re: Problems with CodeLite, Arm & GNU toolchain

Posted: Sat Dec 17, 2011 9:20 am
by eranif
You might find this useful for you
viewtopic.php?f=11&t=1537
Eran