Skip to content

I2C slave bug - strech functionality #6827

@YarivCol

Description

@YarivCol

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions