virtualabs / btlejack-firmware

Btlejack firmware for BBC Micro:Bit
MIT License
46 stars 28 forks source link

Does not work with my Micro:Bit #8

Open tom-x1 opened 5 years ago

tom-x1 commented 5 years ago

Tried to flash my BBC Microbit with the precompiled .hex, but got the error:

In application programming write failed.

Content of details.txt:

# DAPLink Firmware - see https://mbed.com/daplink Unique ID: 0000000051114e450017800d000000310000000097969901 HIC ID: 97969901 Auto Reset: 0 Automation allowed: 1 Overflow detection: 0 Daplink Mode: Bootloader Bootloader Version: 0243 Git SHA: b403a07e3696cee1e116d44cbdd64446e056ce38 Local Mods: 0 USB Interfaces: MSD Bootloader CRC: 0x32eb3cfd Interface CRC: 0x3f2b7e12 Remount count: 1

virtualabs commented 5 years ago

Is your Micro:Bit in maintenance mode, as described here: https://www.mbed.com/en/platform/hardware/prototyping-production/daplink/daplink-on-kl26z/ ? You just have to plug your Micro:Bit to your computer (without pressing the reset button), and a MICROBIT mass storage device will appear and you can flash it with this firmware.

tom-x1 commented 5 years ago

Thank you for your response... I think I've tried every possible variation:

Everything fails. The only difference is that on the raspberry I find a timeout error in the FAIL.TXT, on my Windows Computers the error message above appears in the FAIL.TXT.

It is possible to flash the newest genuine BBC microbit firmware and do a rollback to older versions without any problems. So the flashing process itself is working. Could it be, that I have a newer hardware revision which is not working with your firmware?

PS: There is a Version number von my microbit: v1.5

virtualabs commented 5 years ago

That may be possible, but I tried with all the Micro:Bit I have (even with some of them I received recently), and I had no issue at all. I need to dig deeper.

tom-x1 commented 5 years ago

In the meanwhile I got it working. But it's strange... after giving up any tries to flash your firmware, I just wanted to play around with the micro:bit like it is intended (the micro:bit was brand new and I have never seen this type of hardware before). So i've created a little program via the micro:bit website and flashed my micro:bit with it. Everything worked fine...

After playing around with it I gave your firmware another try and voila, it worked without any problems. So my conclusion is that it is maybe neccessary, to flash at least once a "genuine" micro:bit firmware on the device before trying to flash yours?

ikarus23 commented 3 years ago

Had the exact same issue. The solution: