Skip to content

Commit f383004

Browse files
committed
[variant] Add Generic L5xx and Nucleo L552ZE-Q
Supersede stm32duino#1256 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 43bc7a4 commit f383004

File tree

9 files changed

+1928
-0
lines changed

9 files changed

+1928
-0
lines changed

Diff for: README.md

+8
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
6060
- [Generic STM32H7 boards](#generic-stm32h7-boards)
6161
- [Generic STM32L0 boards](#generic-stm32l0-boards)
6262
- [Generic STM32L4 boards](#generic-stm32l4-boards)
63+
- [Generic STM32L5 boards](#generic-stm32l5-boards)
6364
- [3D printer boards](#3d-printer-boards)
6465
- [LoRa boards](#lora-boards)
6566
- [Electronic Speed Controller boards](#electronic-speed-controller-boards)
@@ -81,6 +82,7 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
8182
| :green_heart: | STM32L496ZG-P | [Nucleo L496ZG-P](http://www.st.com/en/evaluation-tools/nucleo-l496zg-p.html) | *1.3.0* | |
8283
| :green_heart: | STM32L4R5ZI | [Nucleo L4R5ZI](http://www.st.com/en/evaluation-tools/nucleo-l4r5zi.html) | *1.4.0* | |
8384
| :green_heart: | STM32L4R5ZI-P | [Nucleo L4R5ZI-P](http://www.st.com/en/evaluation-tools/nucleo-l4r5zi-p.html) | *1.4.0* | |
85+
| :yellow_heart: | STM32L552ZE-Q | [Nucleo L552ZE-Q](https://www.st.com/en/evaluation-tools/nucleo-l552ze-q.html) | **2.0.0** | |
8486
| :green_heart: | STM32H743ZI | [Nucleo H743ZI(2)](https://www.st.com/en/evaluation-tools/nucleo-h743zi.html) | *1.5.0* | Nucleo H743ZI2 since 1.6.0 |
8587

8688
### [Nucleo 64](https://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-eval-tools/stm32-mcu-eval-tools/stm32-nucleo-boards.html) boards
@@ -267,6 +269,12 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
267269
| :yellow_heart: | STM32L4R9ZGJ<br>STM32L4R9ZIJ | Generic Board | **2.0.0** | |
268270
| :yellow_heart: | STM32L4S5VI | Generic Board | **2.0.0** | |
269271

272+
### Generic STM32L5 boards
273+
274+
| Status | Device(s) | Name | Release | Notes |
275+
| :----: | :-------: | ---- | :-----: | :---- |
276+
| :yellow_heart: | STM32L552ZC-Q<br>STM32L552ZE-Q | Generic Board | **2.0.0** | |
277+
270278
### 3D printer boards
271279

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

Diff for: boards.txt

+105
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,19 @@ Nucleo_144.menu.pnum.NUCLEO_L4R5ZI_P.build.product_line=STM32L4R5xx
161161
Nucleo_144.menu.pnum.NUCLEO_L4R5ZI_P.build.variant=STM32L4xx/Generic_L4R5ZI_P
162162
Nucleo_144.menu.pnum.NUCLEO_L4R5ZI_P.build.cmsis_lib_gcc=arm_cortexM4lf_math
163163

164+
# NUCLEO_L552ZE-Q board
165+
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q=Nucleo L552ZE-Q
166+
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q.node=NODE_L552ZE
167+
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q.upload.maximum_size=524288
168+
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q.upload.maximum_data_size=196608
169+
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q.build.mcu=cortex-m33
170+
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q.build.flags.fp=-mfpu=fpv4-sp-d16 -mfloat-abi=hard
171+
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q.build.board=NUCLEO_L552ZE_Q
172+
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q.build.series=STM32L5xx
173+
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q.build.product_line=STM32L552xx
174+
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q.build.variant=STM32L5xx/Generic_L552ZxT_Q
175+
Nucleo_144.menu.pnum.NUCLEO_L552ZE_Q.build.cmsis_lib_gcc=arm_ARMv8MMLlfsp_math
176+
164177
# Upload menu
165178
Nucleo_144.menu.upload_method.MassStorage=Mass Storage
166179
Nucleo_144.menu.upload_method.MassStorage.upload.protocol=
@@ -2250,6 +2263,50 @@ GenL4.menu.upload_method.dfuMethod.upload.protocol=2
22502263
GenL4.menu.upload_method.dfuMethod.upload.options=-g
22512264
GenL4.menu.upload_method.dfuMethod.upload.tool=stm32CubeProg
22522265

2266+
################################################################################
2267+
# Generic L5
2268+
GenL5.name=Generic STM32L5 series
2269+
2270+
GenL5.build.core=arduino
2271+
GenL5.build.board=GenL5
2272+
GenL5.build.extra_flags=-D{build.product_line} {build.enable_usb} {build.xSerial}
2273+
GenL5.build.mcu=cortex-m33
2274+
GenL5.build.flags.fp=-mfpu=fpv4-sp-d16 -mfloat-abi=hard
2275+
GenL5.build.series=STM32L5xx
2276+
GenL5.build.cmsis_lib_gcc=arm_ARMv8MMLlfsp_math
2277+
2278+
# Generic L552ZC-Q board
2279+
GenL5.menu.pnum.GENERIC_L552ZC_Q=Generic L552ZC-Q
2280+
GenL5.menu.pnum.GENERIC_L552ZC_Q.upload.maximum_size=262144
2281+
GenL5.menu.pnum.GENERIC_L552ZC_Q.upload.maximum_data_size=196608
2282+
GenL5.menu.pnum.GENERIC_L552ZC_Q.build.board=GENERIC_L552ZC_Q
2283+
GenL5.menu.pnum.GENERIC_L552ZC_Q.build.product_line=STM32L552xx
2284+
GenL5.menu.pnum.GENERIC_L552ZC_Q.build.variant=STM32L5xx/Generic_L552ZxT_Q
2285+
2286+
# Generic L552ZE-Q board
2287+
GenL5.menu.pnum.GENERIC_L552ZE_Q=Generic L552ZE-Q
2288+
GenL5.menu.pnum.GENERIC_L552ZE_Q.upload.maximum_size=524288
2289+
GenL5.menu.pnum.GENERIC_L552ZE_Q.upload.maximum_data_size=196608
2290+
GenL5.menu.pnum.GENERIC_L552ZE_Q.build.board=GENERIC_L552ZE_Q
2291+
GenL5.menu.pnum.GENERIC_L552ZE_Q.build.product_line=STM32L552xx
2292+
GenL5.menu.pnum.GENERIC_L552ZE_Q.build.variant=STM32L5xx/Generic_L552ZxT_Q
2293+
2294+
# Upload menu
2295+
GenL5.menu.upload_method.swdMethod=STM32CubeProgrammer (SWD)
2296+
GenL5.menu.upload_method.swdMethod.upload.protocol=0
2297+
GenL5.menu.upload_method.swdMethod.upload.options=-g
2298+
GenL5.menu.upload_method.swdMethod.upload.tool=stm32CubeProg
2299+
2300+
GenL5.menu.upload_method.serialMethod=STM32CubeProgrammer (Serial)
2301+
GenL5.menu.upload_method.serialMethod.upload.protocol=1
2302+
GenL5.menu.upload_method.serialMethod.upload.options={serial.port.file} -s
2303+
GenL5.menu.upload_method.serialMethod.upload.tool=stm32CubeProg
2304+
2305+
GenL5.menu.upload_method.dfuMethod=STM32CubeProgrammer (DFU)
2306+
GenL5.menu.upload_method.dfuMethod.upload.protocol=2
2307+
GenL5.menu.upload_method.dfuMethod.upload.options=-g
2308+
GenL5.menu.upload_method.dfuMethod.upload.tool=stm32CubeProg
2309+
22532310
#################################################################################
22542311
## Generic MP1 microprocessor series (MPU + MCU)
22552312
#GenMP1.name=Generic STM32MP1 series coprocessor
@@ -2869,6 +2926,12 @@ GenL4.menu.xserial.none.build.xSerial=-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE
28692926
GenL4.menu.xserial.disabled=Disabled (no Serial support)
28702927
GenL4.menu.xserial.disabled.build.xSerial=
28712928

2929+
GenL5.menu.xserial.generic=Enabled (generic 'Serial')
2930+
GenL5.menu.xserial.none=Enabled (no generic 'Serial')
2931+
GenL5.menu.xserial.none.build.xSerial=-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE
2932+
GenL5.menu.xserial.disabled=Disabled (no Serial support)
2933+
GenL5.menu.xserial.disabled.build.xSerial=
2934+
28722935
#GenMP1.menu.virtio.disable=Disabled (no SerialVirtIO nor /dev/ttyRPMSG0 available)
28732936
#GenMP1.menu.virtio.disable.build.enable_virtio=
28742937
#GenMP1.menu.virtio.generic=SerialVirtIO (= generic 'Serial') <=> /dev/ttyRPMSG0
@@ -3077,6 +3140,19 @@ GenL4.menu.xusb.HS.build.usb_speed=-DUSE_USB_HS
30773140
GenL4.menu.xusb.HSFS=High Speed in Full Speed mode
30783141
GenL4.menu.xusb.HSFS.build.usb_speed=-DUSE_USB_HS -DUSE_USB_HS_IN_FS
30793142

3143+
GenL5.menu.usb.none=None
3144+
GenL5.menu.usb.CDCgen=CDC (generic 'Serial' supersede U(S)ART)
3145+
GenL5.menu.usb.CDCgen.build.enable_usb={build.usb_flags} -DUSBD_USE_CDC
3146+
GenL5.menu.usb.CDC=CDC (no generic 'Serial')
3147+
GenL5.menu.usb.CDC.build.enable_usb={build.usb_flags} -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB
3148+
GenL5.menu.usb.HID=HID (keyboard and mouse)
3149+
GenL5.menu.usb.HID.build.enable_usb={build.usb_flags} -DUSBD_USE_HID_COMPOSITE
3150+
GenL5.menu.xusb.FS=Low/Full Speed
3151+
GenL5.menu.xusb.HS=High Speed
3152+
GenL5.menu.xusb.HS.build.usb_speed=-DUSE_USB_HS
3153+
GenL5.menu.xusb.HSFS=High Speed in Full Speed mode
3154+
GenL5.menu.xusb.HSFS.build.usb_speed=-DUSE_USB_HS -DUSE_USB_HS_IN_FS
3155+
30803156
3dprinter.menu.usb.none=None
30813157
3dprinter.menu.usb.CDCgen=CDC (generic 'Serial' supersede U(S)ART)
30823158
3dprinter.menu.usb.CDCgen.build.enable_usb={build.usb_flags} -DUSBD_USE_CDC
@@ -3396,6 +3472,25 @@ GenL4.menu.opt.o3lto.build.flags.optimize=-O3 -flto
33963472
GenL4.menu.opt.ogstd=Debug (-g)
33973473
GenL4.menu.opt.ogstd.build.flags.optimize=-g -Og
33983474

3475+
GenL5.menu.opt.osstd=Smallest (-Os default)
3476+
GenL5.menu.opt.osstd.build.flags.optimize=-Os
3477+
GenL5.menu.opt.oslto=Smallest (-Os) with LTO
3478+
GenL5.menu.opt.oslto.build.flags.optimize=-Os -flto
3479+
GenL5.menu.opt.o1std=Fast (-O1)
3480+
GenL5.menu.opt.o1std.build.flags.optimize=-O1
3481+
GenL5.menu.opt.o1lto=Fast (-O1) with LTO
3482+
GenL5.menu.opt.o1lto.build.flags.optimize=-O1 -flto
3483+
GenL5.menu.opt.o2std=Faster (-O2)
3484+
GenL5.menu.opt.o2std.build.flags.optimize=-O2
3485+
GenL5.menu.opt.o2lto=Faster (-O2) with LTO
3486+
GenL5.menu.opt.o2lto.build.flags.optimize=-O2 -flto
3487+
GenL5.menu.opt.o3std=Fastest (-O3)
3488+
GenL5.menu.opt.o3std.build.flags.optimize=-O3
3489+
GenL5.menu.opt.o3lto=Fastest (-O3) with LTO
3490+
GenL5.menu.opt.o3lto.build.flags.optimize=-O3 -flto
3491+
GenL5.menu.opt.ogstd=Debug (-g)
3492+
GenL5.menu.opt.ogstd.build.flags.optimize=-g -Og
3493+
33993494
#GenMP1.menu.opt.osstd=Smallest (-Os default)
34003495
#GenMP1.menu.opt.oslto=Smallest (-Os) with LTO
34013496
#GenMP1.menu.opt.oslto.build.flags.optimize=-Os -flto
@@ -3673,6 +3768,16 @@ GenL4.menu.rtlib.nanofps.build.flags.ldspecs=--specs=nano.specs -u _printf_float
36733768
GenL4.menu.rtlib.full=Newlib Standard
36743769
GenL4.menu.rtlib.full.build.flags.ldspecs=
36753770

3771+
GenL5.menu.rtlib.nano=Newlib Nano (default)
3772+
GenL5.menu.rtlib.nanofp=Newlib Nano + Float Printf
3773+
GenL5.menu.rtlib.nanofp.build.flags.ldspecs=--specs=nano.specs -u _printf_float
3774+
GenL5.menu.rtlib.nanofs=Newlib Nano + Float Scanf
3775+
GenL5.menu.rtlib.nanofs.build.flags.ldspecs=--specs=nano.specs -u _scanf_float
3776+
GenL5.menu.rtlib.nanofps=Newlib Nano + Float Printf/Scanf
3777+
GenL5.menu.rtlib.nanofps.build.flags.ldspecs=--specs=nano.specs -u _printf_float -u _scanf_float
3778+
GenL5.menu.rtlib.full=Newlib Standard
3779+
GenL5.menu.rtlib.full.build.flags.ldspecs=
3780+
36763781
#GenMP1.menu.rtlib.nano=Newlib Nano (default)
36773782
#GenMP1.menu.rtlib.nanofp=Newlib Nano + Float Printf
36783783
#GenMP1.menu.rtlib.nanofp.build.flags.ldspecs=--specs=nano.specs -u _printf_float

0 commit comments

Comments
 (0)