-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio_disco_f469ni.ini
94 lines (80 loc) · 3.35 KB
/
platformio_disco_f469ni.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
; 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_f469ni
framework = stm32cube
board_build.f_cpu = 24000000L
build_flags = -DHSE_VALUE=8000000 -fstack-usage
test_build_src = yes
; Uncomment line below to debug unit tests instead of main code
; debug_test = *
; add "Custom" -> "SWO Viewer" project task
extra_scripts = pre:add_swo_viewer.py
; set SWO trace clock in frequency to configured HCLK frequency
; in this example, board is clocked via PLL to 24MHz.
; if this number is wrong, there will be no output.
swo_trace_clkin_freq = 24000000
swo_trace_freq = 2000000
; if you want to see SWO outputs during debugging, a custom
; debug server invocation must be used.
; adapt interface and target accordingly.
; this entails changing the traceclk parameter to match
; the swo_trace_clkin_freq above.
; the SWO pin frequency param is irrelevant, since we are forwarding to
; tcl_trace, but OpenOCD will otherwise fail to enable the TPIU.
; this is used when starting debugging, not in the SWO Viewer task.
; after debugging starts, one must manually start the swo_viewer.py with
; python swo_parser.py --dont-run
debug_server = $PLATFORMIO_CORE_DIR/packages/tool-openocd/bin/openocd
-f $PLATFORMIO_CORE_DIR/packages/tool-openocd/scripts/interface/stlink-v2-1.cfg
-f $PLATFORMIO_CORE_DIR/packages/tool-openocd/scripts/board/stm32f4discovery.cfg
-c "stm32f4x.tpiu configure -protocol uart"
-c "stm32f4x.tpiu configure -output -"
-c "stm32f4x.tpiu configure -traceclk 24000000"
-c "stm32f4x.tpiu configure -pin-freq 2000000"
-c "stm32f4x.tpiu configure -formatter 0"
-c "itm ports on"
-c "stm32f4x.tpiu enable"
-c "tcl_port 6666"
; Unit Testing
test_testing_command =
${platformio.test_dir}/../swo_test_runner.py
${platformio.packages_dir}
${platformio.test_dir}/..
60
[env:disco_f469ni_gcc]
build_flags = ${env.build_flags} -fcallgraph-info -g
platform_packages = platformio/toolchain-gccarmnoneeabi@>=1.100301.220327
board_build.ldscript = STM32F469NIHX_FLASH.ld
[env:disco_f469ni_gcc_CCM_SP]
build_flags = ${env.build_flags} -fcallgraph-info -g
platform_packages = platformio/toolchain-gccarmnoneeabi@>=1.100301.220327
board_build.ldscript = STM32F469NIHX_FLASH_CCM_SP.ld
[env:disco_f469ni_clang]
build_flags = ${env.build_flags} -gdwarf-2
build_unflags = -lgcc -lnosys
platform_packages =
toolchain-clang@file:///Users/decio/Documents/PhD2/Cursos/TII/code/toolchain-clang-darwin_arm64-1.160000.230413.tar.gz
; add script to enable clang and "Custom" -> "SWO Viewer" project task
extra_scripts =
${env.extra_scripts}
post:use_clang.py
board_build.ldscript = STM32F469NIHX_FLASH.ld
[env:disco_f469ni_clang_CCM_SP]
build_flags = ${env.build_flags} -gdwarf-2
build_unflags = -lgcc -lnosys
platform_packages =
toolchain-clang@file:///Users/decio/Documents/PhD2/Cursos/TII/code/toolchain-clang-darwin_arm64-1.160000.230413.tar.gz
; add script to enable clang and "Custom" -> "SWO Viewer" project task
extra_scripts =
${env.extra_scripts}
post:use_clang.py
board_build.ldscript = STM32F469NIHX_FLASH_CCM_SP.ld