Other Parts Discussed in Thread: PMP, C2000WARE
Tool/software: Code Composer Studio
hello,
I am using a TMS320F28388D controller , i am facing issue when trying to claim the semaphore.
The issue i am facing is at gaining the pump access to semaphore, when ever i call the function to gain pump access as mentioned in step 1 below its gets stuck in while loop and never comes out of the while loop.
can you give me pointers to look at why this could be happening.
My sequence of calling is as per the flash api library
1. Gain Pump access done as below code take from example
EALLOW;
while(IPC_PUMPREQUEST_REG != (uint32_t)wrapper)
{
IPC_PUMPREQUEST_REG = FLASH_PUMP_KEY | (uint32_t)wrapper;
}
EDIS;
2. Call Fapi_InitializeAPI(F021_CPU0_BASE_ADDRESS,200)
3.Call Fapi_setActiveFlashBank(Fapi_FlashBank0)
4. Call Fapi_issueProgrammingCommand(,,,,Fapi_DataOnly)
at step 4 i am copying the code from Flash Sector 7,8,9 to Sector 4,5,6
thanks,
Nagesh

