Guest User

Untitled

a guest
Jul 23rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #!/bin/bash
  2. TARGET=mecrisp-stellaris-hackaday-edition.bin
  3. arm-none-eabi-objcopy -O elf32-littlearm -B arm --adjust-vma 0x8000000 --rename-section .data=.text -I binary $TARGET blob.o
  4. arm-none-eabi-gdb -b 115200 -ex 'target extended-remote /dev/ttyACM0' -ex 'set confirm off' -ex 'monitor swdp_scan' -ex 'attach 1' -ex 'set mem inaccessible-by-default off' -ex 'monitor erase_mass' -ex 'kill' -ex 'quit'
  5. arm-none-eabi-gdb -b 115200 -ex 'target extended-remote /dev/ttyACM0' -ex 'set confirm off' -ex 'monitor swdp_scan' -ex 'attach 1' -ex 'set mem inaccessible-by-default off' -ex 'load' -ex 'kill' -ex 'quit' blob.o
  6.  
  7. #connect: folie-linux64 -r -p "/dev/ttyACM1"
Add Comment
Please, Sign In to add comment