Associate III
April 18, 2022
Solved
Why HAL_I2C_Mem_Read returns only 0?
- April 18, 2022
- 12 replies
- 4854 views
Hi,
I am using stm32f1 and HUT21D sensor (Temperature and humidity sensor). The sensor use i2c for communication.
I am using IAR and cubeMX.
For cube: I used default setting for i2c.
For IAR: I shared the main.c below.
Can anyone help on why only get 0.
#I2C #[STM32 MCUs]
