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.

TMS320F28P650DK: One question of Flash API

Part Number: TMS320F28P650DK


Tool/software:

Hi champs,

In F28374D, my customer uses below C code to program OTP memory,

        EALLOW;

        oReturnCheck = Fapi_setActiveFlashBank(Fapi_FlashBank0);
        oReturnCheck = Fapi_enableBanksForOtpWrite(Fapi_FlashBank0);
        oReturnCheck = Fapi_issueProgrammingCommand((uint32 *)Z1_OTP_PSWD_LOCK_ADDR,
                                                    &i,
                                                    1,
                                                    0,
                                                    0,
                                                    Fapi_AutoEccGeneration);
        while(Fapi_checkFsmForReady() == Fapi_Status_FsmBusy);

        EDIS;

However, there has no Fapi_enableBanksForOtpWrite() function in F28P65x Flash API. My question is that is Fapi_enableBanksForOtpWrite() necessary for OTP programming? Or we can use Fapi_setActiveFlashBank() function instead?

Thanks and regards,

Luke