-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathplatformio.ini
145 lines (132 loc) · 3.15 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[platformio]
core_dir = .core_dir
[env]
extra_scripts =
pre:bin/script.py
build_flags =
-I lib/matiec/lib/C
-I src
-I src/generated
framework = arduino
lib_archive = no
;;
;; Custom parameter definition
;;
;; board_name: displayed name on the uploader UI
;; board_hw: section name containing IO configuration
;; board_uart: number of serial ports, default 1
;;
;; This entry must come before any stm32 entries
[env:stm32_bootloader]
framework = libopencm3
platform = platformio/ststm32@^16.1.0
board_build.ldscript = bootloader/stm32fx.ld
build_src_filter = -<*> +<../bootloader/bootloader.c>
board = genericSTM32F103C8
upload_protocol = serial
upload_speed = 57600
;;upload_protocol = stlink
;;upload_flags = -c set CPUTAPID 0
build_flags =
-Os -std=gnu99
-MD -Wall -Wundef
-mthumb -mcpu=cortex-m3 -msoft-float -mfix-cortex-m3-ldrd
-Wextra -Wshadow -Wredundant-decls
-fno-common -ffunction-sections -fdata-sections
-Wl,--defsym=__boot_size__=0
-Wl,--gc-sections
-Wl,--print-memory-usage
[fx_common]
upload_protocol = serial
upload_speed = 57600
extra_scripts =
bin/post_script.py
pre:bin/script.py
post:bin/upload.py
build_flags =
${env.build_flags}
-D VECT_TAB_OFFSET=0x1000
-D ENABLE_HWSERIAL1
[env:stm32]
extends = fx_common
board_hw = stm32
board_name = STM32-F103VE Generic
platform = platformio/ststm32@^16.1.0
board_uart = 4
board = genericSTM32F103VE
build_flags =
${fx_common.build_flags}
-D BOARD_STM32
[env:fx3u_14]
extends = fx_common
board_hw = fx3u_14
board_name = FX3U-14 PLC (STM32)
platform = platformio/ststm32@^16.1.0
board = genericSTM32F103VC
build_flags =
${fx_common.build_flags}
-D ENABLE_HWSERIAL3
-D BOARD_FX3U_14
[env:fx3u_24]
extends = fx_common
board_hw = fx3u_24
board_name = FX3U-24 PLC (STM32)
platform = platformio/ststm32@^16.1.0
board = genericSTM32F103VC
build_flags =
${fx_common.build_flags}
-D ENABLE_HWSERIAL3
-D BOARD_FX3U_24
[env:fx3u_26_e]
extends = fx_common
board_hw = fx3u_26_e
board_name = FX3U-26 PLC with Ethernet (STM32)
platform = platformio/ststm32@^16.1.0
board = genericSTM32F103VC
lib_deps =
arduino-libraries/Ethernet@^2.0.1
build_flags =
${fx_common.build_flags}
-D ENABLE_HWSERIAL4
-D BOARD_FX3U_26_E
;:
;; the following are the default hardware I/O configurations
;:
;; din: pin mapping for the digital inputs (%IX0.0 ...)
;; dout: pin mapping for the digital outputs (%QX0.0 ...)
;; ain: pin mapping for the analog inputs (%IW0 ...)
;; aout: pin mapping for the analog outputs (%QW0 ...)
;;
[stm32]
din = PA8, PA11, PA12, PB3, PB4, PB5, PB8, PB9, PB10
dout = PB11, PB12, PB13, PB14, PB15, PC14, PC15
ain = PA0, PA1, PA4, PA5, PA6, PA7
aout = PB0, PB1
led = PC13
uarts = UART1, UART2
[fx3u_14]
no_wifi = 1
no_eth = 1
led = PD10
uarts = UART1, UART2
discrete_count = 16
coil_count = 16
input_count = 8
holding_count = 8
[fx3u_24]
no_wifi = 1
no_eth = 1
led = PD10
uarts = UART1, UART2
discrete_count = 16
coil_count = 16
input_count = 8
holding_count = 8
[fx3u_26_e]
no_wifi = 1
led = PE0, PE1
uarts = UART1, UART2
discrete_count = 16
coil_count = 16
input_count = 8
holding_count = 8