Skip to content

Commit 007c2b1

Browse files
committed
[variant] Add Generic F2xx
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 1d4a348 commit 007c2b1

14 files changed

+2124
-878
lines changed

Diff for: README.md

+7
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
5353
- [STM32MP1 series coprocessor boards](#stm32mp1-series-coprocessor-boards)
5454
- [Generic STM32F0 boards](#generic-stm32f0-boards)
5555
- [Generic STM32F1 boards](#generic-stm32f1-boards)
56+
- [Generic STM32F2 boards](#generic-stm32f2-boards)
5657
- [Generic STM32F3 boards](#generic-stm32f3-boards)
5758
- [Generic STM32F4 boards](#generic-stm32f4-boards)
5859
- [Generic STM32G0 boards](#generic-stm32g0-boards)
@@ -181,6 +182,12 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
181182
| :green_heart: | STM32F103ZE | [vcc-gnd.com](https://stm32-base.org/boards/STM32F103ZET6-VCC-GND-XLarge) | *1.9.0* | [More info](http://www.vcc-gnd.com/rtd/html/STM32/quickref.html#stm32f1) |
182183
| :green_heart: | STM32F103ZE | vcc-gnd.com Mini | *1.9.0* | [More info](http://www.vcc-gnd.com/rtd/html/STM32/quickref.html#stm32f1) |
183184

185+
### Generic STM32F2 boards
186+
187+
| Status | Device(s) | Name | Release | Notes |
188+
| :----: | :-------: | ---- | :-----: | :---- |
189+
| :yellow_heart: | STM32F207ZC<br>STM32F207ZE<br>STM32F207ZF<br>STM32F207G | Generic Board | **2.0.0** | |
190+
184191
### Generic STM32F3 boards
185192

186193
| Status | Device(s) | Name | Release | Notes |

Diff for: boards.txt

+107-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Nucleo_144.build.board=Nucleo_144
2020
Nucleo_144.build.extra_flags=-D{build.product_line} {build.enable_usb} {build.xSerial}
2121

2222
# NUCLEO_F207ZG board
23-
# Support: USB HID, Serial1 (USART1 on PG9, PG14) and Serial2 (USART2 on PD6, PD5)
2423
Nucleo_144.menu.pnum.NUCLEO_F207ZG=Nucleo F207ZG
2524
Nucleo_144.menu.pnum.NUCLEO_F207ZG.node=NODE_F207ZG
2625
Nucleo_144.menu.pnum.NUCLEO_F207ZG.upload.maximum_size=1048576
@@ -29,7 +28,7 @@ Nucleo_144.menu.pnum.NUCLEO_F207ZG.build.mcu=cortex-m3
2928
Nucleo_144.menu.pnum.NUCLEO_F207ZG.build.board=NUCLEO_F207ZG
3029
Nucleo_144.menu.pnum.NUCLEO_F207ZG.build.series=STM32F2xx
3130
Nucleo_144.menu.pnum.NUCLEO_F207ZG.build.product_line=STM32F207xx
32-
Nucleo_144.menu.pnum.NUCLEO_F207ZG.build.variant=STM32F2xx/NUCLEO_F207ZG
31+
Nucleo_144.menu.pnum.NUCLEO_F207ZG.build.variant=STM32F2xx/Generic_F207Zx
3332
Nucleo_144.menu.pnum.NUCLEO_F207ZG.build.cmsis_lib_gcc=arm_cortexM3l_math
3433

3534
# NUCLEO_F429ZI board
@@ -1335,6 +1334,65 @@ GenF1.menu.upload_method.dfuoMethod.upload.altID=1
13351334
GenF1.menu.upload_method.dfuoMethod.build.flash_offset=0x5000
13361335
GenF1.menu.upload_method.dfuoMethod.build.bootloader_flags=-DBL_LEGACY_LEAF -DVECT_TAB_OFFSET={build.flash_offset}
13371336

1337+
################################################################################
1338+
# Generic F2
1339+
GenF2.name=Generic STM32F2 series
1340+
1341+
GenF2.build.core=arduino
1342+
GenF2.build.board=GenF2
1343+
GenF2.build.extra_flags=-D{build.product_line} {build.enable_usb} {build.xSerial}
1344+
GenF2.build.mcu=cortex-m3
1345+
GenF2.build.series=STM32F2xx
1346+
GenF2.build.cmsis_lib_gcc=arm_cortexM3l_math
1347+
1348+
# Generic F207ZC
1349+
GenF2.menu.pnum.GENERIC_F207ZC=Generic F207ZC
1350+
GenF2.menu.pnum.GENERIC_F207ZC.upload.maximum_size=262144
1351+
GenF2.menu.pnum.GENERIC_F207ZC.upload.maximum_data_size=131072
1352+
GenF2.menu.pnum.GENERIC_F207ZC.build.board=GENERIC_F207ZC
1353+
GenF2.menu.pnum.GENERIC_F207ZC.build.product_line=STM32F207xx
1354+
GenF2.menu.pnum.GENERIC_F207ZC.build.variant=STM32F2xx/Generic_F207Zx
1355+
1356+
# Generic F207ZE
1357+
GenF2.menu.pnum.GENERIC_F207ZE=Generic F207ZE
1358+
GenF2.menu.pnum.GENERIC_F207ZE.upload.maximum_size=524288
1359+
GenF2.menu.pnum.GENERIC_F207ZE.upload.maximum_data_size=131072
1360+
GenF2.menu.pnum.GENERIC_F207ZE.build.board=GENERIC_F207ZE
1361+
GenF2.menu.pnum.GENERIC_F207ZE.build.product_line=STM32F207xx
1362+
GenF2.menu.pnum.GENERIC_F207ZE.build.variant=STM32F2xx/Generic_F207Zx
1363+
1364+
# Generic F207ZF
1365+
GenF2.menu.pnum.GENERIC_F207ZF=Generic F207ZF
1366+
GenF2.menu.pnum.GENERIC_F207ZF.upload.maximum_size=786432
1367+
GenF2.menu.pnum.GENERIC_F207ZF.upload.maximum_data_size=131072
1368+
GenF2.menu.pnum.GENERIC_F207ZF.build.board=GENERIC_F207ZF
1369+
GenF2.menu.pnum.GENERIC_F207ZF.build.product_line=STM32F207xx
1370+
GenF2.menu.pnum.GENERIC_F207ZF.build.variant=STM32F2xx/Generic_F207Zx
1371+
1372+
# Generic F207ZG
1373+
GenF2.menu.pnum.GENERIC_F207ZG=Generic F207ZG
1374+
GenF2.menu.pnum.GENERIC_F207ZG.upload.maximum_size=1048576
1375+
GenF2.menu.pnum.GENERIC_F207ZG.upload.maximum_data_size=131072
1376+
GenF2.menu.pnum.GENERIC_F207ZG.build.board=GENERIC_F207ZG
1377+
GenF2.menu.pnum.GENERIC_F207ZG.build.product_line=STM32F207xx
1378+
GenF2.menu.pnum.GENERIC_F207ZG.build.variant=STM32F2xx/Generic_F207Zx
1379+
1380+
# Upload menu
1381+
GenF2.menu.upload_method.swdMethod=STM32CubeProgrammer (SWD)
1382+
GenF2.menu.upload_method.swdMethod.upload.protocol=0
1383+
GenF2.menu.upload_method.swdMethod.upload.options=-g
1384+
GenF2.menu.upload_method.swdMethod.upload.tool=stm32CubeProg
1385+
1386+
GenF2.menu.upload_method.serialMethod=STM32CubeProgrammer (Serial)
1387+
GenF2.menu.upload_method.serialMethod.upload.protocol=1
1388+
GenF2.menu.upload_method.serialMethod.upload.options={serial.port.file} -s
1389+
GenF2.menu.upload_method.serialMethod.upload.tool=stm32CubeProg
1390+
1391+
GenF2.menu.upload_method.dfuMethod=STM32CubeProgrammer (DFU)
1392+
GenF2.menu.upload_method.dfuMethod.upload.protocol=2
1393+
GenF2.menu.upload_method.dfuMethod.upload.options=-g
1394+
GenF2.menu.upload_method.dfuMethod.upload.tool=stm32CubeProg
1395+
13381396
################################################################################
13391397
# Generic F3
13401398

@@ -2769,6 +2827,12 @@ GenF1.menu.xserial.none.build.xSerial=-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE
27692827
GenF1.menu.xserial.disabled=Disabled (no Serial support)
27702828
GenF1.menu.xserial.disabled.build.xSerial=
27712829

2830+
GenF2.menu.xserial.generic=Enabled (generic 'Serial')
2831+
GenF2.menu.xserial.none=Enabled (no generic 'Serial')
2832+
GenF2.menu.xserial.none.build.xSerial=-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE
2833+
GenF2.menu.xserial.disabled=Disabled (no Serial support)
2834+
GenF2.menu.xserial.disabled.build.xSerial=
2835+
27722836
GenF3.menu.xserial.generic=Enabled (generic 'Serial')
27732837
GenF3.menu.xserial.none=Enabled (no generic 'Serial')
27742838
GenF3.menu.xserial.none.build.xSerial=-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE
@@ -2942,6 +3006,19 @@ GenF1.menu.xusb.HS.build.usb_speed=-DUSE_USB_HS
29423006
GenF1.menu.xusb.HSFS=High Speed in Full Speed mode
29433007
GenF1.menu.xusb.HSFS.build.usb_speed=-DUSE_USB_HS -DUSE_USB_HS_IN_FS
29443008

3009+
GenF2.menu.usb.none=None
3010+
GenF2.menu.usb.CDCgen=CDC (generic 'Serial' supersede U(S)ART)
3011+
GenF2.menu.usb.CDCgen.build.enable_usb={build.usb_flags} -DUSBD_USE_CDC
3012+
GenF2.menu.usb.CDC=CDC (no generic 'Serial')
3013+
GenF2.menu.usb.CDC.build.enable_usb={build.usb_flags} -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB
3014+
GenF2.menu.usb.HID=HID (keyboard and mouse)
3015+
GenF2.menu.usb.HID.build.enable_usb={build.usb_flags} -DUSBD_USE_HID_COMPOSITE
3016+
GenF2.menu.xusb.FS=Low/Full Speed
3017+
GenF2.menu.xusb.HS=High Speed
3018+
GenF2.menu.xusb.HS.build.usb_speed=-DUSE_USB_HS
3019+
GenF2.menu.xusb.HSFS=High Speed in Full Speed mode
3020+
GenF2.menu.xusb.HSFS.build.usb_speed=-DUSE_USB_HS -DUSE_USB_HS_IN_FS
3021+
29453022
GenF3.menu.usb.none=None
29463023
GenF3.menu.usb.CDCgen=CDC (generic 'Serial' supersede U(S)ART)
29473024
GenF3.menu.usb.CDCgen.build.enable_usb={build.usb_flags} -DUSBD_USE_CDC
@@ -3190,6 +3267,24 @@ GenF1.menu.opt.o3lto.build.flags.optimize=-O3 -flto
31903267
GenF1.menu.opt.ogstd=Debug (-g)
31913268
GenF1.menu.opt.ogstd.build.flags.optimize=-g -Og
31923269

3270+
GenF2.menu.opt.osstd=Smallest (-Os default)
3271+
GenF2.menu.opt.oslto=Smallest (-Os) with LTO
3272+
GenF2.menu.opt.oslto.build.flags.optimize=-Os -flto
3273+
GenF2.menu.opt.o1std=Fast (-O1)
3274+
GenF2.menu.opt.o1std.build.flags.optimize=-O1
3275+
GenF2.menu.opt.o1lto=Fast (-O1) with LTO
3276+
GenF2.menu.opt.o1lto.build.flags.optimize=-O1 -flto
3277+
GenF2.menu.opt.o2std=Faster (-O2)
3278+
GenF2.menu.opt.o2std.build.flags.optimize=-O2
3279+
GenF2.menu.opt.o2lto=Faster (-O2) with LTO
3280+
GenF2.menu.opt.o2lto.build.flags.optimize=-O2 -flto
3281+
GenF2.menu.opt.o3std=Fastest (-O3)
3282+
GenF2.menu.opt.o3std.build.flags.optimize=-O3
3283+
GenF2.menu.opt.o3lto=Fastest (-O3) with LTO
3284+
GenF2.menu.opt.o3lto.build.flags.optimize=-O3 -flto
3285+
GenF2.menu.opt.ogstd=Debug (-g)
3286+
GenF2.menu.opt.ogstd.build.flags.optimize=-g -Og
3287+
31933288
GenF3.menu.opt.osstd=Smallest (-Os default)
31943289
GenF3.menu.opt.osstd.build.flags.optimize=-Os
31953290
GenF3.menu.opt.oslto=Smallest (-Os) with LTO
@@ -3508,6 +3603,16 @@ GenF1.menu.rtlib.nanofps.build.flags.ldspecs=--specs=nano.specs -u _printf_float
35083603
GenF1.menu.rtlib.full=Newlib Standard
35093604
GenF1.menu.rtlib.full.build.flags.ldspecs=
35103605

3606+
GenF2.menu.rtlib.nano=Newlib Nano (default)
3607+
GenF2.menu.rtlib.nanofp=Newlib Nano + Float Printf
3608+
GenF2.menu.rtlib.nanofp.build.flags.ldspecs=--specs=nano.specs -u _printf_float
3609+
GenF2.menu.rtlib.nanofs=Newlib Nano + Float Scanf
3610+
GenF2.menu.rtlib.nanofs.build.flags.ldspecs=--specs=nano.specs -u _scanf_float
3611+
GenF2.menu.rtlib.nanofps=Newlib Nano + Float Printf/Scanf
3612+
GenF2.menu.rtlib.nanofps.build.flags.ldspecs=--specs=nano.specs -u _printf_float -u _scanf_float
3613+
GenF2.menu.rtlib.full=Newlib Standard
3614+
GenF2.menu.rtlib.full.build.flags.ldspecs=
3615+
35113616
GenF3.menu.rtlib.nano=Newlib Nano (default)
35123617
GenF3.menu.rtlib.nanofp=Newlib Nano + Float Printf
35133618
GenF3.menu.rtlib.nanofp.build.flags.ldspecs=--specs=nano.specs -u _printf_float

0 commit comments

Comments
 (0)