-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
70 lines (65 loc) · 2.17 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
; 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:frdm_k64f_renode]
platform = freescalekinetis
board = frdm_k64f
framework = zephyr
; Custom upload settings for renode integration
upload_protocol = custom
upload_command = renode $UPLOAD_FLAGS
upload_flags =
-e include @scripts/single-node/k64f.resc
-e sysbus LoadELF @$PROG_PATH
-e showAnalyzer uart0
-e emulation CreateServerSocketTerminal 3456 \"term\"
-e connector Connect uart0 term
-e start
[env:frdm_k64f_renode_debug]
platform = freescalekinetis
board = frdm_k64f
framework = zephyr
; custom settings for debugging with renode.
; automatic load using gdb does not work in this platform, so we manually
; compile a debug release and load it using renode.
; see https://github.com/renode/renode/issues/398
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/k64f.resc
-e sysbus LoadELF @$PROG_PATH
-e machine StartGdbServer 3333
; The usual commands so that we can interact with the uart0
-e emulation CreateServerSocketTerminal 3456 "term"
-e connector Connect uart0 term
-e showAnalyzer uart0
debug_extra_cmds =
monitor start
[env:frdm_k64f_board]
platform = freescalekinetis
board = frdm_k64f
framework = zephyr
; empty as platformio flashes the hw by default.
[env:nucleo_f410rb_renode]
platform = ststm32
board = nucleo_f410rb
framework = zephyr
; Custom upload settings for renode integration
upload_protocol = custom
upload_command = renode $UPLOAD_FLAGS
upload_flags =
-e using sysbus
-e mach create \"nucleo\"
-e machine LoadPlatformDescription @nucleo_f410rb.repl
-e sysbus LoadELF @.pio/build/nucleo_f410rb_renode/firmware.elf
-e showAnalyzer usart2
-e start