Skip to content

Instantly share code, notes, and snippets.

#include <SPI.h>
const int spiCSEncoderPin = 10;
void setup()
{
Serial.begin(115200);
pinMode(spiCSEncoderPin, OUTPUT);
digitalWrite(spiCSEncoderPin, HIGH);
SPI.begin();
@troth
troth / target-reset.gdb
Last active May 24, 2024 10:06
GDB commands to reset a remote target using stlink
target extended-remote :4242
monitor reset halt
file app.elf
load app.elf
monitor reset run