LPC1768_RAM.jlink 458 B

1234567891011121314151617181920212223242526
  1. # connect to the J-Link gdb server
  2. target remote localhost:2331
  3. # Set gdb server to little endian
  4. monitor endian little
  5. # Set JTAG speed to 1000 kHz
  6. monitor speed 1000
  7. # Reset the target
  8. monitor reset
  9. monitor sleep 100
  10. # Set JTAG speed to 2000 khz
  11. monitor speed 2000
  12. # Vector table placed in RAM
  13. monitor writeu32 0xE000ED08 = 0x10000000
  14. load
  15. monitor reg r13 = (0x10000000)
  16. monitor reg pc = (0x10000004)
  17. break main
  18. continue