Skip to content

Commit

Permalink
add flash and debug aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
jr1221 committed Sep 3, 2024
1 parent a5e1457 commit c9b6139
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aliases.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
build="docker compose run --rm ner-gcc-arm make"
flash="probe-rs run --chip STM32F405RGTx ./build/*.elf"
flash="probe-rs download --verify --chip STM32F405RGTx ./build/*.elf && probe-rs reset --chip STM32F405RGTx"
debug="{(probe-rs gdb --reset-halt --gdb-connection-string 0.0.0.0:1337 --chip STM32F405RGTx)&} && ID=$! && sleep 1 && docker compose run --rm -P ner-gcc-arm "arm-none-eabi-gdb" /home/app$(ls ./build/*.elf | cut -c2-) -ex "target remote host.docker.internal:1337" && kill $ID && probe-rs reset --chip STM32F405RGTx"
cerbcon="sudo usbip attach -r 192.168.100.12 -b 1-1.3"
shepcon="sudo usbip attach -r 192.168.100.12 -b 1-1.4"
peyton="echo \" Shut the fuck up Peyton, fucking hell\" "

0 comments on commit c9b6139

Please sign in to comment.