

![]() |
  | |||||||||||||
![]() |
|
![]() |
||||||||||||
![]() Help required with Update firmware to 4.1.1
Started by alanb, Jan 31 2011 04:48 PM
30 replies to this topic
#21
Posted 09 February 2011 - 11:07 AM
Alan,
Do you have any other MicroSD cards (perhaps a 256MB or 1GB card)?
Every Netduino Plus's SD card slot is tested (using .NET MF -- reading a file) before it ships to resellers. It's possible that it was damaged between then and when you received it, but highly unlikely. Most likely scenario is that the card isn't fully standards-compliant or that the .NET MF SD drivers don't like it.
All that said, let's see what we can do to get you up and running. Please let me know if you have another card. If not, I'll see what we can do to (a) get a Transcend 2GB card and/or (
![]() ![]()
#22
Posted 09 February 2011 - 02:01 PM
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
#23
Posted 09 February 2011 - 03:51 PM
Ran the code on atom pc and got the same results as my normal pc see attachment earlier. Alan
#24
Posted 11 February 2011 - 05:06 PM
Reflashing back to 4.1.0.5 still gives same result
#25
Posted 12 February 2011 - 01:27 PM
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
#26
Posted 12 February 2011 - 06:24 PM How odd - all the @ should do is to remove the need for the escape sequence. @"\SD" and "\\SD" should be the same. Could you expand on the reasoning for the change. Regards, Mark To be or not to be = 0xFF
Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life Follow @nevynuk on Twitter
#27
Posted 12 February 2011 - 10:22 PM
That is really odd. "\\SD" and @"\SD" should be compiled to identical bytecode.
Chris
#28
Posted 13 February 2011 - 04:41 PM
I'm also one of the doubters. I think the best way to get clarity on this issue is to have a new program that tries all the different options in the same run of the program, rather than changing the program each time and re-running.
I'd like you to try this program: using System; using System.IO; using Microsoft.SPOT; namespace NetduinoApplication17 { public class Program { public static void Main() { var rootsToTry=new[] { @"\", "\\", @"\\\\\CHRIS\\\WALKER\\??!%??\\\37337" //add other options you want to try here }; foreach(var root in rootsToTry) { try { var dirs=Directory.GetDirectories(root); Debug.Print(root+" has "+dirs.Length+" directories. They are:"); foreach(var dir in dirs) { Debug.Print("==> "+dir); } } catch(Exception e) { Debug.Print(root+" caused this exception: "+e.Message); } } } } } On my Netduino Plus (firmware (v4.1.1.0 a6)) I get this output: \ has 1 directories. They are: ==> \SD \ has 1 directories. They are: ==> \SD #### Exception System.ArgumentException - 0x00000000 (1) #### #### Message: #### System.IO.Path::NormalizePath [IP: 003f] #### #### System.IO.Path::GetFullPath [IP: 001a] #### #### System.IO.Directory::GetChildren [IP: 0004] #### #### System.IO.Directory::GetDirectories [IP: 0008] #### #### NetduinoApplication17.Program::Main [IP: 0035] #### A first chance exception of type 'System.ArgumentException' occurred in System.IO.dll \\\\\CHRIS\\\WALKER\\??!%??\\\37337 caused this exception: Exception was thrown: System.ArgumentException
#29
Posted 14 February 2011 - 06:20 PM
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 Files
#30
Posted 14 February 2011 - 06:24 PM
Ahahahahahah! Well, sh*t happens. Glad you figured it out!
#31
Posted 15 February 2011 - 12:08 AM
How funny. Yes, that does explain why you were getting the odd pathnames. ![]() Glad that everything is working for you now... Chris 0 user(s) are reading this topic0 members, 0 guests, 0 anonymous users | ||||||||||||||
![]() |
||||||||||||||
![]() |
|
![]() |
||||||||||||
![]() |
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ![]() |
||||||||||||
![]() |