Advertisement
Guest User

CC2538 J-Link

a guest
Jul 24th, 2014
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.22 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ -z "$1" ]
  4. then
  5.     echo "Supply .bin file"
  6.     exit 1
  7. fi
  8.  
  9. sudo JLinkExe -device CC2538SF53 <<EOF
  10. exec device CC2538SF53
  11. speed auto
  12. halt
  13. loadbin $1 0x00200000
  14. SetPC 0x00200000
  15. g
  16. r0
  17. r1
  18. q
  19.  
  20. EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement