File tree 3 files changed +54
-10
lines changed
3 files changed +54
-10
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,7 @@ https://github.com/stm32duino/Arduino_Core_STM32/blob/main/variants/STM32F4xx/
33
33
git clone https://github.com/nopnop2002/Arduino-STM32-CAN
34
34
cd Arduino-STM32-CAN/stm32f407
35
35
pio init --board genericSTM32F405RG
36
- vi platform.ini
37
- ---------------------------------------
38
- [env:genericSTM32F405RG]
39
- platform = ststm32
40
- board = genericSTM32F405RG
41
- framework = arduino
42
- upload_protocol = stlink ---> Add this
43
- ---------------------------------------
36
+ cp _platformio.ini platformio.ini
44
37
cp stm32f407.ino src/
45
- pio run -t upload
38
+ pio run -t upload -e genericSTM32F405RG
46
39
```
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ https://github.com/stm32duino/Arduino_Core_STM32/blob/main/variants/STM32F4xx/
55
55
git clone https://github.com/nopnop2002/Arduino-STM32-CAN
56
56
cd Arduino-STM32-CAN/stm32f407
57
57
pio init --board genericSTM32F407VET6
58
+ cp _platformio.ini platformio.ini
58
59
cp stm32f407.ino src/
59
- pio run -t upload
60
+ pio run -t upload -e genericSTM32F407VET6
60
61
```
Original file line number Diff line number Diff line change
1
+ ; PlatformIO Project Configuration File
2
+ ;
3
+ ; Build options: build flags, source filter
4
+ ; Upload options: custom upload port, speed and extra flags
5
+ ; Library options: dependencies, extra library storages
6
+ ; Advanced options: extra scripting
7
+ ;
8
+ ; Please visit documentation for the other options and examples
9
+ ; https://docs.platformio.org/page/projectconf.html
10
+
11
+ [env:genericSTM32F405RG]
12
+ platform = ststm32
13
+ board = genericSTM32F405RG
14
+ framework = arduino
15
+ upload_protocol = stlink
16
+
17
+ [env:genericSTM32F405RG_usbcon]
18
+ platform = ststm32
19
+ board = genericSTM32F405RG
20
+ framework = arduino
21
+ upload_protocol = stlink
22
+ build_flags =
23
+ -D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
24
+ -D USBCON
25
+
26
+ [env:black_f407ve]
27
+ platform = ststm32
28
+ board = black_f407ve
29
+ framework = arduino
30
+
31
+ [env:black_f407ve_usbcon]
32
+ platform = ststm32
33
+ board = black_f407ve
34
+ framework = arduino
35
+ build_flags =
36
+ -D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
37
+ -D USBCON
38
+
39
+ [env:genericSTM32F407VET6]
40
+ platform = ststm32
41
+ board = genericSTM32F407VET6
42
+ framework = arduino
43
+
44
+ [env:genericSTM32F407VET6_usbcon]
45
+ platform = ststm32
46
+ board = genericSTM32F407VET6
47
+ framework = arduino
48
+ build_flags =
49
+ -D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
50
+ -D USBCON
You can’t perform that action at this time.
0 commit comments