bigtreetech/Manta-E3EZ

How to boot in DFU mode

Closed this issue · 1 comments

Please issue a step by step instruction to boot the E3EZ into DFU mode.
I tried all possible combinations:

  1. with CB-1 eMMC 16G installed (OS on eMMC installed), boot button pressed, connected to another PI or to PC with µUSB socket, boot button released: only a CH340 USB to SERIAL is found
  2. with a CB-1 1G no µSD card inserted, boot button pressed, then connected to PC, release boot button: same CH340... found
  3. without CB-1 (Klipper still installed), boot button pressed, connected to another PI or to PC with µUSB socket, boot button released: only a CH340 USB to SERIAL is found.

How can I start the E3EZ in DFU mode???

The Type-C port of E3EZ is used to communicate with CB1, There are two functions, OTG/UART:

  • OTG: Set the switch according to the eMMC section of User Manual to make the CB1/CM4 eMMC version enter the boot mode, and then write the OS image by Type-C
  • UART: Use UART communication with CB1/CM4 by CH340 for debugging functions.

Do you want to put the MCU STM32G0B1 on the E3EZ board into DFU mode to write the bootloader?
If that's the case, Type-C does not have this function, Because the MCU's USB is directly connected to CB1/CM4 through the BTB socket. We can write firmware to the MCU through CB1/CM4. The steps are as follows:

  • Press and hold the boot button of M8P and then click the reset button to make M8P goto DFU mode.
  • Run the following command on the Terminal of CB1/CM4 to write the bootloader
    sudo dfu-util -d ,0483:df11 -R -a 0 -s 0x8000000:leave -D ./bootloader.bin
    
    0483:df11 is the DFU ID of E3EZ (We can get it by running lsusb command)
    ./bootloader.bin is the Path of bootloader file.