forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards/riscv/hifive_unleashed: add Renode simulation support
This commit adds Renode simulation support to the HiFive Unleashed board. Signed-off-by: Filip Kokosinski <[email protected]>
- Loading branch information
1 parent
253070b
commit 3ed800e
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
boards/riscv/hifive_unleashed/support/hifive_unleashed.resc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
:description: This script is prepared to run Zephyr on SiFive-FU540 board. | ||
:name: SiFive-FU540 | ||
|
||
$name?="SiFive-FU540" | ||
|
||
using sysbus | ||
mach create $name | ||
|
||
set platform | ||
""" | ||
using "platforms/cpus/sifive-fu540.repl" | ||
|
||
clint: | ||
frequency: 10000000 | ||
""" | ||
|
||
machine LoadPlatformDescriptionFromString $platform | ||
machine PyDevFromFile @scripts/pydev/flipflop.py 0x10000000 0x100 True | ||
showAnalyzer uart0 | ||
|
||
macro reset | ||
""" | ||
sysbus LoadELF $bin | ||
""" | ||
runMacro $reset |