cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F7 HAL I2C Repeated START command for the MAX34409 current sensing

Adam Davis
Associate II

Hello.

I'm interfacing my STM32F7 with the following current sensing chip:

https://datasheets.maximintegrated.com/en/ds/MAX34408-MAX34409.pdf

And page 8 describes that I need to send a repeated START command during communication. I cannot find a method of doing this using the I2C HAL library.

Could somebody please point me in the right direction please?

Thanks

This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Mon2
Senior III

Apply the following memory R/W calls which will apply the required repeat START transaction:

HAL_I2C_Mem_Write

HAL_I2C_Mem_Read

HAL_I2C_Mem_Write_IT

HAL_I2C_Mem_Read_IT

HAL_I2C_Mem_Write_DMA

HAL_I2C_Mem_Read_DMA

Also using the search engine, found the same solution here:

https://community.st.com/s/question/0D50X00009XkgOYSAZ/support-for-repeated-start-in-stm32-hal-i2c-library

Amel NASRI
ST Employee

Hi @Adam Davis​ ,

You can use the following APIs that allow to manage repeated start condition:

  • HAL_I2C_Master_Sequential_Transmit_IT
  • HAL_I2C_Slave_Sequential_Transmit_IT
  • HAL_I2C_Master_Sequential_Receive_IT
  • HAL_I2C_Slave_Sequential_Receive_IT

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Announcement

We’re moving the ST Community to a new platform to give you a better and more reliable community experience.