This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

I2C with Keil RTX doesn't work

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

Parents
  • 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)

Reply
  • 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)

Children