24 lines
592 B
Plaintext
24 lines
592 B
Plaintext
|
|
using sysbus
|
|
$name?="waveshare_open103z"
|
|
mach create $name
|
|
|
|
machine LoadPlatformDescription $ORIGIN/stm32f103z.repl
|
|
|
|
showAnalyzer usart1
|
|
$boot?=@/Users/zhangzheng/mkrtos-real/build/output/bootstrap.elf
|
|
$knl?=@/Users/zhangzheng/mkrtos-real/build/output/mkrtos
|
|
$init?=@/Users/zhangzheng/mkrtos-real/build/output/init
|
|
$cpio?=@/Users/zhangzheng/mkrtos-real/build/output/rootfs.cpio
|
|
|
|
macro reset
|
|
"""
|
|
sysbus LoadELF $boot
|
|
sysbus LoadBinary $knl 0x8002000
|
|
sysbus LoadBinary $init 0x8010000
|
|
sysbus LoadBinary $cpio 0x8022000
|
|
cpu0 VectorTableOffset 0x8000000
|
|
|
|
"""
|
|
|
|
runMacro $reset |