Hi,
I apologize but I have stopped using the STPrimer about a year ago, I think, because of the I2C problem. So, I do not remember all the details. I know that I was using the ST lib rev 1-0. I also used the example based on reading the EEPROM provided by ST. So, the Primer was the master. I was not using DMA or interrupt.
I had the SCK toggling. No problem on that side. But the STM32 I2C lib. was getting stuck at some point during the I2C RD. And when that happened, we basically entered in an infinite loop and the STM32 was basically beeping at all time. I had to reset it by removing the power. The SW lib was checking for a bit to be set by the internal STM32 state machine and it never happened.
When I moved on onto another platform (IAR board and STM32 Eval. board), the exact same configuration provided by the EEPROM example worked like a charm. I was working on a project/schedule. I had to change platform.
Francis mentioned on the Forum recently that the I2C should be dealt with ST FW lib rev 2-0. Maybe they fixed something. I'm not sure yet as I'm just now starting to migrate to ST FW lib rev 2.
Sorry I cannot help.
Last edited by armaniake (2008-11-20 13:18:33)