2024-08-11 06:02 AM
Hi All,
I am Ketan, and I am implementing own driver for STM32F4 device. I have STM32F4-DISCO Development, everything looks fine when I2C talks on-board slave device (CS43L22) but when I2C talk to external slave, which is connected thorough Jumper wire, it seems start condition not able to generate. most of time, I switch off the external slave and switch on, then works fine. but without power off external slave, looks start condition is not able to generate. I am not suspecting driver issue, because on-board slave device address able to read.
2024-08-11 06:22 AM
Some possibilities:
2024-08-11 06:37 AM
Hi,
Thank you for reply. as I mention, external slave device also working fine but only when restart the power cycle. that means pins are connected correctly, board is powered, slave address is correct.
I feel, I didn't connected external pullups register but instead off, I am using GPIO pullups configuration while initializing the pins.
2024-08-11 06:19 PM - edited 2024-08-11 06:19 PM
Debug the code, figure out why it's not working, or at least how. Do HAL functions return HAL_OK? Where in the process does the code fail? Perhaps show some code. Are you respecting startup times? Do you have a logic analyzer to further debug?
> I feel, I didn't connected external pullups register but instead off, I am using GPIO pullups configuration while initializing the pins.
I can't decipher this. Does this mean external pullups in the region of 1-5 kOhm are present or not?