lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | area.reset |
2 | sys.cpu CortexM0 | ||||
3 | sys.bdmclock 3.0MHz ;cortex-m0 | ||||
4 | sys.o enreset OFF | ||||
5 | sys.up | ||||
6 | |||||
7 | do ./sys/clk_init.cmm | ||||
8 | do ./sys/ddr_init_312m.cmm | ||||
9 | |||||
10 | //M0 address remap bit23 | ||||
11 | data.set 0x00140000 %long 0x00870000 | ||||
12 | |||||
13 | // Release R7/A53 reset signal | ||||
14 | data.set 0x0013b138 %long 0x00000001 // R7 | ||||
15 | data.set 0x0013b134 %long 0x00000001 // A53 | ||||
16 | |||||
17 | //jtag0 to ap | ||||
18 | do ./sys/jtag_switch_script.cmm 0 3 |