STM32F407 I2C not Acknowledging
Posted: Tue Aug 17, 2021 7:13 am
I have written a simple I2C Code for stm32f407 using the chibios HAL for interfacing mag QMC5883.
It's a Basic Single thread code, just trying to understand the Chibios HAL API for different peripherals.
Code is this: https://github.com/gkunalupta/RTOS-Chib ... OVERY2-I2C
But on running the code, it always gives Error +4, meaning Slave address Not ack, on checking in logic anal;yzer too, it shows as shown in below pic.
I have checked Connection many times and verified the API I am using from documentation, but I am not able to make out why is it still not working.
Any kind of inputs or insights will be very valuable.
I am guessing Maybe I am using the wrong API or some fault is in the firmware end only which I am not able to mark out.
It's a Basic Single thread code, just trying to understand the Chibios HAL API for different peripherals.
Code is this: https://github.com/gkunalupta/RTOS-Chib ... OVERY2-I2C
But on running the code, it always gives Error +4, meaning Slave address Not ack, on checking in logic anal;yzer too, it shows as shown in below pic.
I have checked Connection many times and verified the API I am using from documentation, but I am not able to make out why is it still not working.
Any kind of inputs or insights will be very valuable.
I am guessing Maybe I am using the wrong API or some fault is in the firmware end only which I am not able to mark out.