Other Parts Discussed in Thread: HALCOGEN,
Hi all,
I have a TMS570LS31x dev.kit. interfaced with different equipments. HALCoGen and the generated API are used. One of the mentioned equipements is interfaced with via SPI (board as master, said device as slave), and requires only SOMI, SCK and nCS signals. It does not take inputs from the master on the SIMO line, which must be grounded.
When reading from the SOMI line, all that is required to do, is set nCS active, enable SCK and read incoming data. All of this is working fine in polling mode.
When I change to interrupt mode (required in the project), using spiGetData() instead of spiReceiveData(), nothing happens. That is, I observe the communication with an oscilloscop, and nothing happens on either SCK nor nCS (and thus nor on SOMI).
spiInit() is correctly called, all three pins set as functional, RXINTENA set in SPIINT0, and spiEndNotification() should call a function to handle the data (obsviouly, the notification is not triggered). When I breakthrough, I also see that spiGetData() is correctly called, and that the g_spiPacket_t structure is correctly set. I have tried with and without breakpoints in the code.
I am lost here, what am I forgetting?
Thanks in advance,
Christophe