


![]() |
  | |||||||||||||
![]() |
|
![]() |
||||||||||||
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.
Caffeine's ContentThere have been 22 items by Caffeine (Search limited from 16-July 24) #1299 Help updating Netduino firmware
I'm also getting some hanging issues with the netduino (which arrived this morning!) It will be fine for a couple of deployments or debugging, but then will cease to work.
Running the 4.1.0.2 firmware too.
Symptoms are variously:
I can deploy (the blinky app for example) (not debugging) but the code doesn't run (no blinking). This can be resolved by removing and reinserting the USB cable.
I can't deploy when debugging, the VS 2010 (express) output window says "rebooting",
![]() ![]() ![]() #1300 Help updating Netduino firmware
The same symptoms occur with the 4.1.0.1 firmware, so it's probably something peculiar to my PC here (Win XP SP3, VS 2010 Express). I'll try from my home PC tonight (VS2010 professional, Win7 64bit) On a positive note I've got an analog devices ADXL202 accelerometer, and a TAOS TSL2550 I2C light sensor working nicely. I'll work on my sparkfun OLED tonight... #1378 Help updating Netduino firmware
Well the debugging problems didn't occur on another PC (win XP SP3, VS2010 professional) so it's something related to my PC here... (considering it has VS2005 professional, VS2008 professional, VS2010 express, GCC, borland C++ builder and eclipse on it, that's not a surprise!)
#1664 How to fix deploying to netduino hanging
I have the same problem running 4.1.0.3 and the QFE1 bugfix. Running on XP SP3, virtual PC is installed but not running, and VS 2010 Express is running from the main OS. Pressing the button on the netduino doesn't fix it. Waiting till deployment is complete, VS gives a message along the lines of "The debugging target is not in an initialized state, rebooting..." but will sit there forever. If I unplug and replug the netduino when VS gives the "The debugging target is not in an initialized state, rebooting..." message, debugging goes ahead normally. Also, similar symptoms sometimes occur when stopping debugging, VS will sit there forever waiting for it. Unplugging the netduino hastens things along a bit. #1710 How to fix deploying to netduino hanging
No, I've moved on to the 4.1.1.0 Alpha to try my microSD shield... #1711 Netduino Firmware v4.1.1 ALPHA 1
Does this allow us to use cards greater than 2GB?
I have a microSD card shield from Sparkfun (http://www.sparkfun....roducts_id=9802) and a Sandisk 8GB microSD card and the code shown by Bob doesn't appear to work. Further to that, after deploying the following code, the LED doesn't flash (as per the while loop) and I have to use MFDeploy to erase the code before it will allow me to deploy or debug again. using System; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using System.IO; using SecretLabs.NETMF.IO; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.Netduino; namespace SDTest { public class Program { static OutputPort LED = new OutputPort(Pins.ONBOARD_LED, false); static bool LEDstate = false; public static void Main() { string root = "SD_Card"; StorageDevice.MountSD(root, SPI.SPI_module.SPI1, Cpu.Pin.GPIO_Pin12); string path = Path.Combine(root, "test.txt"); string content = "This is a test"; byte[] bytes = System.Text.Encoding.UTF8.GetBytes(content); File.WriteAllBytes(path, bytes); while (true) { LED.Write(LEDstate = !LEDstate); Thread.Sleep(100); } } } } When debugging, the 'StorageDevice,MountSD' line is reached and the debugger exits. Using the 4.1.1.0 Alpha firmware linked above, and the references are added to VS2010 correctly. Strange indeed... I'll see if anyone here has a microSD card smaller than 2GB. #1728 Netduino Firmware v4.1.1 ALPHA 1
Ahh that would explain some of my symptoms then. I should be able to try it tonight with a 128MB microSD card. The SparkFun MicroSD shield uses pin D8 for CS, will that need an update to the firmware or should it work with it hardcoded to D10? #1729 SD card sample
Works with a SparkFun MicroSD shield, with a wire connecting D8 and D10...
Used a Sandisk 2GB MicroSD card borrowed from a friend's phone ![]()
#1730 Netduino Firmware v4.1.1 ALPHA 1
Got it working as per this post ![]() Excellent! #1833 Compatible Shields and Accessories
Sparkfun microSD card shield works (with the 4.1.1 beta firmware) with D8 and D10 connected together (which shouldn't be required once the netduino allows specifying a card detect pin)
#2986 Wait...what's this?
Watching the formula 1 grand prix this morning, and browsing this forum at the same time (1:30 AM!), noted that little bird electronics had 4 'pluses' in stock and thought 'I'll pick one up when I get to work'...
Of course by the time I arrived at work they were oall sold out
![]() #3151 Wait...what's this?
I just bought the 'last' one from Proto-advantage (their site shows no stock now) I guess it redresses some of the imbalance from the US based people ordering from Little Bird Electronics ![]() #3305 A moment of silence for the fallen electronics...
That's an FFC cable (flat, flexible cable). You may be able to buy an appropriate FFC connector and breakout board to make it more user-friendly... #3308 Netduino Firmware v4.1.1 ALPHA 2
Works very well with the sparkfun microSD shield (again with D10 and D8 jumpered together for the card detect) and a nokia branded 128MB microSD card.
The exception handling with no card inserted is nice too. As above, I have to manually unplug and plug in the netduino when it comes up with the 'The debugging target is not in a initialized state; rebooting...' statement. Code: using System; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using System.IO; using SecretLabs.NETMF.IO; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.Netduino; namespace SDTest { public class Program { static OutputPort LED = new OutputPort(Pins.ONBOARD_LED, false); static bool LEDstate = false; static bool mounted = false; public static void Main() { try { StorageDevice.MountSD("SD1", SPI_Devices.SPI1, Pins.GPIO_PIN_D10); mounted = true; } catch (Exception Ex) { // Just trying out the exception handling Debug.Print(Ex.ToString()); } while (mounted) { string[] directories = System.IO.Directory.GetDirectories(@"\"); Debug.Print("directory count: " + directories.Length.ToString()); for (int i = 0; i < directories.Length; i++) { Debug.Print("directory: " + directories[i]); } string[] files = System.IO.Directory.GetFiles(@"\SD1"); Debug.Print("file count: " + files.Length.ToString()); for (int i = 0; i < files.Length; i++) { Debug.Print("filename: " + files[i]); if (files[i] == @"\SD1\HiLiam.txt") { FileStream fs = new FileStream(files[i], FileMode.Open, FileAccess.Read, FileShare.None, 512); StreamReader sr = new StreamReader(fs); Debug.Print("contents: " + sr.ReadToEnd()); fs.Close(); } } string path = Path.Combine(@"\SD1", "HiLiam.txt"); string content = "Got it working :)"; byte[] bytes = System.Text.Encoding.UTF8.GetBytes(content); File.WriteAllBytes(path, bytes); Thread.Sleep(1000); } } } } Output: directory count: 1 directory: \SD1 file count: 26 filename: \SD1\Always here.aac filename: \SD1\rm217_conpack_conf.cnfp filename: \SD1\SD Content Package sd_apac_tuw filename: \SD1\HiDermot.txt filename: \SD1\HiLiam.txt contents: Got it working :) filename: \SD1\Ralph.mp3 filename: \SD1\spiderpig.mp3 filename: \SD1\Belly dance.aac filename: \SD1\Com você.aac filename: \SD1\Cycle.aac filename: \SD1\Electronic.aac filename: \SD1\Glow.aac filename: \SD1\Nuance.aac filename: \SD1\Peal.aac filename: \SD1\Pick it up.aac filename: \SD1\Polaris.aac filename: \SD1\Roadster.aac filename: \SD1\Rock.aac filename: \SD1\Sunset.aac filename: \SD1\Tinkly.aac filename: \SD1\Image004.jpg filename: \SD1\Alma_Bay_Mel_Paddling.jpg filename: \SD1\Image005.jpg filename: \SD1\Image006.jpg filename: \SD1\Cleat.gif filename: \SD1\Image003a.jpg #3342 UART Shield
I'm currently jumpering my netduino to one of my other boards to hijack the FTDI USB chip on that board, for serial communication, and I got to thinking it would be better to have a UART shield for the netduino.
Does anyone make a UART shield? I've never used an arduino (native C++ on 'raw' AVR's for me) but I understand that the arduino USB connection is used both for programming and communications, so a UART shield isn't really necessary.
With that in mind I set about designing one. If there isn't one on the market I'll have to make my own I guess
![]() ![]() ![]() ![]() #3818 Did I Brick my Netduino Plus?
I had my netduino plus set to use DHCP for networking (which works well) but when the plus was powered up without the network cable, it wouldn't respond to any deploy etc in visual studio (although the bootloader ping and erase worked in MFDeploy)
Plugging in the network cable and / or changing to static IP sorted it out...
#14614 PCB design and manufacturing
Batch PCB uses GoldPhoenix in China for their manufacturing. I go directly to goldphoenix as for the boards I make it turns out much cheaper ($110 US for a 10x15in panel, double sided, pth, single sided silkscreen, no limit on holes etc)
The quality of the boards is generally very good. On the last order I did (for a full panel) they actually shipped me two panels because there was a small manufacturing error on one of the boards. They do do sanity checking too, a coupelof orders ago I forgot to include my nc drill file, they contacted me back within an hour of submitting the order to confirm whether I actually did want a board with no holes ![]() #15746 New Soldering Iron
I use a hakko 936, which has been discontinued, but the hakko stuff in general is very good.
#15769 UART Shield
#15950 New Soldering Iron
I have a general broad tip that I use for most work (including most SMD stuff even the fine pitch ones, good liquid flux makes it very easy) and a fine (0.2mm) point that I use for touching up or very fine SMD stuff. Get the hakko tip cleaning sponge (the gold looking steel wool style) and you'll be set. #16557 Lithium batteries
Easiest LiPo charger chip I've seen is the MAX1551 (http://www.maxim-ic....dex.mvp/id/4002)
#16558 UART Shield
So the boards arrived and I soldered one together (actually made two, had a minor brain explosion on the first one and put the FTDI chip in 90° out of position, oops!)
It almost works
![]()
| ||||||||||||||
![]() |
||||||||||||||
![]() |
|
![]() |
||||||||||||
![]() |
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ![]() |
||||||||||||
![]() |