Hi,
often while flashing an LPC2368 I receive an error message from gdb:
Sometimes it is possible to reconnect to the core using the 'target remote' command, sometimes not. If not I get the following message:
The log output from GDB-Server is:
This is the flash script:
Display All
The JTAG-Speed does not affect this behaviour. I am using arm-elf-gdb v6.8.50 and arm-eabi-gdb v6.8 from Yagarto and tried GDB-Server v3.90d and v3.94.
I am using the ARM board for about one year now and it used to work with j-Link and flash-download.
Debugging works more often than not. Sometimes the program on the controller does not start after issuing the 'continue' command and the GDB-Server looses the connection to gdb. After a power-cycle of the ARM-board and reflashing the controller it will most likely work. Once the 'continue' command succeeded the debugging session is stable.
Does anyone have any ideas?
Thank you
- Michael Geselbracht
often while flashing an LPC2368 I receive an error message from gdb:
Sometimes it is possible to reconnect to the core using the 'target remote' command, sometimes not. If not I get the following message:
The log output from GDB-Server is:
Source Code
- ...
- Downloading 4096 bytes @ address 0x0000BFA0
- Downloading 2664 bytes @ address 0x0000CFA0
- Downloading 792 bytes @ address 0x0000DA08
- Resetting target
- Debugger terminated connection ! // <-- "Reply contains invalid hex digit 116"
- Connected to 127.0.0.1
- Debugger terminated connection ! // <-- "target remote..."
This is the flash script:
Source Code
- # File to flash
- file armkeyer_v3.elf
- # Connect to GDB Server
- target remote localhost:2331
- # Flash configuration
- monitor flash device = LPC2368
- monitor flash download = 1
- # Set speed to maximum
- monitor speed auto
- # GDB Server defaults to big endian
- monitor endian little
- # Reset device
- monitor reset 0
- # Remap first 64 bytes to flash
- monitor long 0xE01FC040 = 1
- # Flash device
- load
- # Run
- monitor reset
- monitor go
The JTAG-Speed does not affect this behaviour. I am using arm-elf-gdb v6.8.50 and arm-eabi-gdb v6.8 from Yagarto and tried GDB-Server v3.90d and v3.94.
I am using the ARM board for about one year now and it used to work with j-Link and flash-download.
Debugging works more often than not. Sometimes the program on the controller does not start after issuing the 'continue' command and the GDB-Server looses the connection to gdb. After a power-cycle of the ARM-board and reflashing the controller it will most likely work. Once the 'continue' command succeeded the debugging session is stable.
Does anyone have any ideas?
Thank you
- Michael Geselbracht
The post was edited 1 time, last by let ().