Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE
Hi Champ,
I just see the Fapi_serviceWatchdogTimer function in F021 flash API example,
May i know how to use callback function on F021 FLASH API?
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.
Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE
Hi Champ,
I just see the Fapi_serviceWatchdogTimer function in F021 flash API example,
May i know how to use callback function on F021 FLASH API?
Hi Huihuang,
Fapi_serviceWatchdogTimer() function provided in the Flash API can be used to service the watchdog timer when using any of the Flash read functions like Fapi_doBlankCheck() and Fapi_doVerify(). Since these read functions take considerable amount of time to read the entire Flash (if needed), this watchdog service function is called by the API at regular intervals (whenever the address being read crosses the 256-word (16-bit word) aligned address boundaries). Note that this function is provided in the Fapi_UserDefinedFunctions.c file located at C2000Ware_x_xx_xx_xx\device_support\f2837xd\examples\dual\flash_programming\cpu01 folder. User has to write the code for it and compile it with the application. Please check the note provided in the description of this function in section 3.6.1 Fapi_serviceWatchdogTimer() of the F2837xD Flash API guide (http://www.ti.com/lit/pdf/spnu629).
Note that this function is called by the API only in the read functions. Since Flash API execution is interruptible, user application can configure the watchdog and service it at regular interrupts (for example, by using a timer ISR) as needed. However, there should not be any read or fetch access from the Flash bank/OTP when an erase or program operation is in progress. Therefore, ISR should be executed from RAM when a Flash erase/program operation is active.
Thanks and regards,
Vamsi