Root/m1rc3/norruption/2/upset

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
3a=${1:-0x10}
4d=${2:-0}
5
6
7jtag -q <<EOF
8cable milkymist
9detect
10instruction CFG_OUT 000100 BYPASS
11instruction CFG_IN 000101 BYPASS
12pld load fjmem.bit
13initbus fjmem opcode=000010
14frequency 6000000
15detectflash 0
16peek $a
17poke $a 0x40 $a $d
18peek $a
19poke 0 0xff
20peek $a
21EOF
22
23cat 1>&2 <<EOF
24values read:
25- previous value
26- status (0x80 = okay, 0x92 = locked)
27- resulting value
28EOF
29

Archive Download this file

Branches:
master



interactive