Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

"An error has occurred: please check your hardware"


  • Please log in to reply
21 replies to this topic

#1 PaulS

PaulS

    New Member

  • Members
  • Pip
  • 7 posts

Posted 28 August 2010 - 12:07 AM

I'm working on a program to read RFID tags using a SeeedStudio RFID reader. All the program does now is open a serial port, and echo what comes in. When I try to compile and run the program, I get an error message that says "An error has occurred: please check your hardware". I checked. It's there. I copied the code from a Program.cs file from a solution that I am able to compile, upload and run and pasted it in place of the code in this Program.cs file. It compiles, but fails to upload. Any ideas?

#2 PaulS

PaulS

    New Member

  • Members
  • Pip
  • 7 posts

Posted 28 August 2010 - 12:09 AM

OK. This is weird. I was going to post the code. I control-Zed to get back to the code I was trying to upload, and it uploaded just fine. What the heck?

#3 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 28 August 2010 - 12:21 AM

That error usually means that your Netduino didn't boot properly and is stuck in bootloader mode. It shouldn't happen, but it can happen due to incompletely-flashed firmware or C# code gone awry. If this happens, open up MFDeploy (Start > Programs > .NET Micro Framework SDK > MFDeploy.exe), select USB transport, and then ERASE the program on your Netduino. Or just unplug and reconnect it. If you can reproduce the issue consistently, please let us know. We want users to have a fantastic experience with .NET MF and Netduino. Chris

#4 PaulS

PaulS

    New Member

  • Members
  • Pip
  • 7 posts

Posted 28 August 2010 - 12:35 AM

Even when the program failed to upload, I had no trouble uploading other programs. And now I can't reproduce the problem. But, I can read RFID tags.

#5 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 28 August 2010 - 01:13 AM

But, I can read RFID tags.


:)

#6 ajcg1973

ajcg1973

    Advanced Member

  • Members
  • PipPipPip
  • 71 posts

Posted 01 September 2010 - 03:26 AM

I had this exact problem last night. I originally thought it was due to the newest version of the ALPHA firmware that was posted but after reflashing the Netduino with the released version of the firmware, the same error showed up. I went back to the Alpha release and rebooted my computer - the error still persisted. As it turns out for me what fixed it was a re-install of the Netduino SDK. I'm not sure how it got corrupted but when I removed the references to SecretLabs and tried to re-add the references I would get a COM error. Everything is back to normal and the Alpha firmware is running just fine with the re-install.

#7 Fabien Royer

Fabien Royer

    Advanced Member

  • Members
  • PipPipPip
  • 406 posts
  • LocationRedmond, WA

Posted 22 December 2010 - 06:58 PM

Hi,

I find myself in the same situation where VS2010 fails deploying to the netduino and only shows "Error 1 An error has occurred: please check your hardware."

netduino configuration:


Pinging... TinyCLR
HalSystemInfo.halVersion: 4.1.2821.0
HalSystemInfo.halVendorInfo: Netduino (4.1.1.0 a2) by Secret Labs LLC
HalSystemInfo.oemCode: 34
HalSystemInfo.modelCode: 177
HalSystemInfo.skuCode: 4096
HalSystemInfo.moduleSerialNumber: 00000000000000000000000000000000
HalSystemInfo.systemSerialNumber: 0000000000000000
ClrInfo.clrVersion: 4.1.2821.0
ClrInfo.clrVendorInfo: Netduino (4.1.1.0 a2) by Secret Labs LLC
ClrInfo.targetFrameworkVersion: 4.1.2821.0
SolutionReleaseInfo.solutionVersion: 4.1.1.0
SolutionReleaseInfo.solutionVendorInfo: Netduino (4.1.1.0 a2) by Secret Labs LLC
SoftwareVersion.BuildDate: Sep 29 2010
SoftwareVersion.CompilerVersion: 400771
FloatingPoint: True
SourceLevelDebugging: True
ThreadCreateEx: True

I have attempted the following to no avail:
  • Erased the application that I thought may have caused the issue using MFDeploy
  • Reflashed the firmware with v4.1.1.0 alpha 2
  • Re-installed the netduino 4.1 SDK
Any help would be greatly appreciated.

Cheers,
-Fabien.

#8 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 22 December 2010 - 07:13 PM

I find myself in the same situation where VS2010 fails deploying to the netduino and only shows "Error 1 An error has occurred: please check your hardware."


How big is your application? The size should be displayed in the Output window when you compile it... This error will also occur if it's too big to fit into flash (which would occur if, say, one added a huge assembly or two to a project).

Chris

#9 Fabien Royer

Fabien Royer

    Advanced Member

  • Members
  • PipPipPip
  • 406 posts
  • LocationRedmond, WA

Posted 22 December 2010 - 07:36 PM

Hi Chris, Here's a listing of the assemblies straight from the \debug directory (w/o the .pdb files): 12/16/2010 07:34 PM 5,120 SecretLabs.NETMF.IO.dll 07/28/2010 12:00 AM 5,632 SecretLabs.NETMF.Hardware.dll 07/28/2010 12:06 AM 7,168 SecretLabs.NETMF.Hardware.Netduino.dll 12/21/2010 03:16 PM 11,264 cartridge.exe So, the application and its dependencies add up to ~29.2KB which should not be an issue, right?

#10 Fabien Royer

Fabien Royer

    Advanced Member

  • Members
  • PipPipPip
  • 406 posts
  • LocationRedmond, WA

Posted 22 December 2010 - 08:51 PM

Ok, I figured it out! It turns out that some folders needed to be "excluded from the project". I excluded the folder highlighted in red in the attached picture and I was able to deploy the application to the board again. This is a very obscure error and a misleading message from VS.

Attached Files



#11 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 22 December 2010 - 09:33 PM

Ok, I figured it out! It turns out that some folders needed to be "excluded from the project".


So were those resources too big?

Chris

P.S. Looks like a cool project!

#12 Fabien Royer

Fabien Royer

    Advanced Member

  • Members
  • PipPipPip
  • 406 posts
  • LocationRedmond, WA

Posted 22 December 2010 - 11:15 PM

So were those resources too big?

Chris

P.S. Looks like a cool project!


The resources are actually quite small and only add up to 719 bytes. So, that's wasn't the issue.

The project is indeed a fun one ;-)

#13 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1592 posts
  • LocationCzech Republic

Posted 22 December 2010 - 11:22 PM

The project is indeed a fun one ;-)

C64 Space Invaders on a LED Matrix display?

#14 Fabien Royer

Fabien Royer

    Advanced Member

  • Members
  • PipPipPip
  • 406 posts
  • LocationRedmond, WA

Posted 23 December 2010 - 07:00 PM

C64 Space Invaders on a LED Matrix display?


Lol! That's one possible application for the project ;-)

#15 Takao

Takao

    New Member

  • Members
  • Pip
  • 2 posts

Posted 27 December 2010 - 05:06 AM

I have same message on my screen. "An error has occurred: please check your hardware" Using Japanese Win vista + netduino. What this message mean? Takao

Attached Files



#16 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 27 December 2010 - 05:19 AM

What this message mean?


Hi Takao,

What device have you selected for deployment (in Project Properties > .NET Micro Framework > Target)?

Also, what type of Netduino do you have?

Welcome to the Netduino community,

Chris

#17 Takao

Takao

    New Member

  • Members
  • Pip
  • 2 posts

Posted 27 December 2010 - 05:37 AM

Hi Takao,

What device have you selected for deployment (in Project Properties > .NET Micro Framework > Target)?

Also, what type of Netduino do you have?

Welcome to the Netduino community,

Chris



Hi, chris,

Thank you for very quick answer.
Then, I re-start my PC then It is now the blink sample working. No-problem.
I will try to use your netduino for this,

http://www.rcgroups....&postcount=2165

Takao

#18 Bonnie

Bonnie

    New Member

  • Members
  • Pip
  • 1 posts

Posted 07 September 2012 - 02:44 AM

This same thing happened to me tonight... what fixed my problem was just creating a new project. -Bonnie

#19 DannyC

DannyC

    New Member

  • Members
  • Pip
  • 9 posts
  • LocationFort Lauderdale, FL

Posted 25 September 2012 - 04:52 PM

This same thing happened to me tonight... what fixed my problem was just creating a new project.

-Bonnie


Was having the same problem with my Netduino Go and a new project resolved the problem. Thanks Bonnie.
DannyC

#20 shiv.kumar

shiv.kumar

    Advanced Member

  • Members
  • PipPipPip
  • 32 posts

Posted 20 April 2014 - 08:29 AM

I just bought a NetDuino Plus 2

Got things up and running with VS 2013.

Build a few applications and all was well.

Then I tried flashing the new firmware......

 

I went through the process described and everything seemed to go well. No errors. I couldn't choose the Verify option at the time of flashing the firmware - it said something to the effect of being in dfu mode.

 

When attempting to deploy code to my Netduino, I'm getting the error mentioned in the original post and I've tried the suggestions that pertain. However, it looks like I need to re-flash the firmware but my Netduino needs to be in a state such that I can't

 

When I run MFDeploy

I sees the USB device

 

If I do a Ping I see

 
Pinging... TinyBooter
 
If I do Target | Device Capabilities I get
Not Supported
 
If I do Plug-in | Debug | Show Device Info I get
Device is not valid
 

What do I do from here?

 

Any help would be greatly appreciated.

 

Shiv






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.