Skip to content

Instantly share code, notes, and snippets.

@carlosedp
Last active January 26, 2022 17:24
Show Gist options
  • Save carlosedp/9fb584ff08ca17247c8d9aec2e87edcc to your computer and use it in GitHub Desktop.
Save carlosedp/9fb584ff08ca17247c8d9aec2e87edcc to your computer and use it in GitHub Desktop.
PlatformIO Renode Integration
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:hifive1]
platform = sifive
board = hifive1
framework = zephyr
## ----- Settings below are for Antmicro Renode integration ----- ##
# Monitor port for Renode integration
monitor_port = socket://localhost:1234
# Upload settings for Renode integration
upload_command = renode $UPLOAD_FLAGS
upload_flags =
-e include @scripts/single-node/sifive_fe310.resc
-e machine StartGdbServer 3333 True
-e emulation CreateServerSocketTerminal 1234 \"externalUART\"
-e connector Connect uart0 externalUART
-e sysbus LoadELF @$SOURCE
-e start
# Debug settings for Renode integration
debug_tool = custom
debug_port = localhost:3333
debug_server = renode
--hide-log
-e include @scripts/single-node/sifive_fe310.resc
-e machine StartGdbServer 3333 True
-e emulation CreateServerSocketTerminal 1234 "externalUART"
-e connector Connect uart0 externalUART
debug_extra_cmds =
monitor start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment