Skip to main content
Adam Davis
Associate II
January 12, 2019
Question

STM32F7 HAL I2C Repeated START command for the MAX34409 current sensing

  • January 12, 2019
  • 2 replies
  • 1340 views

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 topic has been closed for replies.

2 replies

Mon2
Senior III
January 12, 2019

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 Technical Moderator
January 16, 2019

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 "Best Answer" on the reply which solved your issue or answered your question.