sinobitorg / hardware

Hardware designs for the sino:bit
MIT License
100 stars 12 forks source link

Unable to upload program from Aduino IDE on Mac #15

Open technoblogy opened 4 years ago

technoblogy commented 4 years ago

When I try and upload a program, such as the Blink example, via USB, I get:

Open On-Chip Debugger 0.10.0-dev-gdc53227 (2016-04-09-13:45)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
debug_level: 0
swd
cortex_m reset_config sysresetreq
adapter speed: 1000 kHz
Error: unable to find CMSIS-DAP device
Error: No Valid JTAG Interface Configured.
Error: No Valid JTAG Interface Configured.

I'm using the Arduino IDE 1.8.12 on a MacBook Pro running MacOS High Sierra (10.13.6). I have no problems trying the same thing on a BBC Micro:bit.

Any suggestions?

technoblogy commented 4 years ago

Since posting this I discovered the issue by @tatzelbrumm:

Is there a maximum USB cable length for reliable transmission? #9

No USB cable was supplied with the Sino:bit, but I also have a Calliope mini and tried the cable that came with that, and at last I can upload programs successfully to the Sino:bit.

I've since tried several USB cables:

Yellow Calliope mini cable (7" or 180mm) - works Black USB cable (4" or 100mm) - works Black USB cable (9" or 230mm) - doesn't work Black USB cable (18" or 460mm) - doesn't work

These all work on all my other boards.

technoblogy commented 4 years ago

Even with a short USB cable (4" or 100mm) I'm still having problems. After using the Sino:bit for 5 or 10 minutes the USB port disconnects, and the MICROBIT drive is ejected from the computer.

Does anyone have any suggestions for fixing this? Perhaps there is a modification I can make to the board to make the USB port more reliable?