Netduino home hardware projects downloads community

Jump to content


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.

cr0w5t3r

Member Since 02 May 2015
Offline Last Active May 21 2015 08:53 PM
-----

Topics I've Started

Missing device listing (driver installation)

10 May 2015 - 02:35 PM

Hi Nick,
 
Grab a copy of the latest Netduino SDK (currently v4.3.2) from the following download link:
http://cdn.netduino....netduinosdk.exe

Then just create a Netduino Application (Universal)...and code away :) The new universal template works with all gen2 and gen3 boards and is based on NETMF 4.3.

Chris

 

Hi Chris,

 

Thanks for the info. I've now installed v4.3.2.0 and created a new universal app and looks like I can add references to NetduinoGo.RgbLed which is a good start. However, I can no longer see my device in either VS2K13 or MFDeploy.

 

The other day I upgraded my N3 firmware to 4.3.2.1 and I could see my device fine in both. Any ideas what how I can fix it?

 

If I emulate the app instead of deploying it (as I can't) I get the following errors in the output window;

 

'Microsoft.SPOT.Emulator.Sample.SampleEmulator.exe' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\mscorlib.dll', Symbols loaded.
'Microsoft.SPOT.Emulator.Sample.SampleEmulator.exe' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Native.dll', Symbols loaded.
'Microsoft.SPOT.Emulator.Sample.SampleEmulator.exe' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Hardware.dll', Symbols loaded.
'Microsoft.SPOT.Emulator.Sample.SampleEmulator.exe' (Managed): Loaded 'C:\Program Files (x86)\Secret Labs\Netduino SDK\Assemblies\v4.3\le\GoBus.dll', Symbols loaded.
'Microsoft.SPOT.Emulator.Sample.SampleEmulator.exe' (Managed): Loaded 'C:\Program Files (x86)\Secret Labs\Netduino SDK\Assemblies\v4.3\le\NetduinoGo.RgbLed.dll', Symbols loaded.
'Microsoft.SPOT.Emulator.Sample.SampleEmulator.exe' (Managed): Loaded 'C:\Applications\Netduino\NetduinoApplicationUniversal\NetduinoApplicationUniversal\bin\Debug\le\NetduinoApplicationUniversal.exe', Symbols loaded.
'Microsoft.SPOT.Emulator.Sample.SampleEmulator.exe' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Hardware.PWM.dll', Symbols loaded.
'Microsoft.SPOT.Emulator.Sample.SampleEmulator.exe' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Hardware.SerialPort.dll', Symbols loaded.
'Microsoft.SPOT.Emulator.Sample.SampleEmulator.exe' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Net.dll', Symbols loaded.
'Microsoft.SPOT.Emulator.Sample.SampleEmulator.exe' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\System.dll', Symbols loaded.
'Microsoft.SPOT.Emulator.Sample.SampleEmulator.exe' (Managed): Loaded 'C:\Program Files (x86)\Secret Labs\Netduino SDK\Assemblies\v4.3\le\SecretLabs.NETMF.Hardware.Netduino.dll', Symbols loaded.
'Microsoft.SPOT.Emulator.Sample.SampleEmulator.exe' (Managed): Loaded 'C:\Program Files (x86)\Secret Labs\Netduino SDK\Assemblies\v4.3\le\SecretLabs.NETMF.Hardware.dll', Symbols loaded.
    #### Exception System.ArgumentException - 0xfd000000 (2) ####
    #### Message: 
    #### Microsoft.SPOT.Hardware.HardwareProvider::NativeGetSpiPins [IP: 0000] ####
    #### Microsoft.SPOT.Hardware.HardwareProvider::GetSpiPins [IP: 0013] ####
    #### Microsoft.SPOT.Hardware.SPI::.ctor [IP: 0019] ####
    #### GoBus.GoHub::Initialize [IP: 00ad] ####
    #### GoBus.GoModule::Initialize [IP: 0099] ####
    #### GoBus.GoModule::.ctor [IP: 0016] ####
    #### GoBus.GoHub::.ctor [IP: 0004] ####
    #### GoBus.GoHub::.cctor [IP: 0003] ####
A first chance exception of type 'System.ArgumentException' occurred in Microsoft.SPOT.Hardware.dll
An unhandled exception of type 'System.ArgumentException' occurred in Microsoft.SPOT.Hardware.dll
 
 Uncaught exception 
The thread '<No Name>' (0x2) has exited with code 0 (0x0).
    #### Exception System.NullReferenceException - CLR_E_NULL_REFERENCE (1) ####
    #### Message: 
    #### GoBus.GoModule::Initialize [IP: 0021] ####
    #### GoBus.GoModule::.ctor [IP: 0016] ####
    #### NetduinoGo.RgbLed::.ctor [IP: 0040] ####
    #### NetduinoApplicationUniversal.Program::Main [IP: 0004] ####
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.
 
The program '[5732] Micro Framework application: Managed' has exited with code 0 (0x0).
 
 

The code I'm using is as follows;

 

using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using NetduinoGo;
using SecretLabs.NETMF.Hardware;

namespace NetduinoApplicationUniversal
{
    public class Program
    {
        public static void Main()
        {
            var x = new RgbLed();
            x.SetColor(255, 0, 0);
        }
    }
}

All references in project:

 

GoBus.dll - V1.5.0.0

Microsoft.SPOT.Hardware - V4.3.1.0

Microsoft.SPOT.Hardware.PWM - V4.3.1.0

Microsoft.SPOT.Hardware.SerialPort - V4.3.1.0

Microsoft.SPOT.Native - V4.3.1.0

Microsoft.SPOT.Net - V4.3.1.0

mscorlib - V4.3.1.0

NetduinoGo.RgbLed - V1.4.0.0

SecretLabs.NETMF.Hardware - V4.3.1.0

SecretLabs.NETMF.Hardware.Netduino - V4.3.1.0

System - V4.3.1.0

 

 

Even if I just try a vanilla app it gives me the same exception in the Microsoft.SPOT.Hardware.dll.

 

 

All I want to do is make my Led change colour ;(.
 
 
Any help is much appreciated!
Nick

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.