-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
56 lines (44 loc) · 1.6 KB
/
platformio.ini
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
; 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]
platform = ststm32
board = disco_f051r8
framework = zephyr
[env:disco_f051r8_renode]
; Custom upload settings for renode integration
upload_protocol = custom
upload_command = renode $UPLOAD_FLAGS
upload_flags =
-e include @scripts/single-node/stm32f0disco.resc
-e sysbus LoadELF @$PROG_PATH
-e emulation CreateServerSocketTerminal 3456 \"term\"
-e connector Connect usart2 term
-e showAnalyzer usart2
-e start
[env:disco_f051r8_renode_debug]
; Custom debug settings for renode integration
build_type = debug
debug_tool = custom
debug_load_mode = manual ; Disable automatic loading by platformio
debug_port = localhost:3333
debug_server = renode
--hide-log ; to avoid filling the debug console with renode logs
-e include @scripts/single-node/stm32f0disco.resc
-e sysbus LoadELF @$PROG_PATH
-e machine StartGdbServer 3333
; The usual commands so that we can interact with the usart2
-e emulation CreateServerSocketTerminal 3456 "term" ; Note there is no backslash
-e connector Connect usart2 term
-e showAnalyzer usart2
debug_extra_cmds =
monitor start ; same as we did when using gdb manually, we start the simulation
[env:disco_f051r8_board]
debug_tool = stlink
upload_protocol = stlink