GDB use

Started by Micron Engineering in LPC200013 years ago

I have a simple question: is it possible debug a program running from flash with gdb and a jtag interface? If yes, please tell me...

I have a simple question: is it possible debug a program running from flash with gdb and a jtag interface? If yes, please tell me the configuration and/or where I may download gdb and/or the gdb stub. Best regards, Massimo Manca, Micron Engineering


GDB

Started by Micron Engineering in LPC200013 years ago 2 replies

I have a simple question: is it possible debug a program running from flash with gdb and a jtag interface? If yes, please tell me...

I have a simple question: is it possible debug a program running from flash with gdb and a jtag interface? If yes, please tell me the configuration and/or where I may download gdb and/or the gdb stub. Best regards, Massimo Manca, Micron Engineering


Arm-elf-gdb (target remote) breakpoint issue

Started by Michael Anburaj in LPC200013 years ago

Hi, Tools used: GNU gdb 5.3 (insight) LPC2106 board running ARM remote GDB stubs (over UART) Short description: When I...

Hi, Tools used: GNU gdb 5.3 (insight) LPC2106 board running ARM remote GDB stubs (over UART) Short description: When I try to set a breakpoint at a thumb C-function starting at address 0x40000278, GDB debugger (insight) sends a (GDB protocol) command t


OpenOCD + GDB + Flash Programming LPC2368 Problem

Started by andy4onroad in LPC200011 years ago

I'm having problems with flash programming and an LPC2368 using GDB. Presently my major problem is that when I pass the command for flash...

I'm having problems with flash programming and an LPC2368 using GDB. Presently my major problem is that when I pass the command for flash programming through GDB to the OpenOCD server I get an error from GDB at the end of the flash programming process: (gdb) monitor flash write 0 test.bin 0 Ignoring packet error, continuing... Reply contains invalid hex digit 116 (gdb) This error i...


Internal errors in gdb

Started by Bryce Schober in LPC200012 years ago
GDB

Does anyone here have any idea why I get multiple warnings like: warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.) in...

Does anyone here have any idea why I get multiple warnings like: warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.) in arm-elf-gdb when I load an executable? If I execute gdb from a cygwin prompt, I don't see that problem, but I do get those errors when I execute gdb from a .bat file like: SET PATH=%PATH%;c:\cygwin\usr\local\bin arm-elf-gdb -nx -batch -command=%1 %


gdb-jtag-arm

Started by larry_amontec in LPC200013 years ago 2 replies

Hi all, Are there guys using gdb-jtag-arm from Tobias Lorenz ? Do you have any advice about this ? If the gdb-jtag-arm was...

Hi all, Are there guys using gdb-jtag-arm from Tobias Lorenz ? Do you have any advice about this ? If the gdb-jtag-arm was successfully tested by some of you, I will re-write the jtag.c, to be able to use gdb-jtag-arm socket with the raven jtag interface. Let me know, Laurent


arm-elf-gdb is confused with source files.

Started by laur...@gmx.de in LPC20004 years ago 4 replies

Hello, I am having a problem debugging my code on a LPC2387. The code works fine, but I can't debug. Somehow arm-elf-gdb is confused by the...

Hello, I am having a problem debugging my code on a LPC2387. The code works fine, but I can't debug. Somehow arm-elf-gdb is confused by the source files. When for example I try to "list myfunc()", gdb shows the wrong file or doesn't show anything at all ("No source available"). The same with breakpoints. When I set a breakpoint in a function other that main(), the program stops, but gdb j...


Wiggler GDB need help setting breakpoints

Started by balazs_scherer in LPC200013 years ago

Hello, I have fabricated a Wiggler (thanks to Leon's instructions). I have some problems with it (I have newer used a...

Hello, I have fabricated a Wiggler (thanks to Leon's instructions). I have some problems with it (I have newer used a wiggler before). Using the OCD tools I managed to connect the gdb to my LPC2106 board. With the GDB I able to start the program flow, step the


Loading and Running LPC2103 with GDB/OpenOCD without Insight?

Started by rsturmer in LPC20009 years ago 2 replies

I'm working with an LPC2103 Olimex Dev kit with GCC/OpenOCD/GDB/arm-elf-insight. I can get the part loaded up in insight and kick off my...

I'm working with an LPC2103 Olimex Dev kit with GCC/OpenOCD/GDB/arm-elf-insight. I can get the part loaded up in insight and kick off my program just fine, but want to "graduate" to using just the GDB interface (insight is a lot of clutter for me, and I prefer the console interace) I can't figure out though how to kick off my program once I've got it loaded. Here's my session: GNU gdb 6...


Eclipse GDB

Started by Jonathan Masters in LPC20008 years ago 1 reply
GDB

Hi All, I am following up on my post of a week or so ago. I have spent the entire day trying to get Eclipse+GDB to work. Everything appears...

Hi All, I am following up on my post of a week or so ago. I have spent the entire day trying to get Eclipse+GDB to work. Everything appears to work except nothing works. To be less obscure, the init script runs in gdb without any errors or problems. However, after loading the program, the script sets a breakpoint at main(). There is nothing in the disassembly window, and there is n...


lpc2368 - Unable to read/write eth controller regigisters by GDB

Started by Paolo Faverio in LPC20009 years ago 1 reply

Hi all, I'm working with LPC2368, and I need to debug TCP/IP application. I'd like to read/write Ethernet controller registers using...

Hi all, I'm working with LPC2368, and I need to debug TCP/IP application. I'd like to read/write Ethernet controller registers using GDB-Openocd. Using GDB memory dump command at Ethernet controller registers memory address space, it shows everything 0x0000. Do I need to set something in the openocd or gdb config file ? Thanks paolo ------------------------------------


GDB without OpenOCD

Started by Harald Kubota in LPC20009 years ago 3 replies

Hi, Probably most of people here use JTAG to debug (ignoring people like me who tend to use I/O like LEDs or text outputs to...

Hi, Probably most of people here use JTAG to debug (ignoring people like me who tend to use I/O like LEDs or text outputs to debug). However GDB can use stubs running on the target to debug programs running on it. I cannot find lot of information about those needed stubs for LPC21xx though. I expected a small program to support the GDB remote protocol (using serial I/O as there's no...


Debuging lpc2138 with GNU-arm-gdb

Started by soren_t_hansen in LPC200013 years ago 4 replies

I'm trying to establish a development enviroment to a lpc2138 on the Keil MCB2130 evaluation board. I'm using Eclipse and would like to ...

I'm trying to establish a development enviroment to a lpc2138 on the Keil MCB2130 evaluation board. I'm using Eclipse and would like to debug my program using the GNU-arm-gdb. To connect to the board I'm using the Raven OCDemon from Macraigor and their program OCDRemote to interface between JTAG and GDB. But so far I'm having some problems. At firs


Problems debugging from internal flash

Started by miklospflancer in LPC200011 years ago 1 reply

Can anyone help with this problem I am using openocd/wiggler and gcc tools. The program is flashed and works fine out of reset. However when I...

Can anyone help with this problem I am using openocd/wiggler and gcc tools. The program is flashed and works fine out of reset. However when I try to debug/step through the code using GDB/wiggler, I get an error from gdb "Connection reset by peer" Openocd gives error "cpsr contains invalid mode value - communications error, gdb requested registers but were not halted" This only happ...


j-link-gdb-server

Started by csi_tbn in LPC200011 years ago
GDB

Hi All I'm new to this group. At the WinARM project I did download the j-link-gdb-server V1.0, and it had a reference to this group. Would you...

Hi All I'm new to this group. At the WinARM project I did download the j-link-gdb-server V1.0, and it had a reference to this group. Would you please guide me to where I will find more information about this file, and maybe the project group working on this "missing-link" between the GDB and the Segger J-link. Best regards Tommy ------------------------ Yahoo! Groups Sponsor ------------...


not entering a interrupt service routine lpc2378

Started by kd7vn in LPC200010 years ago

I'm using an olimex lpc-p2378 dev board. I'm trying to use the timer0 to generate an interrupt. I have confirmed that the timer0 portion of...

I'm using an olimex lpc-p2378 dev board. I'm trying to use the timer0 to generate an interrupt. I have confirmed that the timer0 portion of my code is working. I set up a few defines in gdb to print out the contents of the registers below. You can see once the TC reaches 5 the timer0 interrupt flag in T0IR gets set. (gdb) t0ir 0xe0004000: 0x00000000 (gdb) t0tc 0xe0004008: 0...


Combining forces on open-source gdb stub

Started by Bertrik Sikken in LPC200012 years ago 14 replies

Hi all, I noticed that quite a lot of people are working on JTAG tools for debugging on the LPC, but (as far as I know) there is still no-one...

Hi all, I noticed that quite a lot of people are working on JTAG tools for debugging on the LPC, but (as far as I know) there is still no-one that has written an open-source gdb stub for the LPC family. On sourceforge, there are a couple of gdb JTAG projects for arm processors, but none seem to support the ARM7TDMI-S. Existing closed-source software like OCDRemote and OCDCommandor does ...


Eclipse/gdb JTAG SFR Contents Display

Started by "T.M. (Tom) Alldread" in LPC200011 years ago

Greetings: Does anyone here know of a slick way of viewing the contents of the LPC2xxx control registers whilst debugging under...

Greetings: Does anyone here know of a slick way of viewing the contents of the LPC2xxx control registers whilst debugging under Eclipse/gdb via the JTAG port? I wonder if possibly a gdb script could be used to list the SFR bank to provide an updated contents list when requested? Many thanks in advance! Tom Alldread -- No virus found in this outgoing message. Chec...


Viewing SFR Contents with Eclipse/gdb?

Started by tmasyl in LPC200011 years ago

Greetings: I am trying to learn how to view the contents of the lpc2148 system control and peripheral SFR (special function registers) via the...

Greetings: I am trying to learn how to view the contents of the lpc2148 system control and peripheral SFR (special function registers) via the JTAG port with gdb. It appears that I can read the contents of RAM and FLASH with the "Window/Show View/Memory" Eclipse menu item. I also can view some SFR addresses but for others I get a target bus error from gdb. For example if I try to view ...


JTAG debugging: peripherals do not stop

Started by "lit...@rocketmail.com" in LPC20007 years ago 4 replies

Hi all, I am debugging a program on an LPC2148 using OpenOCD/JTAG/GDB. Setting hardware breakpoints work fine, GDB stops the program flow, BUT...

Hi all, I am debugging a program on an LPC2148 using OpenOCD/JTAG/GDB. Setting hardware breakpoints work fine, GDB stops the program flow, BUT my timers continue to run! How do I configure the JTAG or GDB to also stop the peripherals? It's really annoying because when I continue the program, the timers need about 90 secs to wrap around until the next match event is generated. I must do some...