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.
Are there any known issues with this release and SD cards? I am having a lot of issues with code that worked fine for me in the past (recompiled with the latest .NETMF 4.3 and Netduino 4.3 SDK and using VS 2012 on an NP2). I keep having issues with corrupt files, files that won't write out and then once is a while it seems to work fine but mostly it fails. Below is the simple code I am using to create the file and then the code that I use to append records. My card is a 2GB SanDisk. The behavior has been very strange. I can provide detail if it will help.
using (var filestream = new FileStream(@"SDMY_LED_LOG.CSV", FileMode.Create)){ StreamWriter streamWriter = new StreamWriter(filestream); streamWriter.WriteLine("Status,DateTime"); streamWriter.Close();}
using (var filestream = new FileStream(@"SDMY_LED_LOG.CSV", FileMode.Append)){ StreamWriter streamWriter = new StreamWriter(filestream); streamWriter.WriteLine(statusText + "," + DateTime.Now.ToString()); streamWriter.Close();}
Are there any known issues with this release and SD cards? I am having a lot of issues with code that worked fine for me in the past (recompiled with the latest .NETMF 4.3 and Netduino 4.3 SDK and using VS 2012 on an NP2).
There were quite a few changes in NETMF 4.3 but I'm not aware of any that would cause this. If you run your code under NETMF 4.2, does it work?
Also--if you can create a consistent repro--for either 4.2 RTM or 4.3 beta--we will try to repro it here and dig into the problem.
Chris
Hi Chris - I plan to switch back over to NETMF 4.2 so I can see if the issue is still there. I just wanted to check first to see if there were any known issues that were reported.
I will let you know the results.
Thanks!
Don
Hi Don,There were quite a few changes in NETMF 4.3 but I'm not aware of any that would cause this. If you run your code under NETMF 4.2, does it work?
Also--if you can create a consistent repro--for either 4.2 RTM or 4.3 beta--we will try to repro it here and dig into the problem.
Chris
Hi Don,There were quite a few changes in NETMF 4.3 but I'm not aware of any that would cause this. If you run your code under NETMF 4.2, does it work?
Also--if you can create a consistent repro--for either 4.2 RTM or 4.3 beta--we will try to repro it here and dig into the problem.
Chris
Hi Chris - Sorry this has taken a while but just got back to this today. I uninstalled all v4.3 software and installed v4.2 of the .NETMF and Netduino SDK. I erased and installed the v4.2.2 firmware on my NP2 and my NP has v4.2.0.1.
The same behavior happened as described above with my NP2 and corrupt files. The NP works like a champ so I am led to believe that there is an issue with my NP2? I am not sure where to begin figuring out what that might be.
If you have any suggestions of things I can provide to help solve this or other things I can try please let me know.
Hi Don,
The best place to starting diagnosing an issue like this is with a different MicroSD card. Preferably a <=2GB one, to isolate any SDHC issues. And first formatted using a PC.
Do you happen to have another MicroSD card there?
Chris
Hi Don,
The best place to starting diagnosing an issue like this is with a different MicroSD card. Preferably a <=2GB one, to isolate any SDHC issues. And first formatted using a PC.
Do you happen to have another MicroSD card there?
Chris
Hi Chris - I do not. All I have is a couple of 4GB cards. I am however willing to aquire an additional 2GB to test. Can you give me a manufacturer and model # of a card that you currently have working with the NP2? A link would be helpful.
SanDisk 2GB MicroSD. They've worked 100% for us, and are what we use to test every Netduino Plus 2 before it leaves Secret Labs.
Chris
Thanks Chris. I have ordered it and will report back the results. Quick question, I usually just format with a PC and do Fat file system w/ default allocation sizes. Is there any steps that you all take differently to format?
SanDisk 2GB MicroSD. They've worked 100% for us, and are what we use to test every Netduino Plus 2 before it leaves Secret Labs.
Chris
Hi Chris - I received the new SD card and have the same results as before. ND1 works great and ND2 fails with a corrupt file. Any thoughts on next steps?
Just wanted to bump this topic. Is this something that needs to be fixed in the firmware or is there something else I need to try?
Hi Chris - I received the new SD card and have the same results as before. ND1 works great and ND2 fails with a corrupt file. Any thoughts on next steps?
Just wanted to bump this topic. Is this something that needs to be fixed in the firmware or is there something else I need to try?
Hi Don,
Here's what we use:
http://www.amazon.co...sk 2gb micro sd
SanDisk 2GB MicroSD. They've worked 100% for us, and are what we use to test every Netduino Plus 2 before it leaves Secret Labs.
Chris
Chris - Am I ever going to get some acknowledgement on this? I have been waiting for a few months now. As I stated before, I understand there are issues and time and resources are needed to resolve, but that doesn't mean that you should go dark and not provide an update. Can you please address the issue and what you know about it?
Can you create a small project which reproduces this (ten or fewer lines of code) and attach it to your post? We'll be happy to take a look; we just don't have an official bug filed on it. WIth your attachment...I'll file a bug report and we'll have an engineer take a look at it.
Sorry that your previous post got overlooked in the .NET MF 4.3 beta topic; we've split it out now so we can help address the issue.
This is my first time to post on this forum, i am interested in Netduino plus 2 but i need to use micro SD more than 2G, do you have any plan in the near future to support it?