From 5cc962d5fd6ab6b5d4f080a8afe920befe0a44c8 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 23 Jan 2022 12:13:24 +0100 Subject: Introduce firmware directory --- gdb.sh | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100755 gdb.sh (limited to 'gdb.sh') diff --git a/gdb.sh b/gdb.sh deleted file mode 100755 index 45d36ab..0000000 --- a/gdb.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - - -# Usage: bash gdb.sh path/to/my/firmware.elf # call ocd.sh script before this - - -ELF_FILE=$1 - - -# disable confirmation messages, connect to MCU via openocd server, reset MCU -# and instantly stop execution -arm-none-eabi-gdb "${ELF_FILE}" \ - -ex 'set confirm off' \ - -ex 'target extended-remote localhost:3333' \ - -ex 'monitor reset halt' - -# now you can flash the firmware with 'load' and run it with 'run' -- cgit v1.2.3-70-g09d2