Hello All,
After spending a lot of time with the Arduino system, I’ve finally moved on to using something half decent which is the Cerbuino board. However, I would like to get started and get programming with this.
I’ve tried a simple LED flashing program however I’m getting the following error message in my program.
It looks as if I have a problem with the GHI.OSHW.Hardware.dll but am not sure how to go about debugging this…
CAN YOU PLEASE HELP!!!
Also, I enclose the program that I’ve written.
ERROR:
The debugging target runtime is loading the application assemblies and starting execution.
Ready.
‘Microsoft.SPOT.Emulator.Sample.SampleEmulator.exe’ (Managed): Loaded ‘C:\Program Files (x86)\GHI Electronics\GHI OSHW NETMF v4.2 SDK\Assemblies\le\GHI.OSHW.Hardware.dll’
‘Microsoft.SPOT.Emulator.Sample.SampleEmulator.exe’ (Managed): Loaded ‘C:\Users\Richard\AppData\Local\Temporary Projects\LEDBlink\bin\Debug\le\LEDBlink.exe’, Symbols loaded.
#### Exception System.NotSupportedException - CLR_E_NOT_SUPPORTED (2) ####
#### Message:
#### GHI.OSHW.Hardware.RTC+Cerb::.cctor [IP: 001d] ####
An unhandled exception of type ‘System.NotSupportedException’ occurred in GHI.OSHW.Hardware.dll
[CODE]
using System;
using Microsoft.SPOT;
using System.IO;
using Microsoft.SPOT.Hardware;
using GHI.OSHW.Hardware;
using System.Threading;
namespace LEDBlink
{
public class Program
{
public static void Main()
{
OutputPort LED;
LED = new OutputPort((Cpu.Pin)FEZCerbuino.Pin.Digital.LED1, false);
while (true)
{
LED.Write(true);
Thread.Sleep(1000);
LED.Write(false);
Thread.Sleep(1000);
}
}
}
}
[CODE]
Notes: I believe I’ve loaded the right assemblies and I’m using .NETMF 4.2 etc…
Thanks in advance,
Richard