put a breakpoint on the debug statement and hit F5
Breakpoint is never reached, responsible is the " static CAN MyCan;"
Is this “normal” in NETMF?
using System;
using Microsoft.SPOT;
using GHI.Premium.Hardware;
namespace MFConsoleApplication1
{
public class Program
{
// static string = no problem
static string MyString = "";
// static CAN = code will NOT reach the Main ???
static CAN MyCan;
public static void Main()
{
MyString = "Hi there...";
Debug.Print("just a breakpoint");
// somewhare here read the parameters for the CAN port and fire it up
//MyCan = new CAN( and the correct parameters)
}
}
}
I just want to CAN object availible in the complete class
The G120 and a std NETMF console app.
And If you put “static CAN MyCan;” in comment then it works.
The same happens if i would put a static declare for a SD card.
One more thing maybe, this wil run in emulator mode, but not on the G120
The Firmware on Hardware must match the SDK you use.
If you install a new SDK or if you get a new module use the FirmwareUpdater to update the Firmware.