Is anyone using MBED successfully with Ubuntu 10.4?
After an initial session a couple days ago that went well I'm having nothing but frustration. At that time I plugged the MBED into a USB port. It opened the Gnome File Browser for the USB storage device, MBED. I clicked on the HTM file which started up Firefox(v3.6.11). I signed up. Downloaded the HelloWorld program. Copied it the the MBED storage device. Hit the reset button, it ran. Then I tried out the compiler and made, downloaded, copied to the MBED, hit the button and ran a few simple LED blinking programs (naming them "mytest1", "mytest2", etc.). So I was happy and went out and bought a breadboard and a few "sensors" to do some more serious experimentation.
But today after 5 hours of trying I'm getting (almost) nowhere. I'm having major difficulties getting binary programs to consistently copy over to the MBED storage device. Sometimes I can get a complete and successful transfer. But most of the time the transfer never completes or it sits there for literally a minute or two before it completes (sometimes it has then transferred successfully and I can run it, but a lot of time it seems like it has completed but when I go to run it nothing happens).
I've tried copying binaries using both the GNOME File Browser GUI and also directly from the command line (i.e. - cp -a ~/Downloads/mytest1_xxxx.bin /media/MBED). I've tried several command line incantations using the "sync" command to try and make things complete (i.e. - sync, sudo sync, sudo su "followed by" sync, etc.). If a "cp" command is hung in one terminal window and I try to "sync" from another terminal window both will just sit there not returning. Sometimes after a minute has passed I'll see the blue status LED on the MBED finally flicker and both terminals will return to prompts (and sometimes the binary successfully has transferred at that point and I can run it). Other times both terminals will set there frozen forever and I'll just have to close them. Then in some cases when I go back to look at the MBED storage device it might have the binary file but with a 0 byte size. At this point I'm also wondering if the file system on the MBED has been corrupted beyond repair (since I've had to abort so many writes to it).
I've seen a few other posts on the forums and articles in the wiki that talk about this type of problem (i.e. - writes to the MBED don't complete immediately). I've already tried and then backed out a change to my "fstab" (i.e. - adding this line at the end, "/dev/sdc /media/MBED vfat rw,user,sync 0 0"). It didn't really seem to change/help anything.
I'm guessing this is all a problem with the various layers of "automatic file systems" that Linux/Ubuntu uses to deal with removable storage devices. But I don't know where to start in trying to diagnose or fix it.
If someone could give me a workaround (I don't mind using the command line or writing a script) that would bypass all that crap so I could just manually mount the thing and get on with using it, I'd be very appreciative. Thanks for listening to my rant :-)
Is anyone using MBED successfully with Ubuntu 10.4?
After an initial session a couple days ago that went well I'm having nothing but frustration. At that time I plugged the MBED into a USB port. It opened the Gnome File Browser for the USB storage device, MBED. I clicked on the HTM file which started up Firefox(v3.6.11). I signed up. Downloaded the HelloWorld program. Copied it the the MBED storage device. Hit the reset button, it ran. Then I tried out the compiler and made, downloaded, copied to the MBED, hit the button and ran a few simple LED blinking programs (naming them "mytest1", "mytest2", etc.). So I was happy and went out and bought a breadboard and a few "sensors" to do some more serious experimentation.
But today after 5 hours of trying I'm getting (almost) nowhere. I'm having major difficulties getting binary programs to consistently copy over to the MBED storage device. Sometimes I can get a complete and successful transfer. But most of the time the transfer never completes or it sits there for literally a minute or two before it completes (sometimes it has then transferred successfully and I can run it, but a lot of time it seems like it has completed but when I go to run it nothing happens).
I've tried copying binaries using both the GNOME File Browser GUI and also directly from the command line (i.e. - cp -a ~/Downloads/mytest1_xxxx.bin /media/MBED). I've tried several command line incantations using the "sync" command to try and make things complete (i.e. - sync, sudo sync, sudo su "followed by" sync, etc.). If a "cp" command is hung in one terminal window and I try to "sync" from another terminal window both will just sit there not returning. Sometimes after a minute has passed I'll see the blue status LED on the MBED finally flicker and both terminals will return to prompts (and sometimes the binary successfully has transferred at that point and I can run it). Other times both terminals will set there frozen forever and I'll just have to close them. Then in some cases when I go back to look at the MBED storage device it might have the binary file but with a 0 byte size. At this point I'm also wondering if the file system on the MBED has been corrupted beyond repair (since I've had to abort so many writes to it).
I've seen a few other posts on the forums and articles in the wiki that talk about this type of problem (i.e. - writes to the MBED don't complete immediately). I've already tried and then backed out a change to my "fstab" (i.e. - adding this line at the end, "/dev/sdc /media/MBED vfat rw,user,sync 0 0"). It didn't really seem to change/help anything.
I'm guessing this is all a problem with the various layers of "automatic file systems" that Linux/Ubuntu uses to deal with removable storage devices. But I don't know where to start in trying to diagnose or fix it.
If someone could give me a workaround (I don't mind using the command line or writing a script) that would bypass all that crap so I could just manually mount the thing and get on with using it, I'd be very appreciative. Thanks for listening to my rant :-)