I2c Restart on STM32L using Standard Peripheral Library (not HAL)
Hi,
I've been using an STM32L151 for a number of years...long enough ago that the firmware I wrote uses the SPL, not HAL, and I'm really not interested in re-writing the firmware!
My problem is that a new I2c device I am connecting requires a RESTART between writing a command and reading the data. I have seen this problem from HAL users, and they are told to use the memory access routines rather than the standard routines. There are no such things in the SPL.
I have removed the call to I2C_GenerateSTOP following the transmission of the command, but now I get an interrupt that says there was no ACK.
Can anyone either make a suggestion, or point me to some example code? I guess I should say that I am using a real-time OS with devices working with interrupts, so code or suggestions that say "loop until bit x is set" don't help too much unless bit x being set can generate an interrupt.
Thanks!
P.S. I have had an account and conversations in the forum over several years, but apparently ST disabled my account so I look like a newbie here, but have been around for a while. Thanks!

