Skip to content

Commit

Permalink
updated renode files
Browse files Browse the repository at this point in the history
  • Loading branch information
vChavezB committed Apr 12, 2024
1 parent 63f36ac commit 52de0d8
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
build*
*.pyc
*.idea
.vscode/*
*.vscode/*
test/renode/logs/*
test/renode/*.html
test/renode/*.xml
24 changes: 24 additions & 0 deletions test/renode/load.resc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using sysbus

emulation CreateBLEMedium "wireless"


mach add "central"
machine LoadPlatformDescription @platforms/cpus/nrf52840.repl


showAnalyzer uart0

mach create "peripheral"
machine LoadPlatformDescription @platforms/cpus/nrf52840.repl
connector Connect sysbus.radio wireless
showAnalyzer uart0

emulation SetGlobalQuantum "0.00001"


mach set "central"
sysbus LoadELF $ORIGIN/uptime_central/build/zephyr/zephyr.elf

mach set "peripheral"
sysbus LoadELF $ORIGIN/../../samples/uptime/build/zephyr/zephyr.elf
6 changes: 3 additions & 3 deletions test/renode/uptime_test.robot
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ Resource ${RENODEKEYWORDS}
*** Test Cases ***
BLISS Demo
Uptime Demo
Execute Command emulation CreateIEEE802_15_4Medium "wireless"
Execute Command mach add "central"
Execute Command machine LoadPlatformDescription @platforms/cpus/nrf52840.repl
Execute Command sysbus LoadELF @${CURDIR}/central.elf
Execute Command sysbus LoadELF @${CURDIR}/uptime_central/build/zephyr/zephyr.elf
Execute Command connector Connect sysbus.radio wireless
Execute Command showAnalyzer ${UART}
Expand All @@ -35,7 +35,7 @@ BLISS Demo
Execute Command mach add "peripheral"
Execute Command mach set "peripheral"
Execute Command machine LoadPlatformDescription @platforms/cpus/nrf52840.repl
Execute Command sysbus LoadELF @${CURDIR}/periph.elf
Execute Command sysbus LoadELF @${CURDIR}/../../samples/uptime/build/zephyr/zephyr.elf
Execute Command connector Connect sysbus.radio wireless
Execute Command showAnalyzer ${UART}
Expand Down

0 comments on commit 52de0d8

Please sign in to comment.