Skip to content

Instantly share code, notes, and snippets.

@andete
Created November 16, 2014 08:07
Show Gist options
  • Save andete/7d98c1573731dadfe9ac to your computer and use it in GitHub Desktop.
Save andete/7d98c1573731dadfe9ac to your computer and use it in GitHub Desktop.
EFM32 bootloader automatic xmodem upload using screen
xmodem: exe/$(PROJECTNAME).bin
screen -d -m -S 'serial' /dev/ttyACM4 115200
sleep 0.1
screen -x "serial" -X eval '!!!| echo u'
sleep 0.1
screen -x "serial" -X eval "exec !! sx -vv $<"
sleep 2
screen -x "serial" -X eval '!!!| echo b'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment