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.

alanb's Content

There have been 28 items by alanb (Search limited from 13-May 23)


By content type

See this member's


Sort by                Order  

#8964 SD Card Issues.

Posted by alanb on 04 February 2011 - 12:30 AM in Netduino 2 (and Netduino 1)

alanb,

Do you get \SD? Also, Netduino Plus (and .NET MF's SD_SPI driver) support cards up to 2GB. 4GB _may_ work, but we recommend <=2GB.

If you don't see \SD, then a valid card is not inserted.

Chris

No didnt see /SD so I will get a 2GB card .
Alan



#8933 SD Card Issues.

Posted by alanb on 03 February 2011 - 06:43 PM in Netduino 2 (and Netduino 1)

Hi,
I put a SanDisk 4GB SD card (in hope) into my N+ and then ran
VolumeInfo[] vols = VolumeInfo.GetVolumes();
foreach (VolumeInfo vi in vols)
{
  Debug.Print(vi.RootDirectory.ToString());
  Debug.Print(vi.TotalFreeSpace.ToString());
  Debug.Print(vi.IsFormatted.ToString());
  Debug.Print(vi.VolumeID.ToString());
}

OutputPort SdPower = new OutputPort((Cpu.Pin)25, false); // ensure that the SD card is powered

InputPort sdDetected = new InputPort((Cpu.Pin)57, false, Port.ResistorMode.PullUp);
Debug.Print("sd detected: " + (!sdDetected.Read()).ToString());
sdDetected.Dispose();

And got

\ROOT
0
False
0
\WINFS
20000000
True
1
sd detected: True

But my point here is that I got sd detected: True in both instances i.e. when the card was in and again when ejected!! I expected the result to be False with no card inserted. To check I unplugged the N+ before running the code again but got the same result. Is this to be expected? Is \ROOT the card ?

I bought the card yesterday at the local supermarket, I assumed it was pre formatted!!



#8943 SD Card Issues.

Posted by alanb on 03 February 2011 - 07:55 PM in Netduino 2 (and Netduino 1)

Sorry for the Newbie question but which assembly contains Directory. I cant seem to find it. Alan



#8945 SD Card Issues.

Posted by alanb on 03 February 2011 - 08:00 PM in Netduino 2 (and Netduino 1)

Sorry, Me being stupid, I had not added System.IO to the references. Ran it and just got \ROOT and \WINFS with the SD card both in and out.



#8755 Help required with Update firmware to 4.1.1

Posted by alanb on 31 January 2011 - 04:48 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi, I got a Netduino Plus at Christmas so am a newcomer. I tried to update the 4.1.0.5 firmware to 4.1.1 Alpha, followed the instructions. But when I press deploy I get the messagebox with the progress bar saying Connecting to TintBooter but it just hangs there with no progress. Can someone tell me what is going wrong and how to fix it? Thanks Alan



#9215 Help required with Update firmware to 4.1.1

Posted by alanb on 09 February 2011 - 11:01 AM in Netduino Plus 2 (and Netduino Plus 1)

alanb,

It's really weird that you're getting "\ROOT" and "\WINFS" at all. Which firmware build are you using? The special "build #3" that I sent you?

Also, is the card formatted as FAT16 or FAT32?

Chris


Yes I am using the special build you sent. I will reflash the old 4.1.0.5 today and try that. The SD card was formatted on my PC as FAT so I take that to be FAT16. I do know that when mounted on a USB carrier my pc reports the SD disk as healthy.

At present I do not know if it is the firmware or my N+ hardware that is at fault (if it is the hardware I will want to return my N+ to the supplier to be swapped under warranty for a fully working board).

I am under the opinion that perhaps secret labs should think about makeing some short test programs available (not necessarily in c#) that will enable users to establish definitively, if at all possible, whether a problem is hardware or software related. I think this could apply to the SD card, the Network interface etc.

For example is my short bit of code that doesnt report \SD a definitive test for the SD reader/firmware? If not what code would be?

Alan



#9223 Help required with Update firmware to 4.1.1

Posted by alanb on 09 February 2011 - 02:01 PM in Netduino Plus 2 (and Netduino Plus 1)

Chris, No I dont have any other microsd cards. Regarding drivers where are the pc drivers for the N+ card and are they different to those for the other netduinos? I have just uploaded vs express onto another pc (atom) and need the driver installing. I was thinking that perhaps I may have downloaded the wrong driver onto my pc. Alan



#9542 Help required with Update firmware to 4.1.1

Posted by alanb on 14 February 2011 - 06:20 PM in Netduino Plus 2 (and Netduino Plus 1)

Ok, Now I am really embarrased as I have finally found out what was going wrong. (The attachment says it all). It seems that in the program that ran and gave me errors I had somehow inadvertantly switched the .Net Micro Framework Deployment Transport option to Emulator!!! Or perhaps mistakenly set the original project up as emulator. (In my defence I can only plead weakly that this was one of my first goes and that at the same time I had issues with c# deployment hanging). In retrospect that is obviously why I kept getting the filesystems I did. So profuse apologies to Chris and all at Secret labs and as far as I am concerned this thread is now closed may it quickly fade away.

Attached Thumbnails

  • stupid.jpg



#9357 Help required with Update firmware to 4.1.1

Posted by alanb on 12 February 2011 - 01:27 PM in Netduino Plus 2 (and Netduino Plus 1)

Sorry, I got it wrong. There is no problem with reading the SD card. It was pointed out to me that I should change
Directory.SetCurrentDirectory("\\SD");

To
Directory.SetCurrentDirectory(@"\SD");
When I did this it all worked fine.

Which is the embarrassed emoticon, imagine it here



#9323 Help required with Update firmware to 4.1.1

Posted by alanb on 11 February 2011 - 05:06 PM in Netduino Plus 2 (and Netduino Plus 1)

Reflashing back to 4.1.0.5 still gives same result



#9228 Help required with Update firmware to 4.1.1

Posted by alanb on 09 February 2011 - 03:51 PM in Netduino Plus 2 (and Netduino Plus 1)

I have just uploaded vs express onto another pc (atom)


Ran the code on atom pc and got the same results as my normal pc see attachment earlier.
Alan



#9159 Help required with Update firmware to 4.1.1

Posted by alanb on 08 February 2011 - 12:33 PM in Netduino Plus 2 (and Netduino Plus 1)

I cannot get the SD disk working. I am now trying a Transcend 2GB disc formatted with FAT and reported by my pc to be healthy. However the disc is not recognized at all. See code fragment below which includes code copied from another posting.
   while (true)
   {
       Debug.Print("Loop " + i.ToString() + "\n");
       string[] dirs = Directory.GetDirectories(@"\");
       foreach (string s in dirs)
           Debug.Print(s);
               
       i++;
       try
       {
           Directory.SetCurrentDirectory("\\SD");
       }
       catch (Exception)
       {
           Debug.Print("Exception occurred while calling SetCurrentDirectory");
       }
       Debug.Print("Current directory (after): " + Directory.GetCurrentDirectory());

       Thread.Sleep(8000);
   }
See attached file for output. I removed/re-inserted the SD card between iterations of the loop but it seems to make no difference. So can you tell if my SD card reader working or not or is it a software issue?

Attached Files




#8768 Help required with Update firmware to 4.1.1

Posted by alanb on 31 January 2011 - 08:02 PM in Netduino Plus 2 (and Netduino Plus 1)

Well, I whilst waiting for a reply I tried reflashing my N+ following the instructions in the video from OZ. SAM-BA step was ok so then used mfdeploy which seemed to download ok but hung after deploying the ER-Flash and ER_CONFIG files saying Executing Application. So I unplugged the N+ and reattached. I was able to ping and got a reply indicating that 4.1.1 was installed. So I tried running a program from visual studio which had run ok under 4.1.0.5. This hung saying a reeboot was necessary. However if I unplugged the N+ and re attached again the program ran so it had been loaded, this happens consistently each time I ran the code. I saw at http://forums.netdui...the-bootloader/ that Kevinn seemingly had the same problem with 4.1.0.6. So thinking the problem may be with 4.1.1 I downloaded 4.1.0.6 and again reflashed the N+. However I get exactly the same problem with version 4.1.0.6 (see sceen image) which has been hanging for 30+ miniutes. So what should I do now go back to 4.1.0.5 is there a problem with my N+ or is it just operator error ? Alan

Attached Thumbnails

  • screen.png



#8917 Help required with Update firmware to 4.1.1

Posted by alanb on 02 February 2011 - 11:02 PM in Netduino Plus 2 (and Netduino Plus 1)

Chris, Tried all first with 4.1.0.5 TinyBooter build 3 was the one that worked in that vs debug deployment did not hang up all others did. So flashed 4.1.1 alpha 6 and tried that on build 3 again worked without hanging in vs. Also did not hang when used MFDeploy to clear code. I have attached output from vs and MFDEploy for 4.1.1 alpha 6. Just gone through vs debug , MFDeploy clear cycle half a dozen times without need to unplu/plugin N+. Havent tried any of the others do you want me to try all the other builds with 4.1.1 alpha6? By the way when using MFDEploy used to flash chip it still hangs up after finishing with Application executing message so I have to unplu/plug there but beginning to think that is an MFDeploy bug. You can catch me on Chat now.

Attached Files




#8769 Help required with Update firmware to 4.1.1

Posted by alanb on 31 January 2011 - 08:33 PM in Netduino Plus 2 (and Netduino Plus 1)

To add to above. I just reflashed 4.1.0.5 onto N+ and that works ok, no hang ups Alan



#8828 Help required with Update firmware to 4.1.1

Posted by alanb on 01 February 2011 - 07:34 PM in Netduino Plus 2 (and Netduino Plus 1)

Chris, Tried ubdating from 4.1.0.5 but MFDEploy hung waiting for bootloader so reflashed both 4.1.0.6 (and 4.1.0.6 48K just in case ) however both hung see snapshots.

Attached Thumbnails

  • 4.1.0.png
  • 4_1_0_6_48k.png



#8902 Help required with Update firmware to 4.1.1

Posted by alanb on 02 February 2011 - 08:14 PM in Netduino Plus 2 (and Netduino Plus 1)

Chris, I have received the builds. All contain config and flash. Which version of TintbootDecompressor do you wish me to try them with from 4.1.0.5 or from 4.1.0.6 ? Alan



#8834 Help required with Update firmware to 4.1.1

Posted by alanb on 01 February 2011 - 08:10 PM in Netduino Plus 2 (and Netduino Plus 1)

Chris, Sorry message above is not much help, as when reflashing 4.1.0.5 again I get the hanging initially in MFDeploy as with snapshots of 4.1.0.6 and have to unplug netduino and reattach. (had forgotten that). So I tried 4.1.0.6 RC1 again and unplugged and reattached. But then ran visual studio with small test app. The difference between 5 and 6 is that when running the program in 5 after downloading to the N+ the reboot is successful and the debugger continues and code runs. In version 6 the reboot hangs until the N+ is physically unplugged and re-attached. I have included a screenshot of running in version 5. When running version 6 nothing appears on the vs output window after the word rebooting until as I said the N+ is unplugged and then re-attached but obviously the debugger is not attached and it just exits. The code however is executed on the N+. Alan

Attached Thumbnails

  • reboot.png



#8814 Help required with Update firmware to 4.1.1

Posted by alanb on 01 February 2011 - 05:16 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi Alan,

Are you running inside a virtual machine? If not, what version of Windows are you using (and is it 32-bit or 64-bit)?

Chris


Chris,
I am running a 32bit version of XP with service pack 3 on an Esprimo with Intel core2 CPU 6300 @ 1.86 GHz showing 2.99 GB of ram although there is 5GB on board. I usually run Ubuntu but installed the only version of XP I own which is the 32 bit version from a previous machine. Not running on a virtual machine.

Alan



#9538 Netduino Plus Firmware v4.1.1 ALPHA 7

Posted by alanb on 14 February 2011 - 05:22 PM in Netduino Plus 2 (and Netduino Plus 1)

Chris, Upgraded from alpha6 to alpha7 and all ok, booting code does not hang in vs deployment so no need for build3 any longer. :D Alan



#9638 Fixing wires into a netduino

Posted by alanb on 16 February 2011 - 06:48 PM in General Discussion

Hi, When I got an N+ for christmas, I also asked for a Screwshield see http://wingshieldind...s/screwshield/. This is two little pcbs that plug into either side of my N+ allowing for quick and easy connections. Mine needed soldering together before it can be used but I got my son to do that. Alan



#9292 Any experience using keypad in your project?

Posted by alanb on 11 February 2011 - 12:37 AM in General Discussion

Fabien, I hadnt thought of that, still fairly new to this hardware stuff. Can you get serially driven keypads quite cheaply? In any case I thoght that if my first preference keypad worked out ok, I would dedicate a processor to it connected to N+ serially. My output screen is serial. Alan



#9229 Any experience using keypad in your project?

Posted by alanb on 09 February 2011 - 04:09 PM in General Discussion

Hi, For my project I need to let the user enter data. So I need to use a keypad. I saw this http://www.sparkfun.com/products/8871 sealed membrane keypad. Or alternatively this http://www.sparkfun.com/products/8653. My preference would be the first one because the arrow keys etc would be useful. I just am interested if anyone has used either keypad and how easy each is to interface to the N+. There is an arduino forum discussion (http://www.arduino.c...um=1209003950/0) on using the second keypad but I can find nothing yet about using the sealed membrane keypad. Alan



#9263 Any experience using keypad in your project?

Posted by alanb on 10 February 2011 - 04:11 PM in General Discussion

Thanks Fabian, Unfortunately I need rather more keys that 0-9 # and * , I want to be able to enter decimal numbers so thats 0-9 and . also to move forwards / backwards in increments on a single button press so thats two more keys < and > also to start and stop moving continuously thats two more keys plus keys to select a couple of operating modes such as selecting the increment etc. So I reckon a minimum of 16 buttons are required. I guess I could use two pads but I would rather have the buttons in one pad. Alan



#9318 Any experience using keypad in your project?

Posted by alanb on 11 February 2011 - 11:01 AM in General Discussion

Not really, I am building a stand alone stepper controller for my rose engine, which will not be connected to my network except to download some tables. I got the N+ to use the SD card!! and network connection for downloading. But control of the machine is via keypad buttons. Alan




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.