Skip to content

Commit

Permalink
Add MicroMod STM32WB5MMG. Move MicroMod STM32F405 under SparkFun Boar…
Browse files Browse the repository at this point in the history
…ds file. (#2037)


Co-authored-by: Frederic Pillon <[email protected]>
Signed-off-by: Alex Brudner <[email protected]>
  • Loading branch information
SFE-Brudnerd and fpistm committed Jun 14, 2023
1 parent 0072854 commit be83b9b
Show file tree
Hide file tree
Showing 8 changed files with 878 additions and 63 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
- [Generic STM32L5 boards](#generic-stm32l5-boards)
- [Generic STM32U5 boards](#generic-stm32u5-boards)
- [Generic STM32WB boards](#generic-stm32wb-boards)
- [Generic STM32WL boards](#generic-stm32wb-boards)
- [Generic STM32WL boards](#generic-stm32wl-boards)
- [3D printer boards](#3d-printer-boards)
- [Blues Wireless boards](#blues-wireless-boards)
- [Elecgator boards](#elecgator-boards)
- [Electronic Speed Controller boards](#electronic-speed-controller-boards)
- [Garatronics boards](#Garatronic/McHobby-boards)
- [Garatronic/McHobby boards](#garatronicmchobby-boards)
- [Generic flight controllers](#generic-flight-controllers)
- [LoRa boards](#lora-boards)
- [Midatronics boards](#midatronics-boards)

- [SparkFun boards](#sparkfun-boards)

### [Nucleo 144](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

Expand Down Expand Up @@ -325,7 +325,6 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
| Status | Device(s) | Name | Release | Notes |
| :----: | :-------: | ---- | :-----: | :---- |
| :green_heart: | STM32F405RG | [Adafruit Feather STM32F405 Express](https://www.adafruit.com/product/4382) | *1.8.0* | |
| :yellow_heart: | STM32F405RG | [SparkFun MicroMod STM32](https://www.sparkfun.com/products/21326) | **2.6.0** | |
| :green_heart: | STM32F401CC | [WeAct Black Pill](https://stm32-base.org/boards/STM32F401CCU6-WeAct-Black-Pill-V1.2) | *1.7.0* | [More info](https://github.com/WeActStudio/WeActStudio.MiniSTM32F4x1) |
| :green_heart: | STM32F401CE | [WeAct Black Pill](https://stm32-base.org/boards/STM32F401CEU6-WeAct-Black-Pill-V3.0) | *2.4.0* | [More info](https://github.com/WeActStudio/WeActStudio.MiniSTM32F4x1) |
| :green_heart: | STM32F411CE | [WeAct Black Pill](https://stm32-base.org/boards/STM32F411CEU6-WeAct-Black-Pill-V2.0) | *1.9.0* | [More info](https://github.com/WeActStudio/WeActStudio.MiniSTM32F4x1) |
Expand Down Expand Up @@ -775,6 +774,13 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
| :----: | :-------: | ---- | :-----: | :---- |
| :green_heart: | STM32WB55CE | [SharkyMKR](https://midatronics.com/shop/development-boards/mkr-sharky-i/) | *1.7.0* | |

### [SparkFun](https://www.sparkfun.com/) boards

| Status | Device(s) | Name | Release | Notes |
| :----: | :-------: | ---- | :-----: | :---- |
| :yellow_heart: | STM32F405RG | [SparkFun MicroMod Processor Board - STM32F405](https://www.sparkfun.com/products/21326) | **2.6.0** | |
| :yellow_heart: | STM32WB5MMG | SparkFun MicroMod Processor Board - STM32WB5MMG | **2.6.0** | |

## Next release

See [milestones](https://github.com/stm32duino/Arduino_Core_STM32/milestones) to have an overview of the next release content.
Expand Down
132 changes: 120 additions & 12 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3755,18 +3755,6 @@ GenF4.menu.pnum.FEATHER_F405.build.variant_h=variant_{build.board}.h
GenF4.menu.pnum.FEATHER_F405.build.variant=STM32F4xx/F405RGT_F415RGT
GenF4.menu.pnum.FEATHER_F405.build.peripheral_pins=-DCUSTOM_PERIPHERAL_PINS

# SparkFun MicroMod STM32F405 board
GenF4.menu.pnum.MICROMOD_F405=SparkFun MicroMod STM32F405
GenF4.menu.pnum.MICROMOD_F405.upload.maximum_size=1048576
GenF4.menu.pnum.MICROMOD_F405.upload.maximum_data_size=131072
GenF4.menu.pnum.MICROMOD_F405.build.board=MICROMOD_F405
GenF4.menu.pnum.MICROMOD_F405.build.product_line=STM32F405xx
GenF4.menu.pnum.MICROMOD_F405.build.variant_h=variant_{build.board}.h
GenF4.menu.pnum.MICROMOD_F405.build.variant=STM32F4xx/F405RGT_F415RGT
GenF4.menu.pnum.MICROMOD_F405.build.peripheral_pins=-DCUSTOM_PERIPHERAL_PINS
GenF4.menu.pnum.MICROMOD_F405.build.vid=0x1B4F
GenF4.menu.pnum.MICROMOD_F405.build.pid=0x0029

# ThunderPack F411xxE
# https://github.com/jgillick/ThunderPack/tree/STM32F4
GenF4.menu.pnum.THUNDERPACK_F411=ThunderPack v1.1+
Expand Down Expand Up @@ -10841,6 +10829,69 @@ Midatronics.menu.upload_method.dfuMethod.upload.protocol=2
Midatronics.menu.upload_method.dfuMethod.upload.options=
Midatronics.menu.upload_method.dfuMethod.upload.tool=stm32CubeProg

################################################################################
# SparkFun Boards

SparkFun.name=SparkFun Boards

SparkFun.build.core=arduino
SparkFun.build.board=SparkFun
SparkFun.build.variant_h=variant_{build.board}.h
SparkFun.build.st_extra_flags=-D{build.product_line} {build.enable_usb} {build.xSerial}
SparkFun.build.flash_offset=0x0
SparkFun.upload.maximum_size=0
SparkFun.upload.maximum_data_size=0

# SFE_MMPB_STM32WB5MMG board
SparkFun.menu.pnum.SFE_MMPB_STM32WB5MMG=SparkFun MicroMod STM32WB5MMG
SparkFun.menu.pnum.SFE_MMPB_STM32WB5MMG.upload.maximum_size=827392
SparkFun.menu.pnum.SFE_MMPB_STM32WB5MMG.upload.maximum_data_size=196608
SparkFun.menu.pnum.SFE_MMPB_STM32WB5MMG.build.mcu=cortex-m4
SparkFun.menu.pnum.SFE_MMPB_STM32WB5MMG.build.fpu=-mfpu=fpv4-sp-d16
SparkFun.menu.pnum.SFE_MMPB_STM32WB5MMG.build.float-abi=-mfloat-abi=hard
SparkFun.menu.pnum.SFE_MMPB_STM32WB5MMG.build.board=SFE_MMPB_STM32WB5MMG
SparkFun.menu.pnum.SFE_MMPB_STM32WB5MMG.build.series=STM32WBxx
SparkFun.menu.pnum.SFE_MMPB_STM32WB5MMG.build.product_line=STM32WB5Mxx
SparkFun.menu.pnum.SFE_MMPB_STM32WB5MMG.build.variant=STM32WBxx/WB5MMGH
SparkFun.menu.pnum.SFE_MMPB_STM32WB5MMG.build.peripheral_pins=-DCUSTOM_PERIPHERAL_PINS
SparkFun.menu.pnum.SFE_MMPB_STM32WB5MMG.build.cmsis_lib_gcc=arm_cortexM4lf_math
SparkFun.menu.pnum.SFE_MMPB_STM32WB5MMG.build.vid=0x1B4F
SparkFun.menu.pnum.SFE_MMPB_STM32WB5MMG.build.pid=0x0034

# SparkFun MicroMod STM32F405 Board
SparkFun.menu.pnum.MICROMOD_F405=SparkFun MicroMod STM32F405
SparkFun.menu.pnum.MICROMOD_F405.upload.maximum_size=1048576
SparkFun.menu.pnum.MICROMOD_F405.upload.maximum_data_size=131072
SparkFun.menu.pnum.MICROMOD_F405.build.mcu=cortex-m4
SparkFun.menu.pnum.MICROMOD_F405.build.fpu=-mfpu=fpv4-sp-d16
SparkFun.menu.pnum.MICROMOD_F405.build.float-abi=-mfloat-abi=hard
SparkFun.menu.pnum.MICROMOD_F405.build.board=MICROMOD_F405
SparkFun.menu.pnum.MICROMOD_F405.build.series=STM32F4xx
SparkFun.menu.pnum.MICROMOD_F405.build.product_line=STM32F405xx
SparkFun.menu.pnum.MICROMOD_F405.build.variant_h=variant_{build.board}.h
SparkFun.menu.pnum.MICROMOD_F405.build.variant=STM32F4xx/F405RGT_F415RGT
SparkFun.menu.pnum.MICROMOD_F405.build.peripheral_pins=-DCUSTOM_PERIPHERAL_PINS
SparkFun.menu.pnum.MICROMOD_F405.build.cmsis_lib_gcc=arm_cortexM4lf_math
SparkFun.menu.pnum.MICROMOD_F405.build.vid=0x1B4F
SparkFun.menu.pnum.MICROMOD_F405.build.pid=0x0029

# Upload menu
SparkFun.menu.upload_method.swdMethod=STM32CubeProgrammer (SWD)
SparkFun.menu.upload_method.swdMethod.upload.protocol=0
SparkFun.menu.upload_method.swdMethod.upload.options=
SparkFun.menu.upload_method.swdMethod.upload.tool=stm32CubeProg

SparkFun.menu.upload_method.serialMethod=STM32CubeProgrammer (Serial)
SparkFun.menu.upload_method.serialMethod.upload.protocol=1
SparkFun.menu.upload_method.serialMethod.upload.options={serial.port.file}
SparkFun.menu.upload_method.serialMethod.upload.tool=stm32CubeProg

SparkFun.menu.upload_method.dfuMethod=STM32CubeProgrammer (DFU)
SparkFun.menu.upload_method.dfuMethod.upload.protocol=2
SparkFun.menu.upload_method.dfuMethod.upload.options=
SparkFun.menu.upload_method.dfuMethod.upload.tool=stm32CubeProg


################################################################################
# Serialx activation
Nucleo_144.menu.xserial.generic=Enabled (generic 'Serial')
Expand Down Expand Up @@ -11043,6 +11094,12 @@ Midatronics.menu.xserial.none.build.xSerial=-DHAL_UART_MODULE_ENABLED -DHWSERIAL
Midatronics.menu.xserial.disabled=Disabled (No Serial support)
Midatronics.menu.xserial.disabled.build.xSerial=

SparkFun.menu.xserial.generic=Enabled (generic 'Serial')
SparkFun.menu.xserial.none=Enabled (no generic 'Serial')
SparkFun.menu.xserial.none.build.xSerial=-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE
SparkFun.menu.xserial.disabled=Disabled (no Serial support)
SparkFun.menu.xserial.disabled.build.xSerial=

# USB connectivity
Nucleo_144.menu.usb.none=None
Nucleo_144.menu.usb.CDCgen=CDC (generic 'Serial' supersede U(S)ART)
Expand Down Expand Up @@ -11379,6 +11436,19 @@ Midatronics.menu.xusb.HS.build.usb_speed=-DUSE_USB_HS
Midatronics.menu.xusb.HSFS=High Speed in Full Speed mode
Midatronics.menu.xusb.HSFS.build.usb_speed=-DUSE_USB_HS -DUSE_USB_HS_IN_FS

SparkFun.menu.usb.none=None
SparkFun.menu.usb.CDCgen=CDC (generic 'Serial' supersede U(S)ART)
SparkFun.menu.usb.CDCgen.build.enable_usb={build.usb_flags} -DUSBD_USE_CDC
SparkFun.menu.usb.CDC=CDC (no generic 'Serial')
SparkFun.menu.usb.CDC.build.enable_usb={build.usb_flags} -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB
SparkFun.menu.usb.HID=HID (keyboard and mouse)
SparkFun.menu.usb.HID.build.enable_usb={build.usb_flags} -DUSBD_USE_HID_COMPOSITE
SparkFun.menu.xusb.FS=Low/Full Speed
SparkFun.menu.xusb.HS=High Speed
SparkFun.menu.xusb.HS.build.usb_speed=-DUSE_USB_HS
SparkFun.menu.xusb.HSFS=High Speed in Full Speed mode
SparkFun.menu.xusb.HSFS.build.usb_speed=-DUSE_USB_HS -DUSE_USB_HS_IN_FS

# Optimizations
Nucleo_144.menu.opt.osstd=Smallest (-Os default)
Nucleo_144.menu.opt.oslto=Smallest (-Os) with LTO
Expand Down Expand Up @@ -12020,6 +12090,26 @@ Midatronics.menu.opt.ogstd.build.flags.optimize=-Og
Midatronics.menu.opt.o0std=No Optimization (-O0)
Midatronics.menu.opt.o0std.build.flags.optimize=-O0

SparkFun.menu.opt.osstd=Smallest (-Os default)
SparkFun.menu.opt.oslto=Smallest (-Os) with LTO
SparkFun.menu.opt.oslto.build.flags.optimize=-Os -flto
SparkFun.menu.opt.o1std=Fast (-O1)
SparkFun.menu.opt.o1std.build.flags.optimize=-O1
SparkFun.menu.opt.o1lto=Fast (-O1) with LTO
SparkFun.menu.opt.o1lto.build.flags.optimize=-O1 -flto
SparkFun.menu.opt.o2std=Faster (-O2)
SparkFun.menu.opt.o2std.build.flags.optimize=-O2
SparkFun.menu.opt.o2lto=Faster (-O2) with LTO
SparkFun.menu.opt.o2lto.build.flags.optimize=-O2 -flto
SparkFun.menu.opt.o3std=Fastest (-O3)
SparkFun.menu.opt.o3std.build.flags.optimize=-O3
SparkFun.menu.opt.o3lto=Fastest (-O3) with LTO
SparkFun.menu.opt.o3lto.build.flags.optimize=-O3 -flto
SparkFun.menu.opt.ogstd=Debug (-Og)
SparkFun.menu.opt.ogstd.build.flags.optimize=-Og
SparkFun.menu.opt.o0std=No Optimization (-O0)
SparkFun.menu.opt.o0std.build.flags.optimize=-O0

# Debug information
Nucleo_144.menu.dbg.none=None
Nucleo_144.menu.dbg.enable_sym=Symbols Enabled (-g)
Expand Down Expand Up @@ -12265,6 +12355,14 @@ Midatronics.menu.dbg.enable_log.build.flags.debug=
Midatronics.menu.dbg.enable_all=Core Logs and Symbols Enabled (-g)
Midatronics.menu.dbg.enable_all.build.flags.debug=-g

SparkFun.menu.dbg.none=None
SparkFun.menu.dbg.enable_sym=Symbols Enabled (-g)
SparkFun.menu.dbg.enable_sym.build.flags.debug=-g -DNDEBUG
SparkFun.menu.dbg.enable_log=Core logs Enabled
SparkFun.menu.dbg.enable_log.build.flags.debug=
SparkFun.menu.dbg.enable_all=Core Logs and Symbols Enabled (-g)
SparkFun.menu.dbg.enable_all.build.flags.debug=-g

# C Runtime Library
Nucleo_144.menu.rtlib.nano=Newlib Nano (default)
Nucleo_144.menu.rtlib.nanofp=Newlib Nano + Float Printf
Expand Down Expand Up @@ -12585,3 +12683,13 @@ Midatronics.menu.rtlib.nanofps=Newlib Nano + Float Printf/Scanf
Midatronics.menu.rtlib.nanofps.build.flags.ldspecs=--specs=nano.specs -u _printf_float -u _scanf_float
Midatronics.menu.rtlib.full=Newlib Standard
Midatronics.menu.rtlib.full.build.flags.ldspecs=

SparkFun.menu.rtlib.nano=Newlib Nano (default)
SparkFun.menu.rtlib.nanofp=Newlib Nano + Float Printf
SparkFun.menu.rtlib.nanofp.build.flags.ldspecs=--specs=nano.specs -u _printf_float
SparkFun.menu.rtlib.nanofs=Newlib Nano + Float Scanf
SparkFun.menu.rtlib.nanofs.build.flags.ldspecs=--specs=nano.specs -u _scanf_float
SparkFun.menu.rtlib.nanofps=Newlib Nano + Float Printf/Scanf
SparkFun.menu.rtlib.nanofps.build.flags.ldspecs=--specs=nano.specs -u _printf_float -u _scanf_float
SparkFun.menu.rtlib.full=Newlib Standard
SparkFun.menu.rtlib.full.build.flags.ldspecs=
134 changes: 87 additions & 47 deletions cmake/boards_db.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -98845,10 +98845,10 @@ set(MICROMOD_F405_VARIANT_PATH "${CMAKE_CURRENT_LIST_DIR}/../variants/STM32F4xx/
set(MICROMOD_F405_MAXSIZE 1048576)
set(MICROMOD_F405_MAXDATASIZE 131072)
set(MICROMOD_F405_MCU cortex-m4)
set(MICROMOD_F405_FPCONF "-")
set(MICROMOD_F405_FPCONF "fpv4-sp-d16-hard")
add_library(MICROMOD_F405 INTERFACE)
target_compile_options(MICROMOD_F405 INTERFACE
"SHELL:-DSTM32F405xx "
"SHELL:-DSTM32F405xx "
"SHELL:-DCUSTOM_PERIPHERAL_PINS"
"SHELL:"
"SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard"
Expand Down Expand Up @@ -98923,51 +98923,6 @@ target_compile_options(MICROMOD_F405_xusb_HSFS INTERFACE
"SHELL:-DUSE_USB_HS -DUSE_USB_HS_IN_FS"
)

# MICROMOD_F405_hid
# -----------------------------------------------------------------------------

set(MICROMOD_F405_hid_VARIANT_PATH "${CMAKE_CURRENT_LIST_DIR}/../variants/STM32F4xx/F405RGT_F415RGT")
set(MICROMOD_F405_hid_MAXSIZE 1048576)
set(MICROMOD_F405_hid_MAXDATASIZE 131072)
set(MICROMOD_F405_hid_MCU cortex-m4)
set(MICROMOD_F405_hid_FPCONF "-")
add_library(MICROMOD_F405_hid INTERFACE)
target_compile_options(MICROMOD_F405_hid INTERFACE
"SHELL:-DSTM32F405xx -DHAL_UART_MODULE_ENABLED -DBL_HID"
"SHELL:-DCUSTOM_PERIPHERAL_PINS"
"SHELL:"
"SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard"
-mcpu=${MICROMOD_F405_hid_MCU}
)
target_compile_definitions(MICROMOD_F405_hid INTERFACE
"STM32F4xx"
"ARDUINO_MICROMOD_F405"
"BOARD_NAME=\"MICROMOD_F405\""
"BOARD_ID=MICROMOD_F405"
"VARIANT_H=\"variant_MICROMOD_F405.h\""
)
target_include_directories(MICROMOD_F405_hid INTERFACE
${CMAKE_CURRENT_LIST_DIR}/../system/STM32F4xx
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32F4xx_HAL_Driver/Inc
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32F4xx_HAL_Driver/Src
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/
${MICROMOD_F405_hid_VARIANT_PATH}
)

target_link_options(MICROMOD_F405_hid INTERFACE
"LINKER:--default-script=${MICROMOD_F405_hid_VARIANT_PATH}/ldscript.ld"
"LINKER:--defsym=LD_FLASH_OFFSET=0x4000"
"LINKER:--defsym=LD_MAX_SIZE=1048576"
"LINKER:--defsym=LD_MAX_DATA_SIZE=131072"
"SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard"
-mcpu=${MICROMOD_F405_hid_MCU}
)
target_link_libraries(MICROMOD_F405_hid INTERFACE
arm_cortexM4lf_math
)


# MKR_SHARKY
# -----------------------------------------------------------------------------

Expand Down Expand Up @@ -104645,6 +104600,91 @@ target_compile_options(RUMBA32_xusb_HSFS INTERFACE
"SHELL:-DUSE_USB_HS -DUSE_USB_HS_IN_FS"
)

# SFE_MMPB_STM32WB5MMG
# -----------------------------------------------------------------------------

set(SFE_MMPB_STM32WB5MMG_VARIANT_PATH "${CMAKE_CURRENT_LIST_DIR}/../variants/STM32WBxx/WB5MMGH")
set(SFE_MMPB_STM32WB5MMG_MAXSIZE 827392)
set(SFE_MMPB_STM32WB5MMG_MAXDATASIZE 196608)
set(SFE_MMPB_STM32WB5MMG_MCU cortex-m4)
set(SFE_MMPB_STM32WB5MMG_FPCONF "fpv4-sp-d16-hard")
add_library(SFE_MMPB_STM32WB5MMG INTERFACE)
target_compile_options(SFE_MMPB_STM32WB5MMG INTERFACE
"SHELL:-DSTM32WB5Mxx "
"SHELL:-DCUSTOM_PERIPHERAL_PINS"
"SHELL:"
"SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard"
-mcpu=${SFE_MMPB_STM32WB5MMG_MCU}
)
target_compile_definitions(SFE_MMPB_STM32WB5MMG INTERFACE
"STM32WBxx"
"ARDUINO_SFE_MMPB_STM32WB5MMG"
"BOARD_NAME=\"SFE_MMPB_STM32WB5MMG\""
"BOARD_ID=SFE_MMPB_STM32WB5MMG"
"VARIANT_H=\"variant_SFE_MMPB_STM32WB5MMG.h\""
)
target_include_directories(SFE_MMPB_STM32WB5MMG INTERFACE
${CMAKE_CURRENT_LIST_DIR}/../system/STM32WBxx
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32WBxx_HAL_Driver/Inc
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32WBxx_HAL_Driver/Src
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32WBxx/Include/
${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32WBxx/Source/Templates/gcc/
${SFE_MMPB_STM32WB5MMG_VARIANT_PATH}
)

target_link_options(SFE_MMPB_STM32WB5MMG INTERFACE
"LINKER:--default-script=${SFE_MMPB_STM32WB5MMG_VARIANT_PATH}/ldscript.ld"
"LINKER:--defsym=LD_FLASH_OFFSET=0x0"
"LINKER:--defsym=LD_MAX_SIZE=827392"
"LINKER:--defsym=LD_MAX_DATA_SIZE=196608"
"SHELL:-mfpu=fpv4-sp-d16 -mfloat-abi=hard"
-mcpu=${SFE_MMPB_STM32WB5MMG_MCU}
)
target_link_libraries(SFE_MMPB_STM32WB5MMG INTERFACE
arm_cortexM4lf_math
)

add_library(SFE_MMPB_STM32WB5MMG_serial_disabled INTERFACE)
target_compile_options(SFE_MMPB_STM32WB5MMG_serial_disabled INTERFACE
"SHELL:"
)
add_library(SFE_MMPB_STM32WB5MMG_serial_generic INTERFACE)
target_compile_options(SFE_MMPB_STM32WB5MMG_serial_generic INTERFACE
"SHELL:-DHAL_UART_MODULE_ENABLED"
)
add_library(SFE_MMPB_STM32WB5MMG_serial_none INTERFACE)
target_compile_options(SFE_MMPB_STM32WB5MMG_serial_none INTERFACE
"SHELL:-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE"
)
add_library(SFE_MMPB_STM32WB5MMG_usb_CDC INTERFACE)
target_compile_options(SFE_MMPB_STM32WB5MMG_usb_CDC INTERFACE
"SHELL:-DUSBCON -DUSBD_VID=0x1B4F -DUSBD_PID=0x0034 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB"
)
add_library(SFE_MMPB_STM32WB5MMG_usb_CDCgen INTERFACE)
target_compile_options(SFE_MMPB_STM32WB5MMG_usb_CDCgen INTERFACE
"SHELL:-DUSBCON -DUSBD_VID=0x1B4F -DUSBD_PID=0x0034 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC"
)
add_library(SFE_MMPB_STM32WB5MMG_usb_HID INTERFACE)
target_compile_options(SFE_MMPB_STM32WB5MMG_usb_HID INTERFACE
"SHELL:-DUSBCON -DUSBD_VID=0x1B4F -DUSBD_PID=0x0034 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_HID_COMPOSITE"
)
add_library(SFE_MMPB_STM32WB5MMG_usb_none INTERFACE)
target_compile_options(SFE_MMPB_STM32WB5MMG_usb_none INTERFACE
"SHELL:"
)
add_library(SFE_MMPB_STM32WB5MMG_xusb_FS INTERFACE)
target_compile_options(SFE_MMPB_STM32WB5MMG_xusb_FS INTERFACE
"SHELL:"
)
add_library(SFE_MMPB_STM32WB5MMG_xusb_HS INTERFACE)
target_compile_options(SFE_MMPB_STM32WB5MMG_xusb_HS INTERFACE
"SHELL:-DUSE_USB_HS"
)
add_library(SFE_MMPB_STM32WB5MMG_xusb_HSFS INTERFACE)
target_compile_options(SFE_MMPB_STM32WB5MMG_xusb_HSFS INTERFACE
"SHELL:-DUSE_USB_HS -DUSE_USB_HS_IN_FS"
)

# Sparky_V1
# -----------------------------------------------------------------------------

Expand Down
1 change: 1 addition & 0 deletions tools/platformio/boards_remap.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"robotdyn_blackpill_f303cc": "BLACKPILL_F303CC",
"rumba32_f446ve": "RUMBA32",
"sparkfun_micromod_stm32f405": "MICROMOD_F405",
"sparkfun_micromod_stm32wb5mmg": "SFE_MMPB_STM32WB5MMG",
"sparky_v1": "SPARKY_F303CC",
"steval_mksboxv1": "STEVAL_MKSBOX1V1",
"stm32f4stamp": "GENERIC_F405RGTX",
Expand Down
2 changes: 2 additions & 0 deletions variants/STM32WBxx/WB5MMGH/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ target_link_libraries(variant INTERFACE variant_usage)
add_library(variant_bin STATIC EXCLUDE_FROM_ALL
generic_clock.c
PeripheralPins.c
PeripheralPins_SFE_MMPB_STM32WB5MMG.c
PeripheralPins_STM32WB5MM_DK.c
variant_generic.cpp
variant_SFE_MMPB_STM32WB5MMG.cpp
variant_STM32WB5MM_DK.cpp
)
target_link_libraries(variant_bin PUBLIC variant_usage)
Expand Down
Loading

0 comments on commit be83b9b

Please sign in to comment.