Other Parts Discussed in Thread: SYSBIOS
Hello,
I am setting up the SPI to communicate with the NorFlash on the K2G Evm and I am not able to get reproducible correct reading when using BLOCKING mode ( with interrupt enable).
What I am doing is reading the NorFlash ID once a sec to verify the proper configuration of the SPI driver and I am basically getting the first response with good data (as per datasheet) but next are not (full of 0x0).
On the positive side, I am able to get constant proper read when using POLLING mode ...so I am confident the flash is not to blame.
But I really need to release the CPU when transferring data, other code needs to run. Any idea what I am missing ?
thank you,
Vincent
More info:
I am relying on #include <ti/drv/spi/soc/SPI_soc.h> to point to me to the correct driver (V0) for SOC_K2G.
I am following example main_spi_flash_read_example.c
I am using ti/board/src/flash/nor/spi/nor_spi.c directly because I am wrapping the SPI driver for other need as well. But I rely a lot on this code.