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
Perhaps now you would like to resort to keil debugger to find out why the UART is not working properly. I suggest that you check all the register states of the peripheral. Go to the menu bar, click on the 'Peripheral' and then 'UART'. You might want to check the VIC as well.
This was the first thing that I did. And the strange is that all the registers still correctly set.
Does your code clear the appropriate interrupt flag(s) in the ISR? properly acknowledge the VIC in the ISR? Also it is advisable to clear appropriate interrupt flag(s) during device initialization (this is to allow generation of first interrupt.)
I dont use interrupts. Im polling the I2C.