add Chapter04 bare example

This commit is contained in:
Amar Mahmutbegovic
2024-04-28 00:57:39 +02:00
parent 5af72efc42
commit 6df50956c4
915 changed files with 571018 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using sysbus
mach create
machine LoadPlatformDescription @platforms/cpus/stm32f072.repl
$bin?=$ORIGIN/../build/bare.elf
showAnalyzer usart2
macro reset
"""
sysbus LoadELF $bin
"""
runMacro $reset
start

View File

@@ -0,0 +1,17 @@
using sysbus
mach create
machine LoadPlatformDescription @platforms/cpus/stm32f072.repl
$bin?=$ORIGIN/../build/bare.elf
showAnalyzer usart2
macro reset
"""
sysbus LoadELF $bin
"""
runMacro $reset
machine StartGdbServer 3333