But I have some time this exception ‘System.InvalidOperationException’ and I do not understand why.
I try do add
if(! GHI.Processor.Watchdog.Enable)
before, but it changes nothing.
@ stevepx i’m in 4.3 and GHI.Premium not exist in this
@ John
‘Une exception non gérée du type ‘System.InvalidOperationException’ s’est produite dans GHI.Hardware.dll’ -> it’s the pop up
‘Une exception de première chance de type ‘System.InvalidOperationException’ s’est produite dans GHI.Hardware.dll
Une exception non gérée du type ‘System.InvalidOperationException’ s’est produite dans GHI.Hardware.dll’ -> in the windows output
A first chance exception of type ‘System.InvalidOperationException’ occurred in Hardware.exe
An unhandled exception of type ‘System.InvalidOperationException’ occurred in Hardware.exe
@ francois910 - Can you look in the call stack window? If you can’t find it, see if you can enable it under Debug > Windows > Call Stack when debugging.
@ francois910 - I was not able to reproduce the issue using the latest beta 3 firmware. Which version are you running? Have you tried a different Cerberus board if you have any? Can you reflash the firmware and try again?
@ francois910 - Any Cerb family board will do, another Cerb 40 II, Cerberus, or Cerbuino. Can you put the board into DFU mode and try to reflash the loader?
Ok,
i take a second fez cerb 40 ii and i reflash the loader. It was in 4.2 and i put the 4.3.
So in the first use, no problem, but when i put for the second time the program, i have the same exeption.
And, when i put your code, 1st time no problem, but i have exeption in 2nd time.
code (for your test) it"s just :
using System.Threading;
using GHI.Processor;
namespace testODB
{
public class Program
{
public static void Main()
{
Watchdog.Enable(1000 * 15);
while (true)
{
Watchdog.ResetCounter();
Thread.Sleep(1000);
}
}
}
}