-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Description
Type: Bug
- Related issue:
#abc
- Priority: Minor
Bug
Target
stm32f4
Toolchain:
IAR
Toolchain version:
mbed-cli version:
(mbed --version
)
mbed-os sha:
(git log -n1 --oneline
)
I am using my stm32f4 microcontroller as an i2c slave for the first time.
At the begining, I used the example of i2c slave from I2CSlave.h.
The I2C master did not recieve the message sent by the i2c slave, so I used my scope to see the clk and data.
I noticed that the slave (my microcontroller stm32f4) is pulling down the clk when he recieves a read massage.
Looking at the datasheet and the registers made I saw that the NOSTRETCH register is disabled as defualt in i2c_frequency() at i2c_api.c
Changing the register in the fuction to enable solved my problem.
I would like to know why isn't there an api for the register and why is it disabled as default?