micro:bit unable to open CMSIS-DAP/No Valid JTAG Interface

Using windows10 and Arduino IDE, can compile but can't upload to code to micro:bit.
Please help

Arduino: 1.8.5 (Windows 10), Board: "BBC micro:bit, None"

Open On-Chip Debugger 0.10.0-dev-00254-g696fc0a (2016-04-10-10:13)
Licensed under GNU GPL v2
For bug reports, read
debug_level: 2
Info : only one transport option; autoselect 'swd'
Warn : Transport "swd" was already selected
cortex_m reset_config sysresetreq
adapter speed: 1000 kHz
Error: unable to open CMSIS-DAP device 0xd28:0x204
Error: No Valid JTAG Interface Configured.
Error: No Valid JTAG Interface Configured.


Hi spycatcher2k,

Thank you for the comment.

Yes i did.

When I connect the micro:bit, I can see the board information via Arduino IDE.
If I disconnect, i can't see.

So it looks i connect it correctly.

Huh. I hadn't noticed that Arduino support was available on Micro:bit !
I got the same error as you about half of the time; usually trying two or three uploads in a row, one of them would work...