gdbrom.jlink 541 B

12345678910111213141516171819202122232425
  1. echo Setting up the environment for debugging gdb.\n
  2. set complaints 1
  3. set output-radix 16
  4. set input-radix 16
  5. set endian big
  6. dir .
  7. set prompt (netsilicon-gdb)
  8. # This connects to a target via ocdLibRemote
  9. # listening for commands on this PC's tcp port 2331
  10. target remote localhost:2331
  11. monitor speed 30
  12. # Set ocdLibRemote to write short/long values
  13. # in big-endian
  14. monitor endian big
  15. # Set GDB in big-endian
  16. set endian big
  17. # Reset the chip to get to a known state.
  18. monitor reset
  19. monitor speed auto
  20. load image.elf