2021-09-13 17:27:04 +08:00
|
|
|
:description: This script is prepared to run Zephyr on SiFive-FE310 board.
|
|
|
|
:name: SiFive-FE310
|
|
|
|
|
|
|
|
$name?="SiFive-FE310"
|
|
|
|
|
2022-05-10 14:25:44 +08:00
|
|
|
set platform
|
|
|
|
"""
|
|
|
|
using "platforms/cpus/sifive-fe310.repl"
|
|
|
|
|
|
|
|
clint:
|
|
|
|
frequency: 16000000
|
|
|
|
"""
|
|
|
|
|
2021-09-13 17:27:04 +08:00
|
|
|
using sysbus
|
|
|
|
mach create $name
|
2022-05-10 14:25:44 +08:00
|
|
|
machine LoadPlatformDescriptionFromString $platform
|
2021-09-13 17:27:04 +08:00
|
|
|
|
|
|
|
sysbus Tag <0x10008000 4> "PRCI_HFROSCCFG" 0xFFFFFFFF
|
|
|
|
sysbus Tag <0x10008008 4> "PRCI_PLLCFG" 0xFFFFFFFF
|
|
|
|
cpu PerformanceInMips 320
|
|
|
|
|
|
|
|
showAnalyzer uart0
|
|
|
|
|
|
|
|
macro reset
|
|
|
|
"""
|
|
|
|
sysbus LoadELF $bin
|
|
|
|
"""
|
|
|
|
runMacro $reset
|