BuildingForEBB36

programming ebb36 v1.2 for standalone usb operation

RATOS seems to do this:

 sudo dfu-util -d ,0483:df11 -R -a 0 -s 0x8000000:leave -D out/klipper.bin

so, here we go.

  • Put the VUSB jumper on the board. See the documentation for which jumper.
  • Connect the board via usb to a system which has klipper already installed.
  • Hold the boot button switch while pressing and releasing the reset button.
  • This puts the board into DFU mode.
  • SSH (or whatever) to the klipper system.
  • Type lsusb
  • You should get a result that looks like
 Bus 001 Device 006: ID 0483:df11 STMicroelectronics STM Device in DFU Mode
  • Configure klipper for the EBB with make menuconfig using
[*] Enable extra low-level configuration options
    Micro-controller Architecture (STMicroelectronics STM32)  --->
    Processor model (STM32G0B1)  --->
    Bootloader offset (No bootloader)  --->
    Clock Reference (8 MHz crystal)  --->
    Communication interface (USB (on PA11/PA12))  --->
    USB ids  --->
()  GPIO pins to set at micro-controller startup
  • The image should be in ./out/klipper.bin
  • program the board via
 sudo dfu-util -d ,0483:df11 -R -a 0 -s 0x8000000:leave -D out/klipper.bin
  • You'll get a result like
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 = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 1024
DfuSe interface name: "Internal Flash   "
Downloading to address = 0x08000000, size = 27652
Download	[=========================] 100%        27652 bytes
Download done.
File downloaded successfully
dfu-util: Error during download get_status

Notice that it says both File downloaded successfully and dfu-util: Error during download get_status

  ''IT LIES'

Per the internet, https://community.particle.io/t/solved-dfu-util-error-during-download-get-status-error-writing-firmware/13329

Downloading to address = 0x080a0000, size = 86192
Download    [=========================] 100%        86192 bytes
Download done.
File downloaded successfully
dfu-util: Error during download get_status

dfu-util has known issue where it both reports success and failure. (See lines mentioning done and success, and the last line mentioning error.) You can ignore this error, the tool is lying to you!


Per other voron documentation,

  • Run make clean to clean up the make environment.
  • Run make flash FLASH_DEVICE=xxxx:yyyy (using xxxx:yyyy from above)
    • for instance "make flash FLASH_DEVICE=0483:df11"
  • this still produces the error!
  • Remove the boot jumper and press the reset button.
  • After completion ls /dev/serial/by-id/* should return a device begining with /dev/serial/by-id/usb-Klipper_stm32f042x6...

[]