[Tinyos-devel] I2C and SPI sharing
Max CORTIANA
max.cortiana at st.com
Thu Oct 12 08:42:06 PDT 2006
Hi
I'm working on TeosB and I have a problem when sharing I2C and SPI, used
by the cc2420 Radio.
The channel is shared correctly until SPI tries to access the channel
while the channel is busy with I2C.
I see the following steps are:
1. Resorce is requested by SPI.
2. I2C finishes its operations and releases the shared resource
(MSP430UsartShare0) ;
3. SPI receives the granted event.
4. Radio tries to send a byte through SPI
5. The byte isn't sent.
6. SPI loops inside a while, waiting for an interrupt which will
never arrive.
7. Since a task i locked in an infinite loop, the mote is like dead.
Any suggestion?
Thanks
- Max
More information about the Tinyos-devel
mailing list