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.

F28M36P63C2: F28M36 Flash Programming(F021 Flash API) not working with 120Mhz(C28 &M3) SysClk

Part Number: F28M36P63C2

Dear Friend,

I am implementing Flash Programming  in F28M36 concerto controller using F021 Flash API's with M3SSCLK as 120Mhz and C28SSCLK as 120MHz.

After executing the below function i am getting status as Fapi_Error_InvalidHclkValue.

oReturnCheck = Fapi_setActiveFlashBank(Fapi_FlashBank0);

Changes i done Mentioned Here:

M3 Side:

1.Flash.c File

    #if CPU_FRQ_120MHZ
    HWREG(FLASH_CONFIG_BASE +
          FLASHCTRL_O_FRDCNTL) = (2 << FLASHCTRL_FRDCNTL_RWAIT_S);
    #endif


2.FlasProgrammingm3.c file

    #if CPU_FRQ_120MHZ
    oReturnCheck = Fapi_initializeAPI(F021_CPU0_BASE_ADDRESS, 100);
    #endif

C28 side i also done same thing

Please guide me to resolve the problem