drone-os/drone-book

Black magic probe firmware installation fails + workaround

hegza opened this issue · 1 comments

hegza commented

I'm going through the tutorial with the same hardware on Arch Linux. The BMP from a bluepill step fails at "Flashing Firmware" with dfu-util: Last page at 0x080147db is not writeable.

I got it working by running the firmware upgrade tool provided with the blackmagic repository, in blackmagic/:

$ cd upgrade
$ make PROBE_HOST=swlink
$ ./blackmagic_upgrade

PS: a couple of the steps deviate on Arch Linux w.r.t. Ubuntu 18. Would you mind me making a PR on that?

hegza commented

Nevermind. It was in fact caused by the fact that the udev rules created the symlinks with super user permissions, and that caused the flashing to fail in userspace. I made the udev rules create the symlinks with correct permissions instead.