Hi all, I have a myriad of problems here and I feel like they are mostly related to issues dealt with in this thread.
For starters, my environment is Ubuntu 9.10. I just got a Maple board and it had '27' written on the anti-static bag. I had tried this on windows but could not get it working. Also, I am using the openjdk and I am running the ide as root. Now onto the issues...
First off, when I first powered up the board, I don't think it ever ran the 'default user code'. It would go through the startup process, quick blinks then slow blinks, then the LED would just remain lit. I am assuming the default user code is some kind of blink program?? so this is some kind of mistake?? After trying to program to RAM, it now starts up and blinks at ~3-4 times a second. I am not sure if this is an assertion failure?? This started occurring the first time I got a successful restart from the ide. That is the real problem. I can't get my modified blink program onto the board...
I created my own copy of the blink sketch and changed the on and off values to 2000 and 500 for an obvious visual uniqueness, then i set the board to write to RAM, then I set the serial port to ttyACM0. I attempted an upload. The code compiled fine and here is the end of the message:
............
Binary sketch size is reported above. Check it against a 17000 byte maximum)
Loading via dfu-util
Resetting to bootloader via DTR pulse
Error inside Serial.serialEvent()
java.io.IOException: Input/output error in nativeavailable
at gnu.io.RXTXPort.nativeavailable(Native Method)..........
The rest of this Java stack trace appears to be similar to coreyfro's. Mine also ends with the same "No DFU device found" message. Trying again at this point results in this message:
Binary sketch size is reported above. Check it against a 17000 byte maximum)
Loading via dfu-util
Resetting to bootloader via DTR pulse
Reset via USB Serial Failed! Did you select the serial right serial port? Or perhaps youre in perpetual bootload mode, continuing to attempt dfu programming anyway...
No DFU capable USB device found
dfu-util - (C) 2007 by OpenMoko Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY
At this point I checked the Tools->Serial Port option and now I have an unchecked ttyACM1. It appears that everytime the board resets it switches ports and that number is increased.
I tried fiddling with the Delay After Reset field as suggested but that didn't get me anywhere. Any help would be greatly appreciated. I can provide more info if needed.