Skip to content

Conversation

fpistm
Copy link
Member

@fpistm fpistm commented Sep 23, 2025

This PR add the support of the STM32WL3 series.

Tests using a Nucleo-WL33CC1:

  • GPIO
  • ADC
  • ADC internal
  • HardwareTimer (PWM)
  • EXTI
  • I2C (EEPROM RW, I2C scanner)
  • SPI (SD, TFT)
  • EEPROM emulation
  • Serial
  • IWDG
  • CMSIS DSP
  • RTC
  • LowPower

Closes #2643.

@fpistm fpistm self-assigned this Sep 23, 2025
@fpistm fpistm added enhancement New feature or request new variant Add support of new bard labels Sep 23, 2025
@fpistm fpistm force-pushed the stm32cubewl3_addition branch from 877ad89 to 0129fd4 Compare September 23, 2025 14:57
@fpistm fpistm requested a review from Copilot September 23, 2025 14:58
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds experimental support for the STM32WL3 series microcontrollers based on STM32CubeWL3 v1.2.0, introducing HAL and CMSIS drivers. The implementation focuses on build compatibility with no functional testing performed.

  • Adds comprehensive HAL driver headers for STM32WL3x peripheral support
  • Introduces power management, RF (MRSUBG), and low-power wakeup (LPAWUR) modules
  • Provides GPIO, communication (I2C, SPI, UART), and timer functionality

Reviewed Changes

Copilot reviewed 146 out of 295 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
stm32wl3x_hal_pwr_ex.h Extended power management module with SMPS, GPIO retention, and deep stop features
stm32wl3x_hal_pwr.h Core power management with PVD, wakeup sources, and power mode definitions
stm32wl3x_hal_mrsubg_timer.h RF timer management for MRSUBG IP with virtual timer support
stm32wl3x_hal_mrsubg.h Sub-GHz radio (MRSUBG) HAL driver with packet handling and sequencer control
stm32wl3x_hal_lpawur.h Low-power wakeup receiver (LPAWUR) HAL driver
stm32wl3x_hal_lcd.h LCD controller HAL driver with comprehensive display management
stm32wl3x_hal_iwdg.h Independent watchdog HAL driver
stm32wl3x_hal_irda_ex.h Extended IRDA HAL module with word length definitions
stm32wl3x_hal_irda.h IRDA communication HAL driver
stm32wl3x_hal_i2s.h I2S audio interface HAL driver
stm32wl3x_hal_i2c_ex.h Extended I2C features including analog filter and fast mode plus
stm32wl3x_hal_i2c.h I2C communication HAL driver
stm32wl3x_hal_gpio_ex.h GPIO extended features with alternate function mappings
stm32wl3x_hal_gpio.h GPIO HAL driver with EXTI support
stm32wl3x_hal_flash_ex.h Extended FLASH operations including OTP and page protection

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

fpistm added 24 commits October 10, 2025 09:34
Signed-off-by: Frederic Pillon <[email protected]>
Included in STM32CubeWL3 FW v1.2.0

Signed-off-by: Frederic Pillon <[email protected]>
Included in STM32CubeWL3 FW v1.2.0

Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
Allow some redefinition.

Signed-off-by: Frederic Pillon <[email protected]>
Remove duplicate clock definition.
Allow VECT_TAB_OFFSET redefinition.

Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
@fpistm fpistm force-pushed the stm32cubewl3_addition branch from 0129fd4 to 4210d82 Compare October 10, 2025 14:02
@fpistm fpistm added this to the 2.11.1/2.12.0 milestone Oct 10, 2025
@fpistm fpistm marked this pull request as ready for review October 10, 2025 14:05
@fpistm fpistm changed the title feat: add STM32WL3x support (experimental) feat: add STM32WL3x support enta Oct 11, 2025
@fpistm fpistm changed the title feat: add STM32WL3x support enta feat: add STM32WL3x support Oct 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request new variant Add support of new bard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[New Variant] WL33CC2 support

1 participant