Couldn't open the watchdog : device or ressource busy

Hello Toradex Community,

I need your help on something, I am currently facing an error when I try to configure/use the watchdog on a Verdin iMX8MM.
I have wrote a C program (On Visual Studio Code) based on the one that you can find here : Watchdog (Linux) | Toradex Developer Center
The problem is that when I try to open my device with the following command : open(“/dev/verdin-watchdog”) I face a "Device or ressource is busy " error.
I have no clue about how can I resolve this problem.
I have tried to check the “systemd.conf” file but didn’t see something strange.

Thank you in advance for your help,

Hello @Muzzy , and welcome to the community :slight_smile:

What changes have you made to your program compared to the one in the tutorial?
Do you face the same issue where you follow the tutorial step-by-step?
Are you using TorizonCore or one of our reference images?
Can you share with us the HW that vyou are using? (Name and version of your SoM and carrier board)

Best regards,
Josep

Hello @josep.tx
Thanks for your support,
I have added a function to set and get the timeout of the watchdog.
Yes I followed the tutorial setp-by-step, I have followed all the Toradex tutorials I needed to use my HW correctly from scratch.
I am currently using TorizonCore 6.1.0-devel image .
Concerning my HW, I am using a Yavia V1.0A as a carrier board and a Verdin iMX8MM Q 2GB WB IT V1.1E as a module.

Best regards,

Hello @Muzzy
I just found this thread, it might be useful :slight_smile:

Best regards,
Josep

Hello @josep.tx
Thank you very much for your help, didn’t see this topic when I was looking out for help.
This is the same issue as mine.
I followed what they suggested to do and it worked !
However I had to changes the permisssion of the file before opening it because I was getting a “Permission denied error”.
Thank you again for your help and your reactivity !

Best regards,

Hello @Muzzy
Thanks for the feedback, we are glad that we were able to help :slight_smile:

Can you please mark the answer as a solution?

Best regards,
Josep