forked from WyliodrinEmbeddedIoT/tock-project
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstm32f4.resc
32 lines (24 loc) · 898 Bytes
/
stm32f4.resc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
:name: Tock on STM32F4
:description: This script runs the Tock cxx_hello sample on STM32F4 Discovery.
using sysbus
$name?="STM32F4_Discovery"
mach create $name
machine LoadPlatformDescription @stm32f412g_discovery-kit.repl
cpu PerformanceInMips 125
$bin=@tock/target/thumbv7em-none-eabi/release/stm32f412gdiscovery.elf
$app=@applications/example_app/build/cortex-m4/cortex-m4.tbf
# $bin?=@https://dl.antmicro.com/projects/renode/stm32f412gdiscovery--tock_kernel.elf-s_3392340-6da12cfcd5c4180b60ce7bf2ad32f019c9e8216e
# $app?=@https://dl.antmicro.com/projects/renode/cortex_m4--tock-cxx_hello.tbf-s_16384-2bf6dfc3ffd2894bea56341901beec1e903c3135
showAnalyzer sysbus.uart2
logLevel 3
logLevel -1 gpioPortE.led0
logLevel -1 gpioPortE.led1
logLevel -1 gpioPortE.led2
logLevel -1 gpioPortE.led3
macro reset
"""
sysbus LoadELF $bin
sysbus LoadBinary $app 0x08030000
"""
runMacro $reset
s