Hi
When I use I2C library without Keil RTX to communicate with I2C EEPROM the program works fine, but when I start the RTX the program stuck at:
while(!Status) Status=I2C_CheckEvent(I2C1, I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED); // Test on EV6 and clear it
Somebody know how to fix this?
Ps: uVision3 V3.63 , MDK-ARM V3.24 , RL-ARM V3.40
?? - I am not sure what this post is all about. But anyway, in my i2c driver code, I do use a semaphore.
I am also facing problems with I2C on the STM32. I use the MCBSTM32E Board connected with the ULink2.
I canÂ't get any of the examples working that are provided by Keil or STM. (Yes I have Pullups!) Where is not even a start condition on the bus.
When I use the target SIMULATOR everything looks fine but when I use the target BOARD and debug, I can not even see the registers change when I use: I2C_Init(I2C1, &I2C_InitStructure); from the ST library.
Has anybody a working code sample for me or a hint what is wrong in my setup? All other code (CAN for example is working fine in my application)
Have you enabled the I2C clock and put it 'not in reset' state?
good hint, thanks. the clock was not enabled