Other Parts Discussed in Thread: UNIFLASH
Hi,
I am trying to program TMS570LS3137 on-chip flash memory using F021 API library. i have different types of images, one image is to be loaded onto Sector0 (od size 32KB) of Bank0 and other image to be reside on Sector14 (of Size 128KB) of bank0. i am able to program Sector0 of Bank0 without any issues, but when using same code for programming Sector14, data is not programming. I tried to program Sector4, Sector10 (size 128KB) same issue was observed and finally not able to program the sector with size 128KB.
Below are the API commands i am using to program. Is there anything additional API's to be used for programming sector of size 128 KB of Bank0?.
Example API commands used:
Fapi_initializeFlashBanks(180)
Fapi_setActiveFlashBank(Fapi_FlashBank0);
Fapi_enableMainBankSectors(0xFFFF);
Fapi_enableEepromBankSectors(0xFFFFFFFF, 0xFFFFFFFF);
Fapi_issueAsyncCommandWithAddress(Fapi_EraseSector,0x160000);
Fapi_issueProgrammingCommand(0x160000, char_array,8,0,0,Fapi_AutoEccGeneration);
Can you please help me to find out the issue?
Thanks,
Kalyan