gdbinit_template.jlink 649 B

123456789101112131415161718192021222324
  1. #
  2. # J-LINK GDB SERVER initialization
  3. #
  4. # This connects to a GDB Server listening
  5. # for commands on localhost at tcp port 2331
  6. target remote localhost:2331
  7. # Set JTAG speed to 30 kHz
  8. monitor speed 30
  9. # Set GDBServer to big endian
  10. monitor endian big
  11. # Reset the chip to get to a known state.
  12. monitor reset
  13. #
  14. # CPU core initialization (to be done by user)
  15. #
  16. # Set the processor mode
  17. monitor reg cpsr = 0xd3
  18. # Set auto JTAG speed
  19. monitor speed auto
  20. # Setup GDB FOR FASTER DOWNLOADS
  21. set remote memory-write-packet-size 1024
  22. set remote memory-write-packet-size fixed
  23. # Load the program executable called "image.elf"
  24. # load image.elf