ArguementException registering modules


First time poster. Just got my Hydra today in the mail :slight_smile:

I’ve been trying to get [italic]anything[/italic] to work for a few hours now. I followed the instructions on - downloaded all the packages and installed them in order. I then proceeded to update the firmware on my Hydra as instructed from here : - everything seemed to go fine with the firmware update. I am able to ping with mfdeploy 4.1 as well (tinyclr).

Once I go into visual studio:
[ol] create a new project (gadgeteer type)
add a hydra mainboard to the designer
add any of my modules (Accelerometer in this example)
connect all modules

I then get thrown an exception with the following:

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

Full paste found here:

On the first line of InitializeModules():

using Gadgeteer;
using GTM = Gadgeteer.Modules;

namespace GadgeteerApp2
    public partial class Program : Gadgeteer.Program
        // GTM.Module defintions
        Gadgeteer.Modules.GHIElectronics.LED7R lED7R;
        Gadgeteer.Modules.Seeed.Accelerometer accelerometer;

        public static void Main()
			//Important to initialize the Mainboard first
            Mainboard = new GHIElectronics.Gadgeteer.FEZHydra();			

            Program program = new Program();
            program.Run(); // Starts Dispatcher

        private void InitializeModules()
			// Initialize GTM.Modules and event handlers here.		
			accelerometer = new GTM.Seeed.Accelerometer(6);
			lED7R = new GTM.GHIElectronics.LED7R(12);


Any ideas what I’m doing wrong here?

Here’s a copy of mfdeploy’s device info:

I do not think you are doing anything wrong. The i2c driver is not working on hydra, that is socket I. The fix should be available this week.

Does the led module work fine?

Ahh… I just stumbled on another post about the bug here:

LED lights up but i havn’t tried to control it yet. Will fiddle with that now. All of my interesting modules are of type I so I guess I’ll just use an emulator to develop for the moment while waiting for a fix

There is no gadgeteer emulator. I know it is not fun to wait but I promise we are doing our best to cover the last couple things needed for hydra ASAP.

Welcome to the community.

No problemo. Can always just code as much as possible untested :slight_smile:

Thanks for the welcome and quick response!