yuezonghe | 824eb0c | 2024-06-27 02:32:26 -0700 | [diff] [blame^] | 1 | ;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.
|
| 3 | SYSTEM.RESET
|
| 4 | SYSTEM.CPU CortexM0
|
| 5 | System.JtagClock 3Mhz
|
| 6 |
|
| 7 | System.Option ResBreak OFF
|
| 8 | System.Option EnReset OFF
|
| 9 |
|
| 10 | System.Up
|
| 11 | wait 0.2s
|
| 12 |
|
| 13 | ;clk config
|
| 14 | do .\Sys\clk_init.cmm
|
| 15 |
|
| 16 | do ./sys/ddr_zx7520.cmm
|
| 17 |
|
| 18 | ;jtag config
|
| 19 | do .\Sys\gpio_jtag_ap_ps.cmm
|
| 20 |
|
| 21 | ;remap
|
| 22 | data.set 0x00100064 %LE %LONG 0x1
|
| 23 | wait 0.1s
|
| 24 |
|
| 25 | data.set 0xc0 %LE %WORD 0xE7FE
|
| 26 |
|
| 27 | register.set PC 0xc0
|
| 28 |
|
| 29 |
|
| 30 | print "now pull out the trace, and then plug to specific port, don't let power off!! "
|
| 31 |
|
| 32 | sys.down |