I am trying to interface the C6747/OMAP-L137 EVM to other board by using SPI. The concept for my design is using a the SPI to receive the data from other device, and then the received data will transmit a copy to PC through UDP(using NDK2.0).
In my recent applications, without timer interrupt,
- I could transmit data to PC by UDP (as same as NDk2.0, using TSK is DSP/BIOS )
- I could use SPI to receive data from other device and the SPI rx event would trigger EDMA to move the data to memory. (Without using CSL and DSP/BIOS)
- Please note that the subroutine, SPI transmission, is in a while(1) loop in main().
However, when I tried to combine these two projects, the CCS only processed the SPI but never processed the UDP task because we had a while(1) loop in main(). In my opinion, the OMAP L-137 processes the main task first, and then deal with the NDK task.
Question:
How to program the NDK without using TSK? Then we can schedule the process: SPI receive data -> send data to PC by UDP. And then we also can process other subroutine after using UDP.
I'm a total newbie at DSP/BIOS and Code Composer so any help would be appreciated.