Skip to content

Latest commit

 

History

History
88 lines (70 loc) · 2.86 KB

README.md

File metadata and controls

88 lines (70 loc) · 2.86 KB

How to Dump Neptune 4 MCU Firmware

Warning: Only flash this firmware on a DE-ELEGOO setup/image, not on stock Elegoo software.

Steps:

  1. Solder a Momentary Button:

    • Solder a momentary (push to make) button on the BOOT pads on the MKS/Elegoo control board next to the RESET button.
    • Alternatively, bridge these with sharp metal tweezers.
  2. Power On and Boot Process:

    • Power on the machine.
    • Press the BOOT button down (or bridge the pads).
    • While this is pressed, also press the RESET button next to it.
    • Release RESET then BOOT.
  3. SSH and Commands:

    • Leave the printer on and SSH in (as root) and type:
      service klipper stop
      apt update
      apt install stm32flash
      stm32flash -r firmware-bak.bin /dev/ttyS0
      
    • If this errors out, repeat the BOOT/RESET button-press routine above until it works.
  4. Copy Firmware:

    • From another terminal on the computer, copy this off your printer using:
      scp root@IPADDRESS:/root/firmware-bak.bin .
      
  5. Reboot:

    • Type reboot (then power cycle after a few minutes).

How to Flash Updated Klipper MCU Firmware

(Only do this if you have removed Elegoo services and are running standard/updated releases of Klipper.)

  1. Enter Bootloader Mode:

    • Follow the initial steps to enter bootloader mode.
  2. SSH and Commands:

    • Leave the printer on and SSH in (as mks) and type:
      cd /home/mks/kiauh
      ./kiauh
      4 Advanced
      2 Build Only
      
    • Enter these configurations - STMicroelectronics STM32 - STM32F401 - 32KiB Bootloader - and USART PA10/PA9 - settings.
  3. Flash Klipper Firmware:

    • Repeat the BOOT and RESET process.
    • Then, type:
      sudo service klipper stop
      stm32flash -w /home/mks/klipper/out/klipper.bin -v -S 0x08008000 -g 0x08000000 /dev/ttyS0
      
  4. Start Klipper Service:

    • Type sudo service klipper start.
  5. If this doesnt work (usually if you flashed stock MCU firmware before):

    • Repeat the BOOT and RESET process.
    • Download the provided firmware-bak.bin (in this git repo)
    • Then, flash it with:
      sudo service klipper stop
      stm32flash -w ./firmware-bak.bin -v /dev/ttyS0
      
    • After this reboot going forward you may use the first (compile with kaiuh) method.

    How to Recover OG MCU Firmware

(Pre-dumped N4Pro (might be the same as N4) firmware-bak.bin)

  1. Power On and Boot Process:

    • Similar to the above steps.
  2. SSH and Commands:

    • Leave the printer on and SSH in (as root) and type:
      service klipper stop
      stm32flash -w firmware-bak.bin -v /dev/ttyS0
      
    • If this fails, retry the BOOT & RESET button method above.
    • Type sudo reboot (then power cycle after a few minutes).