Hi,
I am using CCS 6.1, Halcogen 4.2 and the TPS driver that comes with SafeTI lib 2.1 on a TMS570LS0332.
I have the TPS watchdog working when nothing else in my program is running. But I also have an IO expander that is on the same SPI bus as the TPS chip. I have the SPI bus protected by a mutex.
I can communicate with the TPS chip, but as soon as I communicate with the other chip on the bus, my call to the TPS chip (to get the state) fails.
If all I do is initialize the io expander, I can then access the TPS chip if use multiple calls to get the device state, and then after a few tries it seems to be OK again. However, if I have another task aside from the TPS watchdog task running then the TPS calls always fail. I have verified that the CS is being released when the io expander isn't using it (it only does a transmission once a second).
Should I be able to use other devices on the same spi bus as the TPS chip? Obviously they are on different chip selects, and they are using different data formats. Is there anything else I need to do / be aware of?
Does it matter if the spi is driven by polling or interrupts?
Thanks,
David