Missing Templates " Console Application"

Looks like all is working normal.

great to see it’s all working as expected ! Time for Dev now ! :slight_smile:

Thanks to all.

Where can I find sample codes for fez cerb40 with netmf and the libraries?

there are tutorials for about everything you can think off under support and codeshare. Anythign specific you are looking for?

I would like to start of with IO and PWM control but I don’t anything specific for cerb40. I would like to suggest to put some basic programming/development information in the cerb40 wiki or probably to all board specific information.

The big benefit of Netmf is that you don’t need very much “specific” information for a board - so I’d suggest heading to the Support – GHI Electronics and go to the netmf tutorials, and start there ! http://wiki.tinyclr.com/index.php?title=First_Project is a good easy intro into the overall experience and then GHI Electronics – Where Hardware Meets Software for Digital IO; again, there’s not much you need to change except you need to know the pin numbers; this page http://wiki.tinyclr.com/index.php?title=FEZ_Cerb40_Developer might help that.

Looking at the basic IO control program all are pointing to the same page and I tried the folliwing

LED = new OutputPort((Cpu.Pin)EMX.Pin.IO40, true);

The error says " The name ‘EMX’ does not exist in the current context " , page mentioned the code for FEZ Spider, how about for cerb40.

Correct; EMX means it’s trying to use a pin definition that’s for an EMX board, which you don’t have. You need to have the same definition for the board you’re using.

Did you step through the emulator example? That’s important to start to help you understand what all these things mean.

What pin have you decided to connect your LED to? What is the silkscreen label?

I didn’t step into the program in emulator mode but different assemblies to control the IO output.
I am able to program it the and the PIN 14 - PA0 set to HIGH but getting error " An unhandled exception of type ‘System.NotSupportedException’ occurred in GHI.OSHW.Hardware.dll "

Is this the correct assembly cerb40?

using System;
using Microsoft.SPOT;
using System.Threading;
using Microsoft.SPOT.Hardware;
using GHI.OSHW.Hardware;

namespace MFConsoleApplication8
{
public class Program
{
public static void Main()
{

       OutputPort LED;        
       LED = new OutputPort((Cpu.Pin)FEZCerberus.Pin.PA0, true);
       Debug.Print("PA0 Set High");
       Thread.Sleep(Timeout.Infinite);

    }

}   

}

And the output windows are…

---------> Output - Build

------ Build started: Project: MFConsoleApplication8, Configuration: Debug Any CPU ------
MFConsoleApplication8 → c:\my documents\visual studio 2010\Projects\MFConsoleApplication8\MFConsoleApplication8\bin\Debug\MFConsoleApplication8.exe
------ Deploy started: Project: MFConsoleApplication8, Configuration: Debug Any CPU ------
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========

---------> Output - Debug

Create TS.

Loading start at 802d938, end 8041f6c

Assembly: mscorlib (4.2.0.0)Assembly: Microsoft.SPOT.Native (4.2.0.0)Assembly: Microsoft.SPOT.Hardware (4.2.0.0)
Assembly: Microsoft.SPOT.Graphics (4.2.0.0)Assembly: Microsoft.SPOT.Hardware.SerialPort (4.2.0.0)
Assembly: Microsoft.SPOT.Net (4.2.0.0)Assembly: System (4.2.0.0)Assembly: Microsoft.SPOT.Hardware.Usb (4.2.0.0)
Assembly: Microsoft.SPOT.Hardware.PWM (4.2.0.1)Loading Deployment Assemblies.

Attaching deployed file.

Assembly: GHI.OSHW.Hardware (4.2.2.0)Attaching deployed file.

Assembly: GHI.OSHW.Native (4.2.2.0)Attaching deployed file.

Assembly: MFConsoleApplication8 (1.0.0.0)Resolving.

The debugging target runtime is loading the application assemblies and starting execution.
Ready.

‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\mscorlib.dll’, Symbols loaded.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Native.dll’, Symbols loaded.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.dll’, Symbols loaded.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Graphics.dll’, Symbols loaded.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.SerialPort.dll’, Symbols loaded.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Net.dll’, Symbols loaded.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\System.dll’, Symbols loaded.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.Usb.dll’, Symbols loaded.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.PWM.dll’, Symbols loaded.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘C:\Program Files (x86)\GHI Electronics\GHI OSHW NETMF v4.2 SDK\Assemblies\le\GHI.OSHW.Hardware.dll’
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘C:\Program Files (x86)\GHI Electronics\GHI OSHW NETMF v4.2 SDK\Assemblies\le\GHI.OSHW.Native.dll’
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘c:\my documents\visual studio 2010\Projects\MFConsoleApplication8\MFConsoleApplication8\bin\Debug\le\MFConsoleApplication8.exe’, Symbols loaded.
A first chance exception of type ‘System.NotImplementedException’ occurred in Microsoft.SPOT.Native.dll
An unhandled exception of type ‘System.NotSupportedException’ occurred in GHI.OSHW.Hardware.dll

Uncaught exception
An unhandled exception of type ‘System.NotSupportedException’ occurred in GHI.OSHW.Hardware.dll

Uncaught exception
An unhandled exception of type ‘System.NotSupportedException’ occurred in GHI.OSHW.Hardware.dll

Uncaught exception
An unhandled exception of type ‘System.NotSupportedException’ occurred in GHI.OSHW.Hardware.dll

Uncaught exception
An unhandled exception of type ‘System.NotSupportedException’ occurred in GHI.OSHW.Hardware.dll

Uncaught exception
The thread ‘’ (0x2) has exited with code 0 (0x0).
PA0 Set High

These exceptions can be ingored I believe.

Yes, can be ignored by clicking the continue button couple of times. What is the reason behind for having this exception and how to avoid it, any ( firmware/bootloader) updates required?