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.

How to Customize Feed_Watchdog_V() in TMS570 Flash API

I downloaded the F035 Flash API and see in the user document SPNU493a that there is a function called 'Feed_Watchdog_V()'

which can be replaced by a user defined function.    But there really isn't any explanation of how to accomplish this;  or even information on whether the default version of this function is included in the library.

Running the library utilities I found that a default function does seem to be inlcuded,  but still need instructions on the recommended method to override the default function with a custom function (that for example also handles an external watchdog).

a0321811@LTA0321811A /cygdrive/c/ti/pf035a_api/v1.04

$ ls

Flash470ErrorDefines.h                pf035a_api_eabi.lib

Generic_License_Agreement_021010.pdf  pf035a_api_eabi_vfp.lib

SPNU493A.pdf                          pf035a_api_tiabi.lib

f035.h                                ti-log.ico

flash470.h                            uninst.ico

pf035a_api.lib                        uninstpf035a.exe

 

a0321811@LTA0321811A /cygdrive/c/ti/pf035a_api/v1.04

$ ar470 -xs pf035a_api_eabi.lib

 

a0321811@LTA0321811A /cygdrive/c/ti/pf035a_api/v1.04

$ ls

Fapi_ApiVersion.obj                   otp_vfy_psa.obj

Fapi_CalculateParity.obj              pf035a_api.lib

Fapi_HardwareCalculateEcc.obj         pf035a_api_eabi.lib

Fapi_PollFlashStatus.obj              pf035a_api_eabi_vfp.lib

Fapi_SetupFlashPump.obj               pf035a_api_tiabi.lib

Flash470ErrorDefines.h                prog_data.obj

Generic_License_Agreement_021010.pdf  psa.obj

Match_Key.obj                         psa_calc.obj

Match_Key_B.obj                       read.obj

OTP_blank.obj                         sector_select.obj

OTP_read.obj                          set_vread.obj

OTP_verify.obj                        setup_fsm.obj

SPNU493A.pdf                          start_async_cmnd.obj

WaitDelay.obj                         start_cmnd.obj

aengr.obj                             start_cmpct.obj

aligned_byte_width.obj                start_erase.obj

blank.obj                             start_prog.obj

ceil_div_by_x.obj                     status.obj

cmpct_stat.obj                        ti-log.ico

compact.obj                           uninst.ico

ebank.obj                             uninstpf035a.exe

eng_info.obj                          verify_data.obj

eng_row.obj                           verify_psa.obj

erase.obj                             verify_read.obj

erase_stat.obj                        vtbit_count.obj

esector.obj                           vtblank.obj

exec_pulse.obj                        vtread.obj

f035.h                                vtverify.obj

feed_dog.obj                          vtverify_data.obj

flash470.h                            vtverify_psa.obj

get_presc_shift.obj                   vtzeros.obj

get_timing.obj                        vzeros.obj

issue_cmnd.obj                        zeros.obj

 

a0321811@LTA0321811A /cygdrive/c/ti/pf035a_api/v1.04

$  dis470.exe feed_dog.obj

Disassembly of feed_dog.obj:

 

TEXT Section .text, 0x18 bytes at 0x0

000000:              Feed_Watchdog_V:

000000:               .state16

000000: 4802             LDR             R0, $C$CON1 [0xc]

000002: 4903             LDR             R1, $C$CON2 [0x10]

000004: 6001             STR             R1, [R0]

000006: 4903             LDR             R1, $C$CON3 [0x14]

000008: 6001             STR             R1, [R0]

00000a: 4770             BX              R14

00000c:              $d:

00000c:              $C$CON1:

00000c: FFFF            .half            0xFFFF

00000e: FC9C            .half            0xFC9C

000010:              $C$CON2:

000010: 0000            .half            0x0000

000012: E51A            .half            0xE51A

000014:              $C$CON3:

000014: 0000            .half            0x0000

000016: A35C            .half            0xA35C

 

a0321811@LTA0321811A /cygdrive/c/ti/pf035a_api/v1.04