forked from sirojudinMunir/stm32-FOC
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
57 lines (49 loc) · 1.32 KB
/
platformio.ini
File metadata and controls
57 lines (49 loc) · 1.32 KB
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
; 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:genericSTM32F405RG]
platform = ststm32
board = genericSTM32F405RG
framework = stm32cube
extra_scripts = pre:link_hardfloat.py
upload_protocol = stlink
debug_tool = stlink
board_build.cmsis = true
; board_build.ldscript = STM32F405RGTX_FLASH.ld
build_flags =
-O2
-lc -lm -larm_cortexM4lf_math
-ffast-math
-fsingle-precision-constant
--specs=nano.specs
-fno-strict-aliasing -fno-optimize-sibling-calls
-Wl,-u,_printf_float
-DHSE_VALUE=12000000U
-DUSE_HAL_DRIVER
-DHAL_NVIC_MODULE_ENABLED
-DARM_MATH_CM4
-DHAL_CAN_MODULE_ENABLED
-Ilib/AS5047P_Driver
-Ilib/CAN
-Ilib/Controller_app
-Ilib/Digital_Filter
-Ilib/DRV8302_Driver
-Ilib/FLASH
-Ilib/FOC
-Ilib/HFI
-Ilib/MIDI
-Ilib/PID
-Ilib/PLL
-Ilib/SMO
-Isrc/Core/Inc
-Isrc/USB_device/App
-Isrc/USB_device/Target
-Isrc/FreeRTOS/CMSIS_RTOS
-Isrc/FreeRTOS/portable/GCC/ARM_CM4F
-Isrc/FreeRTOS/include