I have written SPI driver for K60 which is blocking when I use the SM1_ReceiveBlock() function. In my hardware, K60's SPI lines are connected to the SPI Flash memory.
Flash read function calls SM1_ReceiveBlock() to read flash data, but currently it's not receiving anything. I am using processor expert and k60's SPI is configured as master while flash memory as slave.
I am attaching the files of my project for reference. I would appreciate if anyone could tell me what things I am doing wrong in my SPI flash project.
Original Attachment has been moved to: spi_flash.zip