This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28377S Fapi_error_InvalidBank

Other Parts Discussed in Thread: TMS320F28377S

Hi,

im having a problem with the flash api for the tms320f28377s

when i do an erase on a sector i first check and select the correct flashbank

	if(select > 13) oReturnCheck = Fapi_setActiveFlashBank(Fapi_FlashBank1);
	else 		oReturnCheck = Fapi_setActiveFlashBank(Fapi_FlashBank0);
        if(oReturnCheck != Fapi_Status_Success)	return 1;						

this works ok for all sectors in flash bank 0 but when i try to erase a bank1 sector i get error code Fapi_Error_InvalidBank

What am i missing here ? I did perform an Init_Flash_Bank0() and Init_FlashBank1() call on boot. (i copied and modified Init_FlashBank1()  from init_flahbank0 because it is not available in TI examples )

regards,

Jan