Open
Description
Description of defect
When trying to use I2C with pins connected to FMPI2C1 on an STM32F412 the code compiles without warnings and no assert is raised while trying to communicate over said I2C bus, but no output is observed on the pins configured.
Debugging a bit more, I've noted that RCC, clocks, pin states, etc are correctly set up, but it seems that the I2C HAL API in mbed doesn't work for FMPI2C. Noted also that it fails silently without warning. Just doesn't do anything.
I tested by calling the HAL_FMPI2C_Init() and HAL_FMPI2C_Master_Transmit() functions with appropriate settings and it then works, so there is nothing wrong with the HAL or the pinmap.
Target(s) affected by this defect ?
STM32F4
Toolchain(s) (name and version) displaying this defect ?
GCC
What version of Mbed-os are you using (tag or sha) ?
6.17.0
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
mbed-cli2
How is this defect reproduced ?
Connect I2C bus to FMPI2C1 on an STM32F4, try to use it via the I2C interface.