MAKEFILE BLACKMAGIC
Alfa16bravo opened this issue · comments
hello, when compiling with makefile it generates blackmagic.bin and blackmagic.hex but no blackmagic.dfu. here is the output with mys2
I use the command : make PROBE_HOST=hydrabus
Memory region Used Size Region Size %age Used
rom: 133924 B 1 MB 12.77%
ram: 5956 B 128 KB 4.54%
OBJCOPY blackmagic.bin
OBJCOPY blackmagic.hex
-
You need to patch the file
blackmagic\src\platforms\hydrabus\Makefile.inc
Replacing the lineall: blackmagic.bin blackmagic.hex
byall: blackmagic.bin blackmagic.dfu
See blackmagic_hydrabus_dfu.patch -
In msys2 install python and python-pip (and also python) and intelhex required to create the dfu
pacman -S python python-pip
pip install intelhex
- Rebuild all
make clean
make PROBE_HOST=hydrabus
That will output
...
Memory region Used Size Region Size %age Used
rom: 131652 B 1 MB 12.56%
ram: 5924 B 128 KB 4.52%
OBJCOPY blackmagic.bin
OBJCOPY blackmagic.hex
Creating blackmagic.dfu
Unfortunately latest version of blackmagic even if it compile (tested with GCC ARM 10 2020q4) when the dfu is flashed it does not start correctly (tested with Windows11 Pro) with "Device failed enumeration":
Windows has stopped this device because it has reported problems. (Code 43)
The USB device returned an invalid USB device descriptor.
For information I do not have that issue of USB enumeration with same computer & same HydraBus with older version "Firmware 1.5-00319-g49390fe-dirty, build 20150305"
See full archive for reference: blackmagic_branch_hydrabus_Firmware 1.5-00319-g49390fe-dirty.zip
thank you, I have the .dfu but like you, an enumeration problem on windows 11, I flashed hydrabus with the dfu file "Firmware 1.5-00319-g49390fe-dirty, build 20150305" and it works. I had to use zadig to install drivers for gdb server and uart port (cdc usb serial).