Werner's Miscellanea
Sign in or create your account | Project List | Help
Werner's Miscellanea Git Source Tree
Root/
Source at commit d6e1e8be0d1c9fa178dc457f23b1f00c171acd12 created 12 years 5 months ago. By Werner Almesberger, m1rc3/norruption/2/upset: take address and value from command-line; report outcome | |
---|---|
1 | #!/bin/sh |
2 | |
3 | a=${1:-0x10} |
4 | d=${2:-0} |
5 | |
6 | |
7 | jtag -q <<EOF |
8 | cable milkymist |
9 | detect |
10 | instruction CFG_OUT 000100 BYPASS |
11 | instruction CFG_IN 000101 BYPASS |
12 | pld load fjmem.bit |
13 | initbus fjmem opcode=000010 |
14 | frequency 6000000 |
15 | detectflash 0 |
16 | peek $a |
17 | poke $a 0x40 $a $d |
18 | peek $a |
19 | poke 0 0xff |
20 | peek $a |
21 | EOF |
22 | |
23 | cat 1>&2 <<EOF |
24 | values read: |
25 | - previous value |
26 | - status (0x80 = okay, 0x92 = locked) |
27 | - resulting value |
28 | EOF |
29 |
Branches:
master