Printer Model: n/a
MCU / Printerboard: Octopus Pro / F429 chip
klippy.log: not running
Describe your issue:
I want to flash my Octopus Pro board without having to resort to the SD card. I’m doing firmware development so the SD card is a real roadblock to getting things done. (just imagine turning your Voron 2.4 upside down 3 times an hour just to test something…)
The klipper instructions say to use this command to flash the board:
make flash FLASH_DEVICE=/dev/serial/by-id/<ypur-device-id-goes-here>
This is very convenient for development. I’ve had this work on other boards, including other versions of the Octopus (non-Pro).
But on this Octopus Pro board it has never worked. I can manually put that board into DFU mode with the Boot0 jumper but I cant even flash it that way, only via the SD card. dfu-util can talk to it but it cant ‘parse the memory layout’:
pi@voron24:~/klipper $ lsusb
Bus 001 Device 007: ID 0483:df11 STMicroelectronics STM Device in DFU Mode
pi@voron24:~/klipper $ sudo dfu-util -d 0483:df11 -R -a 0 -s 0x8008000:leave -D out/klipper.bin
dfu-util 0.9
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
dfu-util: 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 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 2048
dfu-util: Could not read name, sscanf returned 0
dfu-util: Failed to parse memory layout
The device always seems to be in dfuERROR state, even from a cold start. Is that normal?
Could the address (0x8008000) is different on this board?
I’ve tried flashing the bootloader with the STM tools as well but this changed nothing.
(I’m going to solve this by taking the board out of the printer and placing it near the … luckily I have a I can steal from another project)
I installed Katapult on the V1 Octopus board I installed in the printer because getting it’s bootloader to enter DFU mode was… random. make flash now seems to work reliably with Katapult.
I’ll try and get time to do the same to the Octopus Pro and report back. But right now its a paper weight.