blob: f43dcc249f53ce9eddef9bdd98effc47fa57463f [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001;this script can be used while there is no code running on cortex-M0 to release another cores
2;this must be used first, and then plug the trace to specific port.
3SYSTEM.RESET
4SYSTEM.CPU CortexM0
5System.JtagClock 3Mhz
6
7System.Option ResBreak OFF
8System.Option EnReset OFF
9
10System.Up
11wait 0.2s
12
13;clk config
14do .\Sys\clk_init.cmm
15
16do ./sys/ddr_zx7520.cmm
17
18;jtag config
19do .\Sys\gpio_jtag_ap_ps.cmm
20
21;remap
22data.set 0x00100064 %LE %LONG 0x1
23wait 0.1s
24
25data.set 0xc0 %LE %WORD 0xE7FE
26
27register.set PC 0xc0
28
29
30print "now pull out the trace, and then plug to specific port, don't let power off!! "
31
32sys.down