Search found 5 matches
- Fri Mar 31, 2023 6:11 pm
- Forum: ChibiOS/HAL
- Topic: STM32F4 I2Cv1 doesn't see the aknowledge
- Replies: 9
- Views: 31878
Re: STM32F4 I2Cv1 doesn't see the aknowledge
Funny enough, I2C2 works with the same configuration.
- Sun Mar 26, 2023 4:36 pm
- Forum: ChibiOS/HAL
- Topic: STM32F4 I2Cv1 doesn't see the aknowledge
- Replies: 9
- Views: 31878
Re: STM32F4 I2Cv1 doesn't see the aknowledge
Hi,
Is the I2C config something like this?
const I2CConfig _i2cMainCfg = {
OPMODE_I2C,
50000,
STD_DUTY_CYCLE,
};
I know this configuration works on F413 with BME280 configured for I2C use.
(Should be using dot notation for member access but this is old code).
--
Bob
Yes, it looks the same ...
Is the I2C config something like this?
const I2CConfig _i2cMainCfg = {
OPMODE_I2C,
50000,
STD_DUTY_CYCLE,
};
I know this configuration works on F413 with BME280 configured for I2C use.
(Should be using dot notation for member access but this is old code).
--
Bob
Yes, it looks the same ...
- Sun Mar 26, 2023 12:51 am
- Forum: ChibiOS/HAL
- Topic: STM32F4 I2Cv1 doesn't see the aknowledge
- Replies: 9
- Views: 31878
Re: STM32F4 I2Cv1 doesn't see the aknowledge
Hi,
Are you using the correct address?
Note that in ChibiOS you need to pass the address field value without the RW bit, not the whole 1st byte value.
Giovanni
Yes, I also checked the signals from both chibios and Cube and they look the same - it has aknowledge.
Screenshot from the logic ...
Are you using the correct address?
Note that in ChibiOS you need to pass the address field value without the RW bit, not the whole 1st byte value.
Giovanni
Yes, I also checked the signals from both chibios and Cube and they look the same - it has aknowledge.
Screenshot from the logic ...
- Sat Mar 25, 2023 2:27 pm
- Forum: ChibiOS/HAL
- Topic: STM32F4 I2Cv1 doesn't see the aknowledge
- Replies: 9
- Views: 31878
Re: STM32F4 I2Cv1 doesn't see the aknowledge
Try this: PAL_MODE_ALTERNATE(4) | PAL_STM32_OTYPE_OPENDRAIN
it is like that already.
Hi,
I would check the physical connection, it is very critical, how log are wires for example?
Giovanni
Giovanni, wires are just regular short prototype connectors. As I said I tested the same configuration ...
it is like that already.
Hi,
I would check the physical connection, it is very critical, how log are wires for example?
Giovanni
Giovanni, wires are just regular short prototype connectors. As I said I tested the same configuration ...
- Fri Mar 24, 2023 4:08 pm
- Forum: ChibiOS/HAL
- Topic: STM32F4 I2Cv1 doesn't see the aknowledge
- Replies: 9
- Views: 31878
STM32F4 I2Cv1 doesn't see the aknowledge
Hi,
I'm trying to communicate with vl53l0x through the I2C interface. I checked both on an oscilloscope and logic analyzer and signals look good, but the software returns a not acknowledged status. I've seen some other topics about i2c issues on STM32F4 here and added pullup (4k7) to SDA and SCL ...
I'm trying to communicate with vl53l0x through the I2C interface. I checked both on an oscilloscope and logic analyzer and signals look good, but the software returns a not acknowledged status. I've seen some other topics about i2c issues on STM32F4 here and added pullup (4k7) to SDA and SCL ...