Part Number: TDA2EVM5777
Tool/software: TI C/C++ Compiler
1)
I have 10 mb of file which need to be read from qspi i am aware about the System_qspiReadSector System_qspiWriteSector api and i have taken example from the chains_common_rear_view_panorama.c to understand reading of lut file
first i have done followig
UInt32 qSpiOffset;
char *gDataBuf;
UInt32 qspiBufHeader[SYSTEM_QSPI_READ_WRITE_SIZE];
gDataBuf = Utils_memAlloc(
UTILS_HEAPID_DDR_CACHED_SR,
NETWORKCTRL_APP_IMAGE_FILE_SIZE,
32);
Vps_printf(" NETWORK_CTRL: Max file size that can be flashed to QSPI is %d B\n",NETWORKCTRL_APP_IMAGE_FILE_SIZE);
gDataBuf = "yash";
qSpiOffset = *((UInt32 *)gDataBuf);
System_qspiInit();
System_qspiWriteSector(qSpiOffset,(UInt32)(((UInt32 *)gDataBuf) + 1U),SYSTEM_QSPI_FLASH_BLOCK_SIZE);
System_qspiReadSector( (UInt32)qspiBufHeader,
qSpiOffset,
SystemUtils_align( qSpiOffset, SYSTEM_QSPI_READ_WRITE_SIZE));
Vps_printf("value of first index is %s \n",qspiBufHeader[1]);
Vps_printf(" QSPI Flash Complete !!!\n");
i have put above code into framecopy usecase and in that chains_vipSingleCameraFrameCopy_SetAppPrms function but when i make appimage and try to run it just got stuck
Questions:
1)how can i read write text file into qspi memory?
2)does any hardware change need to be done before writting into qspi?