1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
#!/bin/bash
# Run through all pyocd-tool commands.
pyocd-tool -tcortex_m -dinfo <<EOF
help
clock 1000
disasm 0x410 16
reset -h
disasm -c pc 16
go
halt
show target
show cores
show map
show uid
show peripherals
log debug
read 0 16
read16 0 16
read32 0 16
reg
reset
reset -h
pc
step
pc
step
pc
write 0x20000000 0xaa
read 0x20000000 1
write16 0x20000000 0xabcd
read16 0x20000000 2
write32 0x20000000 0x01020304
read32 0x20000000 4
wreg r0 0xabcd1234
r0
reset -h
show cores
reg
EOF
|