Main Site Documentation

Assembly "GHIElectronics.NETMF.Hardware" missing in 4.2?


#1

I have been a FEZ Domino and FEZ Panda user for a while now.

I recently bought a FEZ Cobra and followed these steps to get the board up and running.

    https://www.ghielectronics.com/support/netmf 

I downloaded and installed the “NETMF and Gadgeteer Package 2014 R1”

I then followed this tutorial for a first program NetMF 4.2 program:

     https://www.ghielectronics.com/docs/21/first-netmf-project#152

Near the bottom of the tutorial is a section called "Assemblies to Reference"
GHIElectronics.NETMF.Hardware is a suggested reference.
My problem is it does not exist in the 4.2 assemblies, but does exist in 4.1 assemblies.
(since this is a 4.2 tutorial, I am expecting to find it in the 4.2 assemblies)

I thought maybe my “NETMF and Gadgeteer Package 2014 R1” installation had issues so I reinstalled it… same thing, no GHIElectronics.NETMF.Hardware.dll in the 4.2 assemblies.

please let me know what I am doing wrong.
I apologize now if I am doing something stupid.


#2

My mistake, I did much of the updating for 4.2 SDK, I obviously missed some 4.1 to 4.2 assembly name references.

For now, assuming you bought a “Cobra II”, ignore the .NETMF.
assemblies, when you find you are missing a namespace/class, use the API reference; it lists the assembly containing the name. the API library for Cobra II is https://www.ghielectronics.com/downloads/man/Library_Documentation_v4.2/Premium/

I plan on fixing the references as documents are converted to the 4.3 SDK, the assembly names are fewer and simpler :clap:

I promise to do a better job! — I’ve got better tools and more experience


#3

Thanks for the clarification. You guys build amazing products! I do not have any complaints!

Fill me in on one question.
The first program I always write for every board is to blink the board’s LED.
(I use this simple test to determine if I trashed a board.

The Cobra II echo has an LED, but no pin definition ?.
Does this mean the LED on the Cobra II is not accessible ?
Am I missing a namespace ?

https://www.ghielectronics.com/downloads/man/Library_Documentation_v4.2/Premium/

Here is my extremely simple program (which does not build).
OutputPort reference can not be found.

using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using GHI.Premium.Hardware;
using GHI.Premium.Hardware.LowLevel;
using GHI.Hardware.G120;
using GHI.Premium.IO;
using GHI.Premium.Native;
using GHI.Premium.Net;
using GHI.Premium.System;
//ing GHI.Premium.SystemUpdate; // does not exist in namespace Premium

namespace CobraBlinkLed
{
public class Program
{
public static void Main()
{
OutputPort led = new OutputPort((Cpu.Pin)pin, true);
}
}
}


#4

http://msdn.microsoft.com/en-us/library/hh423001.aspx . Do you reference the assembly mentioned there?

See also the source code to the fez cobra II mainboard (gadgeteer.codeplex.com SOURCE CONTROL > Main > Mainboards > GHIElectronics ): search (using browser page search) for “DebugLedPin”


#5

Thank you! Chalk it up to a stupid user question!
I was missing a reference to Microsoft.SPOT.Hardware.
I expected the ‘using Microsoft.SPOT.Hardware;’ statement to be marked as an error if the assembly is missing, but not true.
At any rate, sorry for cluttering the forum with stupid questions…


#6

No question is “stupid”. The assembly issue comes up quite a bit, and your questions help decide where documentation needs clarification. I ask “stupid” questions when they are in areas where I have little, or no, experience and can’t find a clear answer anywhere.