Other Parts Discussed in Thread: CONTROLSUITE
Using LaunchPadXL F28377S and CCS 6.1.2
I am trying to load data into flash bank1. I get the common Fapi_Error_InvalidBank. This was supposedly solved in a workaround several months ago(see https://e2e.ti.com/support/microcontrollers/c2000/f/171/p/464632/1667660 ) This was for v160 I am using v180. Is there an example for v180 using its current libs and includes?
I used this code for flash bank 0. It worked fine. I commented out the flash 0 references and replaced with flash 1 references and get the error.
// Call Flash Initialization to setup flash waitstates
// This function must reside in RAM
InitFlash_Bank0();
InitFlash_Bank1()
EALLOW;
// Flash0EccRegs.ECC_ENABLE.bit.ENABLE = 0x0;
Flash1EccRegs.ECC_ENABLE.bit.ENABLE = 0x0;
EDIS;
EALLOW;
// This function is required to initialize the Flash API based on System
// frequency before any other Flash API operation can be performed
oReturnCheck = Fapi_initializeAPI(F021_CPU0_BASE_ADDRESS, 200);//for now keeping it out
if(oReturnCheck != Fapi_Status_Success)
{
// Check Flash API documentation for possible errors
Example_Error(oReturnCheck);
}
// Fapi_setActiveFlashBank function sets the Flash bank and FMC for further
// Flash operations to be performed on the bank
// oReturnCheck = Fapi_setActiveFlashBank(Fapi_FlashBank0);
oReturnCheck = Fapi_setActiveFlashBank(Fapi_FlashBank1);
if(oReturnCheck != Fapi_Status_Success)
{
// Check Flash API documentation for possible errors
Example_Error1(oReturnCheck);
}