I wrote a simple program to start the watchdog in user space, following this post.
I’d like to stop the watchdog when the application ends. According to this link, I need to write V to the watchdog file before closing it.
For some reason, when I try to do it, the watchdog does not stop and the board reboots. Based on the code available on the link above, the Jetson Xavier NX supports the magic close char.