This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Clock function not working during SPI's stream_reclaim

Hi,

We are using DA830's PSP v2.00.01 for our TMS320DA828 custom board.We are using SPI for communication with another device. We use stream I/O using issue/reclaim models.In the application we use stream I/Os for McASP,I2C and they are successfully working. But when it comes to SPI we are facing some issues:-
We have a watch dog timer whose count gets reset using a function which is invoked by SYS/BIOS kernel clock(created using Clock_create() function).When SPI task is active and it is waiting for the data using function stream_reclaim, the function which resets the watchdog timer count does not get executed. So a power on reset is issued
by watch dog timer. This happens only when SPI task is active.

Kindly let us know if there is any way we can make bios clock work during SPI's stream_reclaim?

Thanks and Regards,
Rajaram

  • Rajaram --

    Can you look at the IER register (interrupt enable) when you are sitting on Stream_reclaim() and make sure that the IER bit is not somehow getting disabled by the driver code?   If the IER bit is cleared, then the Clock ISR will not run.

    -Karl-

  • Hi Karl,

    Sorry for the delay in responding. Thank you very much for the answer. It was very helpful.

    You were right about the IER register. Interrupt #8 is getting disabled during SPI task. Here the issue is, it is waiting in stream_issue instead of stream_reclaim. (we have other tasks in McASP and I2C where it correctly waits in stream_reclaim) .   During the stream_issue() call it goes to spiIntrHandler and never comes back from ISR till we transfer some data on SPI. I am not sure why does it come out of stream_issue only when we transfer some data on SPI. Here TI is in slave mode for SPI communication and we are not enabling the DMA. Please let me know what might be the issue.

    Thanks and Regards,

    Rajaram

  • Hi Rajaram,

    We are using DA830's PSP v2.00.01 for our TMS320DA828

    I am not sure whether this the right combination to be used. Please contact you local sales/field application engineer for support and help on this.

    - Shanmuga

  • Hi Shanmuga,

    Thank you for responding .If you aware of any known PSP for DA828,can you please let us know ?

    Thanks and Regards,

    Rajaram