Skip to content

Commit 2df912a

Browse files
committed
t32 script for mp13
1 parent 0610603 commit 2df912a

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

flashing/mp13-t32.cmm

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
; Load a multi-uimg file to DDR RAM, and then trigger MP1-Boot to process it
2+
; This assumes this script is in flashing/, and the uimg file is build/main.uimg
3+
; and the elf file (used for symbols) is build/mp1corea7/medium/main.elf
4+
5+
PRIVATE &builddir
6+
&builddir=OS.PPF()
7+
&builddir=OS.FILE.PATH("&builddir")
8+
9+
PRIVATE &binfile
10+
&binfile=OS.FILE.JOINPATH("&builddir", "../", "build", "main.uimg")
11+
&binfile=OS.FILE.REALPATH("&binfile")
12+
13+
PRIVATE &elffile
14+
&elffile=OS.FILE.JOINPATH("&builddir", "../", "build", "mp1corea7", "medium", "main.elf")
15+
&elffile=OS.FILE.REALPATH("&elffile")
16+
17+
RESet
18+
SYStem.RESet
19+
20+
SYStem.CPU STM32MP131D
21+
SYStem.JtagClock 50MHz
22+
CORE.ASSIGN 1. 2.
23+
24+
Trace.DISable
25+
SYStem.MemAccess DAP
26+
SYStem.Up
27+
28+
//Data.LOAD.Binary "&binfile" 0xC0000000 /DUALPORT
29+
//Data.LOAD.Elf "&elffile" /CPP /NoCode
30+
//PER.Set.simple AZSD:0x0:0x5C00A118 %Long 0xC0000000
31+
;Break main
32+
Go
33+
34+
Trace.METHOD ONCHIP
35+
ETM.Trace ON
36+
ETM.ON
37+
38+
Trace.arm
39+
ENDDO

0 commit comments

Comments
 (0)