I have an issue that doesn’t get caught by the Watchdog. (Beta 4.2)
I wanted to use MeadowOS.Reset() to reset the board when it happens.
However, I get the following when I call it:
ioctl PowerReset failed OperationNotPermitted
Am I doing something wrong?
My issue doesn’t happen all the time. When it happens, I am initializing a XBee3 Coordinator using Serial Communication. There is allot going on in Digi’s XBeeLibrary.Core. I assume my issue is a locked up thread.
I get around the initialization issue by starting a thread that sleeps for a minute and checks a bool to see if initialization completed. If not, I reset the Meadow and all is good on the next try. Currently, I am wiring A0 to RST and setting A0 false, this resets the board. However, I would like to use MeadowOS.Reset() and avoid the extraneous BS that I’m currently using.
Any help would be greatly appreciated.
Thanks, Paul