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.

main_spi_flash_read_write_test failing to verify

Hello,

I have loaded this project in CCS 6.1.3, connected to a C6657 EVM board:

C:\ti\pdk_c665x_2_0_1\packages\MyExampleProjects\SPI_BasicExample_C6657_c66xTestProject

With all default settings it runs and gives a "Pass" result however with default settings no data is written to flash and the test will always pass. If I edit this file:

C:\ti\pdk_c665x_2_0_1\packages\ti\drv\spi\test\spi_flash\src\main_spi_flash_read_write_test.c

and add "#define TEST_SPI_NOR_WRITE" to it, the test fails. I see this output in a serial port:

Flash ID code c2 25 36

Data Mismatch

I added some debug logging to the code which shows that when the VerifyData function runs, the *expData values are a counting pattern but the *rxData values are zeroes. 

Is this test expected to work if TEST_SPI_NOR_WRITE is defined? Does it work in the TI lab?

Thanks,
Geraldine