-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
platformio.ini
38 lines (30 loc) · 1.42 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
; 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:bluepill_f103c8]
platform = ststm32
board = bluepill_f103c8
framework = cmsis
; Add The following lines of code to your project's platformio.ini file.
upload_protocol = stlink
upload_flags = -c set CPUTAPID 0 ; Allow Original and Clone STM32 to be detected by OpenOCD debugger.
debug_build_flags = -O0 -ggdb3 ; Apply no optimization to the code written.
;debug_init_break = tbreak Reset_Handler ; Uncomment to activate: Adds a break point in the reset handler.
; ============ Enable Arm Semihosting in debugger to show logs =============
; Add The following code lines to enable semihosting feature.
; To disable semihosting please comment all of the following code lines by adding semicolon ";" before each one:
extra_scripts = extra_script.py ; The "extra_script.py" file must be located in the main project folder
build_unflags =
--specs=nosys.specs
-lnosys
debug_extra_cmds =
monitor arm semihosting enable
debug_tool = custom
debug_port = :3333
; ===========================================================================