I'm using the J-Link USB tool with an LPC2129. I'm usng the sample generic LPC2xxx_FLASH_JLink.gdb file to initialize the GDB Server (below).
I changed the device to LPC2129.
I'm not sure what the following line is doing. Should I change this to match the memory in the LPC2129?
# Map at the first 64 bytes the internal flash
monitor long 0xE01FC040 = 0x00000001
Display All
I changed the device to LPC2129.
I'm not sure what the following line is doing. Should I change this to match the memory in the LPC2129?
# Map at the first 64 bytes the internal flash
monitor long 0xE01FC040 = 0x00000001
Brainfuck Source Code
- #File : LPC2xxx_FLASH_JLink.gdb
- #Purpose: GDB command file for NXP LPC2xxx series +
- # J-Link (J-Link GDB Server)
- # FLASH is mapped at 0x00000000
- #-------- END-OF-HEADER -----------------------------------------------
- #
- # Connect to the J-Link gdb server
- target remote localhost:2331
- # Select flash device
- monitor flash device = LPC2129
- # Enable FlashDL and FlashBPs
- monitor flash download = 1
- monitor flash breakpoints = 1
- # Set gdb server to little endian
- monitor endian little
- # Set speed to JTAG speed adaptive
- monitor speed adaptive
- # Reset the target
- monitor reset 0
- # Map at the first 64 bytes the internal flash
- monitor long 0xE01FC040 = 0x00000001
- break main
- load
- continue