Closed Vinz1911 closed 3 years ago
I've just pushed a potential fix. I haven't tested on Windows or Mac yet.
I used dfu restore + technic hub firmware <- is this the correct firmware?
No, you need to use the primehub
firmware with the SPIKE Prime hub.
The usual flow is:
# back up the official LEGO firmware
pybricksdev dfu backup my_backup.bin
# flash the Pybricks firmware
pybricksdev flash primehub-firmware.zip
It doesn't look like dual-boot is an option with pybricksev at this time.
Thank you for the fast reply :) I'm a bit confused, where can I find the latest build for the Primehub?
I will try, thank you very much. That's not a problem, I don't need the Dual Boot Option.
You can find the latest builds here: https://github.com/pybricks/pybricks-micropython/actions/workflows/build.yml?query=branch%3Amaster
Click on the most recent (top) build and scroll down to "Artifacts".
Hi @dlech
Your fix is working well :) It was possible to flash the firmware now without any problems.
dfu-util: Warning: Invalid DFU suffix signature dfu-util: A valid DFU suffix will be required in a future dfu-util release!!! Opening DFU capable USB device... ID 0694:0011 Run-time device DFU version 011a Claiming USB DFU Interface... Setting Alternate Setting #0 ... Determining device status: state = dfuIDLE, status = 0 dfuIDLE, continuing DFU mode device DFU version 011a Device returned transfer size 2048 DfuSe interface name: "LEGO LES HUB " Downloading element to address = 0x08008000, size = 342977 Erase [=========================] 100% 342977 bytes Erase done. Download [=========================] 100% 342977 bytes Download done. File downloaded successfully
But it was not possible to start the Primehub just with the Pybricks firmware for the Primehub. Do we need the Dualboot to run the Pybricks Firmware ?
But I think the Bug can be closed :)
What command did you run?
i flashed it with:
pybricksdev dfu restore primehub-firmware.zip
That will just copy the .zip file directly, which doesn't work. Use pybricksdev flash primehub-firmware.zip
instead.
pybricksdev dfu restore my_backup.bin
will restore the firmware backed up with pybricksdev dfu backup my_backup.bin
.
Awesome! Everything works now as expected :)
Thank you!!
Hi @dlech @laurensvalk
I have a question about the flashing process for the PrimeHub. Personally I'm not a big fan of chrome or using a web ide. I write my code directly on my Mac. so i played a little bit with pybricksdev and it work like charm with the technic hub. I would like to know If it's possible to also work with the Primehub and pybricksdev. I installed dfu-util but I run in an issue (I used dfu restore + technic hub firmware <- is this the correct firmware?) :
Maybe you can light up me here :) Thanks and best regards.