Hi Aakash,
I'm back with the writing to flash problem.
You've suggested to use other API for writing the flash so I've used example from TI's SDK and it works.
TI's example ospi_flash_io - works ok I can erase write and read the flash.
When I do the same code in my project - only erase and read work. When I write it fails.
It fails after ospi_v0.c :1464
1464 OSPI_writeFifoData(attrs->dataBaseAddr, pSrc, wrBytes);
1465
1466 pSrc += wrBytes;
1467 remainingSize -= wrBytes;
1468 }
1469
1470 if(wrFlag == 0U && OSPI_waitIndWriteComplete(pReg) != 0)
1471 {
1472 wrFlag = 1U;
1473 status = -1;
1474 }
OSPI_waitIndWriteComplete(pReg) returns -1;
Please advice how to proceed ?
Thanks,
Best Regards,
Eli