An error has occurred. Please check your hardware

What the heck is causing this error?
Because it totally freaks me out to be honest ???

The domino works, I deploy code, got a serialport error (which is correct), made sure the error is solved, want to deploy the modified code and now the constant An error has occurred. Please check your hardware.

After a while it started working after resetting the board several times and unplugging it several times.

What the heck is causing this? Windows? The driver? The board?
This is not the first time it’s happening…

Please have a look at this ghi… :frowning:

Your code has no idle time and so it is not giving time for the debugger to attach… for example you have while(true){}

use mfdeploy to erase app

I think I might know what caused this.
I had a serial gps module attached.
The serialport was configured to report errors.

now, because the com port was not configured correctly, it did not stop throwing error codes.
I think that’s why the debugger could not attach.

Sorry that I seemed kind of desperate, but it was very frustrating to not be able to deploy anymore. :-[

I am experiencing the same issue “An error has occurred: please check your hardware” I used MFDeploy to erase the program in my Spider and I also connected a 9V power supply. I tried disconnecting the CP7 display but I am still not having any luck. Do you guys have other suggestions? My code for now is just based on the Glide example with multiple windows. I’ve commented out much of my code trying to find the culprit. Any help would be appreciated.


using System;
using System.IO;
using System.Collections;
using System.Threading;
using Microsoft.SPOT;
using GHIElectronics.NETMF.Glide;
using GHIElectronics.NETMF.Glide.Display;
using GHIElectronics.NETMF.Glide.UI;
using Gadgeteer.Networking;
using GT = Gadgeteer;
using GTM = Gadgeteer.Modules;
using Gadgeteer.Modules.GHIElectronics;
using CXXXt_Simple_Prep;

namespace CXXXt_Simple_Prep
{
    public partial class Program
    {
        static Window[] windows = new Window[2];
        static int index = 0;


        void ProgramStarted()
        {
            // Display_CP7.TouchEventHandlerHomeButton += new Display_CP7.TouchEventHandlerHomeButton(home_button_pressed);

            // Load the windows

            windows[0] = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.mainscreen));
            windows[1] = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.manualscreen));

            Glide.FitToScreen = true;


            //activates touch
            GlideTouch.Initialize();

            //Initializes the window.
            //InitWin(windows[0]);

            Glide.MainWindow = windows[index];
            // Use Debug.Print to show messages in Visual Studio's "Output" window during debugging.
            Debug.Print("Program Started");
        }

        //static void InitWin(Window window)
       // {
            //unsure what to do with this function 
       // }



    }
}

unrelated, this thread is a year old. This error has been discussed in more recent threads and is possibly related to the usb driver change that came with 4.2. I don’t think it’s your code that’s doing this, you should just watch the 4.2 threads that talk about it.