Very helpful. Thanks !! I have got the SPI working now.. About handling data coming through the SPI, I have two ways to handle..
1. Pass from SPI to memory using DMA. Then from memory to PC using UART.
2. Pass from SPI directly to other SPI2. Then from SPI2 to PC.
Could you please let me know how I can implement 1 and 2. Could you please point to any tutorials ? Also, could you please with documentation for the microcontroller used in K40x256 as I am unable to find one, especially describing SPI and other peripherals..
Also,
Is there any way in Code Warrior I can watch variables in run time such as some compilers have the option of Live Watch ?