area.reset | |
sys.cpu CortexM0 | |
sys.bdmclock 3.0MHz ;cortex-m0 | |
sys.o enreset OFF | |
sys.up | |
do ./sys/clk_init.cmm | |
do ./sys/ddr_zx7520.cmm | |
//M0 address remap bit23 | |
data.set 0x00146004 %long 0x00870000 | |
data.set 0x00100000 %long 0xeafffffe | |
data.set 0x0130702c %long 0xf | |
//switch to psjtag | |
data.set 0x00143030 %long 0x333303 | |
Wait 1s | |
print "switch jtag0 from m0 to ps" |