Support for GDB

This commit is contained in:
Paul Chaignon
2016-06-29 00:27:44 +02:00
parent 36ba378344
commit 1d48ff51d5
7 changed files with 317 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
#
# MicropendousX LPC17xx Development Board
#
# http://www.MicropendousX.org
#
# Connect to a debugger controlling a LPC17xx
# and download firmware.
#
# Start your OpenOCD gdb server before running
# this script with: arm-none-eabi-gdb -x gdb_lpc17xx_program.gdb
#
# Note the 'monitor' command just passes its
# arguments to OpenOCD
#
# This file is released under the MIT License
#
# Connect to OpenOCD gdb server
target remote localhost:3333
# reset the LPC17xx IC with the OpenOCD reset command
monitor reset
# the following are OpenOCD commands as in OpenOCD_program.script
# which will download a hex file into your LPC17xx
monitor halt
monitor sleep 200
monitor wait_halt
monitor flash probe 0
monitor flash info 0
monitor flash write_image erase unlock USBtoSerial.hex
monitor sleep 200
monitor reset run
monitor exit
quit