-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
39 lines (33 loc) · 1.53 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
; 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
board_build.mcu = stm32f103c8t6 ; change microcontroller (override)
board_build.f_cpu = 8000000L ; change MCU frequency (override)
upload_protocol = stlink
upload_flags = -c set CPUTAPID 0 ; Allow uploading to Original and Clone STM32 MCUs.
debug_init_break = tbreak Reset_Handler ; Adds a break point in the reset handler.
;debug_build_flags = -O0 -ggdb3 ; uncomment to allow no optimization to the code.
;debug_tool = custom
;debug_port = :3333
; ============ 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
; ===========================================================================