2018-05-24 02:14 AM
Hi
I want to know the similar API for
I2C_GenerateSTART for STM32L4/L4+.
For F series
STM32FXX is
I2C_GenerateSTART.
STM32L4 is ???
Please let me know.
Thanks
Phani
Solved! Go to Solution.
2018-05-24 08:30 AM
Hi
The STM32L4 Series and STM32L4+ Series devices implement a different I2C peripheral
please tell me how i need to proceed for I2C Start, on which control registers i need to take which has both START and RESET
-Nesrine-
2018-05-24 04:59 AM
Hi
phanirajkiran.ma
,-Nesrine-
2018-05-24 05:56 AM
Hi Nesrine
Board: Nucleo144- STM32L4R5ZI.
I want to write I2C_start condition .
Use case: Read/write sensor BME680 over I2C.
Please tell me what are the equivalent for
I2C_GenerateSTART as in case of STM32FXX series.
In Case CR1 series i cannot find
I2C_CR1_START and for RESET i find I2C_CR1_SWRST Case CR1: START :: NO RESET :: YES
But i cant find for CR2 for STM32L4XX series. The above explain is for Start condition of I2C as like this : Case CR2:: START :: YES RESET :: NO
D_LOG(''Generate start condition\n''); dev->CR2 |= I2C_CR2_START; // This will make start of I2C on CR2. For CR2 its not available. i want to know why there is not there for CR2(control register 2).
please tell me how i need to proceed for I2C Start, on which control registers i need to take which has both START and RESET
Thanks
Phaniraj
2018-05-24 06:36 AM
Thanks for the support Nesrine.
Yes for SWRESET
On I2C_CR1 bit 13
Thanks
Phaniraj
2018-05-24 08:30 AM
Hi
The STM32L4 Series and STM32L4+ Series devices implement a different I2C peripheral
please tell me how i need to proceed for I2C Start, on which control registers i need to take which has both START and RESET
-Nesrine-