The Netduino forums have been replaced by new forums at community.wildernesslabs.co.
This site has been preserved for archival purposes only
and the ability to make new accounts or posts has been turned off.
A first chance exception of type 'System.Exception' occurred in Microsoft.SPOT.Hardware.dll
An unhandled exception of type 'System.Exception' occurred in Microsoft.SPOT.Hardware.dll
Uncaught exception
A first chance exception of type 'System.NullReferenceException' occurred in GoBus.dll
An unhandled exception of type 'System.NullReferenceException' occurred in GoBus.dll
Uncaught exception
The thread '<No Name>' (0x2) has exited with code 0 (0x0).
A first chance exception of type 'System.NullReferenceException' occurred in GoBus.dll
An unhandled exception of type 'System.NullReferenceException' occurred in GoBus.dll
Uncaught exception
The thread '<No Name>' (0x1) has exited with code 0 (0x0).
Done.
Waiting for debug commands...
The program '[11] Micro Framework application: Managed' has exited with code 0 (0x0).
Nov 14th it was indicated that the update should be by the end of the next week(Nov 23rd). I asked on the 29th how things where going. Its been over another two weeks, could we get another status report?
Hope there's an update soon. Its been 41 days since I'd expected the fix so we could flash modules and so we didn't have to kludge nwazet modules working. Its been 34 days since we've had an update(and that indicated it'd be ready in December). Been waiting for the 1 wire for shield base since like August.
I'd like to see a virtual serial port module (not the shield base) for the go bus, this should be really easy, but it would mean people could get wifi modules (or ethernet) such as the gainspan wireless module and start using the GO! for network related projects now.
I wonder if there is an update also to the SPI issue discussed in this topic, has been determined that in 4.2.1 the SPI speed in the firmware was adjusted the wrong way ie delivering half speed, or is it that this is now correct and was wrong before in both the firmware and the Nwazet drivers?
I have a NWazet touch display, again had little use as I need 1-wire on the shield base, but the current issues are no show stopper, I just won't upgrade until everythings on the same page.
I've got a Windows 8 x64 machine (HP Envy 3040nr) and when running the DfuSe Demo (v3.0.3) to upload the dfu file to my Netduino Go and the app crashes when running the 'verify' step--Running without this is obviously not the ideal, but without fail--even when run via the 'Verify' button, the app crashes with the following error (Windows event log):
The GoBus libraries are part of the Netduino Go firmware. They're added to projects in Visual Studio so that you can use them in your code...but they don't need to be deployed to the board.
What sample code is giving you troubles, in particular?
Unfortunately, you will also need to remove all of the Secretlab libraries.
Once you remove them you can try something like this:
using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
namespace NetduinoGo_LightShow
{
public class Program
{
static PWM[] leds = new PWM[8];
public static void Main()
{
leds[0] = new PWM(Microsoft.SPOT.Hardware.Cpu.PWMChannel.PWM_0, 100, 1, false);
leds[1] = new PWM(Microsoft.SPOT.Hardware.Cpu.PWMChannel.PWM_1, 100, 1, false);
leds[2] = new PWM(Microsoft.SPOT.Hardware.Cpu.PWMChannel.PWM_2, 100, 1, false);
leds[3] = new PWM(Microsoft.SPOT.Hardware.Cpu.PWMChannel.PWM_3, 100, 1, false);
leds[4] = new PWM(Microsoft.SPOT.Hardware.Cpu.PWMChannel.PWM_4, 100, 1, false);
leds[5] = new PWM(Microsoft.SPOT.Hardware.Cpu.PWMChannel.PWM_5, 100, 1, false);
leds[6] = new PWM(Microsoft.SPOT.Hardware.Cpu.PWMChannel.PWM_6, 100, 1, false);
leds[7] = new PWM(Microsoft.SPOT.Hardware.Cpu.PWMChannel.PWM_7, 100, 1, false);
while (true)
{
LightCycle();
}
}
public static void LightCycle()
{
int count = 3;
while (count != 0)
{
count--;
for (int ledIndex = 0; ledIndex < 8; ledIndex++)
{
leds[ledIndex].Start();
Thread.Sleep(50);
leds[ledIndex].DutyCycle = .25;
Thread.Sleep(5);
leds[ledIndex].Stop();
}
for (int ledIndex = 7; ledIndex >= 0; ledIndex--)
{
leds[ledIndex].Start();
Thread.Sleep(50);
leds[ledIndex].DutyCycle = .25;
Thread.Sleep(5);
leds[ledIndex].Stop();
}
}
}
}
}
Here's what you get:
Hopefully in a future update, we'll be able to use the Goport LEDs with the SL libraries. Then I can add my Piezo buzzer and create some sirens sounds and have a pretty cool Police car simulator
Cheers,
Steve
Hi Chris,
I am trying the above code.
After creation of the first PWM channel the code throws an exception.
The early versions of Netduino Go firmware enabled users to access the raw IO of the MCU pretty easily (to play with the LEDs, etc.) As we move towards full virtualization with GoBus 1.5, we'll need to expose those kinds of features in classes.
Asbjorn--if you want to hack on Netduino Go in C/C++, you can create apps in native C/C++ (like Arduino) and deploy via a MiniJTAG header. The ST-Link/V2 hardware is pretty inexpensive and there's a free version of Keil MDK for smaller apps.