diff options
author | tcsullivan <tullivan99@gmail.com> | 2018-10-10 23:31:10 -0400 |
---|---|---|
committer | tcsullivan <tullivan99@gmail.com> | 2018-10-10 23:31:10 -0400 |
commit | 34684b28a463404717a86f25ee381bfdaefbace4 (patch) | |
tree | 56c2d899ed3740312ac408e12a6f2e1bbb875adf /run.sh | |
parent | c66410f6319284b94e21758539ac25bfb4694d3a (diff) |
unpriviledged sleep wip
Diffstat (limited to 'run.sh')
-rwxr-xr-x | run.sh | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -0,0 +1,25 @@ +#!/bin/bash +# +# @file run.sh +# Starts openocd and connects gdb to the target, for programming/debugging +# +# Copyright (C) 2018 Clyne Sullivan +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <https://www.gnu.org/licenses/>. +# + +openocd -f /usr/share/openocd/scripts/board/st_nucleo_l476rg.cfg & +sleep 1 +gdb-multiarch -ex "target remote localhost:3333" main.elf +pkill openocd |