I2C slave register address not updating using HAL_I2C_Mem_Read function
Hello,
I am new on the embedded subject, and I need some help.
I want to practice I2C communication, so I connected Nucleo-L4P5ZG (master), and MAX6604EVKIT (slave), the general goal is to read registers and send the result via UART.
I used the STM32cubeMX to generate the initial code.
I used the HAL function " HAL_I2C_Mem_Read" to read register in address 0x6.
Build process went without errors.
During debug, when looking at the scope, it seems that the MCU don't change the register address to 0x6, and it is stuck on 0x0.
The slave address is correct, and I receive ACK (0 logic).
I am attaching the main.c.
Do you know what seems to be the problem?
Thanks
Shay
