Skip to content

STM32: Enable I2CTarget for STM32L4. #17945

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chrismas9
Copy link
Contributor

@chrismas9 chrismas9 commented Aug 17, 2025

STM32L4 uses the same I2C controller as STM32WB.
Change defined(STM32WB) to defined(STM32WB) || defined(STM32L4) in:
stm32/i2cslave.c
stm32/i2cslave.h
stm32/mpconfigboard_common.h

Testing

Tested with custom STM32L496 board. Created I2C and I2CTarget with
wire link betweenports and read data from I2CTarget buffer.

@chrismas9 chrismas9 force-pushed the STM32_I2C_TARGET_L4 branch from 5c3704d to 17f1612 Compare August 17, 2025 14:18
@chrismas9 chrismas9 changed the title STM32: Enable I2CTarget for STM32L4 STM32: Enable I2CTarget for STM32L4. Aug 17, 2025
STM32L4 uses the same I2C controller as STM32WB.
Change `defined(STM32WB)` to `defined(STM32WB) || defined(STM32L4)` in:
stm32/i2cslav
stm32/i2cslave.h
stm32/mpconfigboard_common.h

Signed-off-by: Chris Mason <c.mason@inchipdesign.com.au>
Copy link

Code size report:

   bare-arm:    +0 +0.000% 
minimal x86:    +0 +0.000% 
   unix x64:    +0 +0.000% standard
      stm32:    +0 +0.000% PYBV10
     mimxrt:    +0 +0.000% TEENSY40
        rp2:    +0 +0.000% RPI_PICO_W
       samd:    +0 +0.000% ADAFRUIT_ITSYBITSY_M4_EXPRESS
  qemu rv32:    +0 +0.000% VIRT_RV32

@chrismas9 chrismas9 force-pushed the STM32_I2C_TARGET_L4 branch from 17f1612 to aaaef87 Compare August 17, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant