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.

F021 Flash API Watchdog behaviour

Other Parts Discussed in Thread: CONTROLSUITE

Hello,
how is the watchdog behaving in the F021 Flash API. In the Piccolo Flash API there is a notice that the watchdog is disabled during Flash erase/programming. I miss this information in the F021 User's Guide.

Regards, Holger

  • Holger,

    our flash expert is on vacation till at least 21st of this month. So I'm going to suggest below

    F021 API guide and flash example in F2837xD ControlSuite show that customer has to provide a function  - Fapi_serviceWatchdogTimer

    So I don’t think watchdog is disabled by flash API on F021. But I’m not sure if watchdog is force enabled in the flash API and user has to provide a service function?

     

    Customer can check this easily with debugger connected.

    1.>   Assign a dummy user function to - Fapi_serviceWatchdogTimer which can be used as a break point

    2.>   Put a break point in the call back function assigned in step 1.

    3.>   Keep watchdog enabled

    4.>   Call flash API

    5.>   When the callback function break point is hit, check if watchdog is running.

     

    Or he can do below.

     

    1.>   Assign a dummy user function to - Fapi_serviceWatchdogTimer which can be used as a break point

    2.>   Put a break point in the call back function assigned in step 1.

    3.>   Keep watchdog disabled

    4.>   Call flash API

    5.>   When the callback function break point is hit, check if watchdog is running or disabled.

    Hope this helps.

    Best Regards

    Santosh Athuru

  • Hello Santosh,

    > So I don’t think watchdog is disabled by flash API on F021. But I’m not sure if watchdog is force enabled in the flash API and user has to provide a service function?
    We need here a concrete answer and it should be noted in the F021 API guide! Does the customer need to care about the watchdog by himself and disable it? Or, is it not needed.
    Why is the strategy different from Piccolo Flash API?

    Who else can answer the question?

    Regards, Holger
  • Holger,

    F021 Flash API neither enables nor disables the watchdog. It is up to the customer to configure the watchdog and service it as needed. As mentioned in the TRM, F021 Flash API interacts with the Flash state machine in the FMC to perform the erase/program operations and hence F021 Flash API is interrupt-able unlike Piccolo. User can enable watchdog if needed and service it at regular interrupts (can use timer) as needed.

    Thanks and regards,

    Vamsi
  • Hello Vamsi,

    thx for this information. This notice should be included in the manual.

    It also means that for both Piccolo and F021 you don't care about disabling the watchdog, right?

    Regards Holger

  • HS WG-FAE said:
    It also means that for both Piccolo and F021 you don't care about disabling the watchdog, right?

    F021 devices are:

    Piccolo: F2807x

    Delfino: F2837xD and F2837xS

    Concerto: F28M35x and F28M36x

    HS WG-FAE said:
    This notice should be included in the manual.

    Yes, we will log it for update.