Unknown type: AnalogOutputChannel during deploying

Dear All:

As a new user of FEZ Cerberus, I tried to build my first application following the instructions without any problem. In order to experience the hardware, I tried another example that links joystick to a LED7R. While compiling and deploying the code, I got following error messages:

Create TS.

Loading start at 8036fc8, end 804b620

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: Microsoft.SPOT.IO (4.2.0.0)Attaching deployed file.

Assembly: GTM.GHIElectronics.Joystick (1.1.1.0)Attaching deployed file.

Assembly: Gadgeteer (2.42.0.0)Attaching deployed file.

Assembly: System.Http (4.2.0.0)Attaching deployed file.

Assembly: Microsoft.SPOT.Net.Security (4.2.0.0)Attaching deployed file.

Assembly: GHIElectronics.Gadgeteer.FEZCerberus (1.1.2.0)Attaching deployed file.

Assembly: GTM.GHIElectronics.LED7R (1.1.1.0)Attaching deployed file.

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

Assembly: GadgeteerApp1 (1.0.0.0)Attaching deployed file.

Assembly: System.Net.Security (4.2.0.0)Attaching deployed file.

Assembly: Microsoft.SPOT.TinyCore (4.2.0.0)Attaching deployed file.

Assembly: System.IO (4.2.0.0)Resolving.

Resolve: unknown type: AnalogOutputChannel

Error: ff000000

Waiting for debug commands…

The program ‘[10] Micro Framework application: Managed’ has exited with code 0 (0x0).

I have also tried the same example on different computers, and got the same results.

Could someone please provide any suggestion for the problem?

My software configuration:

WinXP SP3, Microsoft Visual C# 2010 Express, .NET Microframework SDK 4.2 (QFE2), and GHI NETMF v4.2 and .NET Gadgeteer Package 2013-02-14.

Code I tried to compile and deploy:

using System;
using System.Collections;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Controls;
using Microsoft.SPOT.Presentation.Media;
//using Microsoft.SPOT.Touch;

using Gadgeteer.Networking;
using GT = Gadgeteer;
using GTM = Gadgeteer.Modules;
using Gadgeteer.Modules.GHIElectronics;

namespace GadgeteerApp1
{
public partial class Program
{
// This method is run when the mainboard is powered up or reset.
void ProgramStarted()
{
/*******************************************************************************************
Modules added in the Program.gadgeteer designer view are used by typing
their name followed by a period, e.g. button. or camera.

        Many modules generate useful events. Type +=<tab><tab> to add a handler to an event, e.g.:
            button.ButtonPressed +=<tab><tab>
        
        If you want to do something periodically, use a GT.Timer and handle its Tick event, e.g.:
            GT.Timer timer = new GT.Timer(1000); // every second (1000ms)
            timer.Tick +=<tab><tab>
            timer.Start();
        *******************************************************************************************/
        joystick.JoystickPressed += new Joystick.JoystickEventHandler(joystick_JoystickPressed);
        joystick.JoystickReleased += new Joystick.JoystickEventHandler(joystick_JoystickReleased);

        // Use Debug.Print to show messages in Visual Studio's "Output" window during debugging.
        Debug.Print("Program Started");
    }

    void joystick_JoystickReleased(Joystick sender, Joystick.JoystickState state)
    {
        Debug.Print("Joystick Released");
        led7r.TurnLightOff(7);
        
    }

    void joystick_JoystickPressed(Joystick sender, Joystick.JoystickState state)
    {
        Debug.Print("Joystick Pressed");
        led7r.TurnLightOn(7);

    }
}

}

Thanks

James Tsai

Welcome to the forum!

Make sure you have the latest firmware on your board.

Please use code tags for code fragments in the posts.

Analog output is a recent addition to NETMF. Most people use PWM as quasi-analog output. It is relatively rare that true analog is required instead of PWM output. We originally introduced it (in NETMF) due to a customer request, for their custom hardware that had particular requirements in the analog domain. It is possible that GHI has not yet integrated our reference implementation of the analog output feature.

Thanks.
Upgrade the firmware works.

@ User_11850 - You gave the wrong person credit for the answer!