Skip to content
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

i2c_4 not working on stm32f746g_disco #21984

Closed
DenvE opened this issue Jan 16, 2020 · 5 comments
Closed

i2c_4 not working on stm32f746g_disco #21984

DenvE opened this issue Jan 16, 2020 · 5 comments
Assignees
Labels
Enhancement Changes/Updates/Additions to existing features platform: STM32 ST Micro STM32

Comments

@DenvE
Copy link
Contributor

DenvE commented Jan 16, 2020

Describe the bug
Enabling I2C_4 on stm32f746g_disco is not working as the pinmux doesn't have the pin mapping for I2C4 ( exp STM32F7_PINMUX_FUNC_PD13_I2C4_SDA)

To Reproduce

  1. add to proj.conf

Enable I2C4

CONFIG_I2C=y
CONFIG_I2C_4=y

CONFIG_HAS_DTS_I2C=y

CONFIG_I2C_STM32_INTERRUPT=y
CONFIG_I2C_INIT_PRIORITY=60

  1. enable i2c4 in board dts
    &i2c4 {
    status = "okay";
    clock-frequency = <I2C_BITRATE_FAST>;
    };

  2. add in pinmux.c mapping of i2c4
    #ifdef CONFIG_I2C_4
    { STM32_PIN_PD12, STM32F7_PINMUX_FUNC_PD12_I2C4_SCL },
    { STM32_PIN_PD13, STM32F7_PINMUX_FUNC_PD13_I2C4_SDA },
    #endif

  3. build you application

  4. error STM32F7_PINMUX_FUNC_PD13_I2C4_SDA not defined

Expected behavior
According data sheet stm32f7 i2c4 can be mapped on different gpio, these mapping should be define.

Impact
Can not use i2c4

Environment (please complete the following information):

  • OS: MacOS
  • Toolchain ( Zephyr r 2.1.99)
@DenvE DenvE added the bug The issue is a bug, or the PR is fixing a bug label Jan 16, 2020
@erwango erwango added the platform: STM32 ST Micro STM32 label Jan 17, 2020
@erwango
Copy link
Member

erwango commented Jan 17, 2020

This is not a bug.
If I2C4 is not configured for this board or the series, then support should be added, this is an enhancement.

@erwango erwango added Enhancement Changes/Updates/Additions to existing features and removed bug The issue is a bug, or the PR is fixing a bug labels Jan 17, 2020
@DenvE
Copy link
Contributor Author

DenvE commented Jan 17, 2020 via email

@erwango
Copy link
Member

erwango commented May 11, 2020

@DenvE Do you still need this ?

@DenvE
Copy link
Contributor Author

DenvE commented May 12, 2020 via email

@erwango
Copy link
Member

erwango commented May 25, 2020

@DenvE, there is no plan to push this change on or side, but we'll be pleased to assist you in merging this change if you want to push it. Hence, I'm closing current issue.

@erwango erwango closed this as completed May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Changes/Updates/Additions to existing features platform: STM32 ST Micro STM32
Projects
None yet
Development

No branches or pull requests

2 participants