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.

AM62L-PROCESSOR-SDK: WatchDog Testing

Part Number: AM62L-PROCESSOR-SDK
Other Parts Discussed in Thread: AM62L

Tool/software:

Hi ,

While working in the AM62L3 board i tried testing the Watchdog reset , just by giving the Watchdog -reset command in the user-space .Which should reset the board after 30/60 second.But board did not reset .
So is there any other way to test watchdog or any other commands to reset board using watch-dog?Could you please guide me the method. I have gone through the website :https://software-dl.ti.com/processor-sdk-linux/esd/AM62LX/11_00_05_02/exports/docs/linux/Foundational_Components/Kernel/Kernel_Drivers/Watchdog.html but could not found any commands or methods to test other than a "watchdog-simple.c". 

--Dheeraj K

  • Hi,

    Any updates on this?

  • Hello Dheeraj,

    I am working on getting an AM62L EVM to verify on my side.

    one very simple test would just be

    $ echo 1 > /dev/watchdog

    to start the watchdog counter. Then wait a minute and see if the board reboots or not.

    Regards,

    Nick

  • Hello,

    Yes i have tried that , still the board is not reboting.

    Regards,
    Dheeraj K

  • Hello Dheeraj,

    I am able to replicate your observation that watchdog is not rebooting the board. Can you please verify for me exactly which revision of the AM62L board you are using? (just in case that matters) Feel free to attach a picture of the EVM.

    Regards,

    Nick

  • Hello Nick,

    I have been using the AM62L EVM Board with 

    OPN#-TMDS62LEVM
    SL#-46241810132

    Attached is the Image:

  • Hello Deeraj,

    It sounds like the code adding AM62L watchdog support did not make it into ti-linux-kernel-6.12.y in time for the SDK 11.0 release.

    I will be on vacation the last week of May, but I have asked a team member to post the watchdog patches here for you to test. If you have not heard anything from us, please ping the thread on June 3-4 to make sure I see your message after I return.

    Regards,

    Nick

  • Hi,

    Can you please try the following diff:

    diff --git a/drivers/watchdog/rti_wdt.c b/drivers/watchdog/rti_wdt.c
    index 4895a69015a8..04b5072c4bc5 100644
    --- a/drivers/watchdog/rti_wdt.c
    +++ b/drivers/watchdog/rti_wdt.c
    @@ -35,7 +35,7 @@
     #define RTIWWDRXCTRL   0xa4
     #define RTIWWDSIZECTRL 0xa8
     
    -#define RTIWWDRX_NMI   0xa
    +#define RTIWWDRX_NMI   0x5
     
     #define RTIWWDSIZE_50P         0x50
     #define RTIWWDSIZE_25P         0x500

    Please know that this will break watchog reset for other platforms besides am62lx.

  • Hi , 

    After doing these changes now board is getting reset after one minute . Thank You for the update . Could you please tell me why "RTIWWDRX_NMI" this Macro is used .

    Please know that this will break watchog reset for other platforms besides am62lx. ..
    For am62lx platform it will not create any other issues related to the working interfaces after reseting of the board.?

    Regards,
    Thank You