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.

F021FLASHAPI: Valid wait value for Fapi_initializeAPI()

Part Number: F021FLASHAPI

Dear experts,

I'm using the F28P650DK9-ZEJ (EVB) with F021 version 3.00.01.00 for my application.

After invoking Fapi_initializeAPI(0x57000, 200u), it returns the error code Fapi_Error_InvalidHclkValue if my RWAIT is not configured to 4.

I would like to understand why this function returns Fapi_Error_InvalidHclkValue when RWAIT is set to a value larger than 4. According to the user manual, this error code indicates that FCLK is above the maximum FCLK value. However, my understanding is that if RWAIT is larger, the FCLK should be slower, and therefore, this error code should not be displayed.

Note: I configure the SYSCLK to 200MHz.

(I have also used the TI demo project, flashapi_ex1_programming, to confirm. Indeed, if I change RWAIT to 5, this API returns Fapi_Error_InvalidHclkValue.)

Thanks and regards,

C.C.Liu