Update LumenPnP Firmware
All motherboards come pre-flashed with firmware from Opulo and should work out of the box without these steps. If you need to update your LumenPnP's firmware, this guide will help you do so.
Update your LumenPnP's motherboard using the STM32CubeProgrammer software by ST.
-
Download the latest precompiled firmware
.bin
file for your motherboard version.Important
It is important that you pick the correct firmware file for your machine.
- If you have a v2, choose
v2-lumenpnp-firmware-feeder-support.bin
. - If you have a v3.0, choose
v3.0-lumenpnp-firmware-feeder-support.bin
. - If you have a v3.1 or higher, choose
v3.1+-lumenpnp-firmware-feeder-support.bin
.
- If you have a v2, choose
-
Download and install STM32CubeProgrammer.
- Open STM32CubeProgrammer.
- Select
USB
from the connection type dropdown on the right. -
Attach the LumenPnP Motherboard to your computer with the included USB cable.
-
Boot your motherboard into DFU Mode
- Press and hold the
BOOT
button - Press the
Reset
button and hold for 10 seconds - Release the
Reset
button and wait for 10 seconds - Release the
BOOT
button
NOTE
If you have a hard time getting your board to enter DFU mode, instead try unplugging both USB and the barrel jack, holding the 'BOOT' button, plugging in USB and the barrel jack, waiting 10 seconds, then releasing the
BOOT
button.If you're on Windows, try uninstalling STM32CubeProgrammer and reinstalling. This will also reinstall the USB drivers which can fix connection issues.
- Press and hold the
-
Click the refresh button in the
Port
line to detect the motherboard's port. -
Select the newly discovered USB port from the
Port
dropdown menu. -
Double-check the other fields on the right match the image above:
PID: 0xdf11
VID: 0x0483
Read Unprotect (MCU): Unchecked
TZEN Regression (MCU): Unchecked
-
Click the green
Connect
button to connect to the motherboard. -
Delete all the flash on the chip by clicking the "Full Chip Erase" button.
This might take a while
Erasing all the flash on the chip takes a few minutes. Wait until you see a confirmation pop-up that the process is complete before continuing.
-
Click the
Browse
button and select the firmware image you downloaded earlier. -
Click the
Start Programming
button to upload the firmware to the motherboard. -
Wait until the confirmation pop-up appears that the process has completed.
-
Press the
reset
button on the motherboard to reboot it. -
The machine should show up as a COM/Serial Port on your PC now, and you should be able to access it via OpenPNP. If it doesn't, press the Reset button on the board again, or power-cycle the machine after the flashing is completed.
For Developers: PlatformIO
- Download the latest Marlin firmware and unzip it.
- Install VSCode and its PlatformIO extension.
- Open Marlin firmware's folder in VSCode.
- Download the Marlin configuration files here.
- Replace the files in the
Marlin/Marlin
folder from step #1 with the new configuration files from step #4. - Edit the
platformio.ini
file to indicate which board you're uploading to. Updatedefault_envs
to readOpulo_Lumen_REV3
orOpulo_Lumen_REV4
depending on your motherboard. - Attach the LumenPnP Motherboard to your computer with the included USB cable (USB C to A for Motherboard 3.0, or USB B to A for Motherboard 4.0).
-
Boot your motherboard into DFU Mode
- Press and hold the
BOOT
button - Press the
Reset
button and hold for 10 seconds - Release the
Reset
button and wait for 10 seconds - Release the
BOOT
button
NOTE
If you have a hard time getting your board to enter DFU mode, instead try powering off the machine entirely, holding the 'BOOT' button, plugging in power, waiting 10 seconds, then release the
BOOT
button. - Press and hold the
-
Upload firmware to the board via PlatformIO:
Note
You can also flash using the
dfu-util
command line utility:dfu-util -d 0x0483:0xdf11 -s 0x08000000:leave -a 0 -D ~/path/to/firmware.bin
-
Wait for the process to finish:
-
The machine should show up as a COM/Serial Port on your PC now, and you should be able to access it via OpenPNP. If it doesn't, press the Reset button on the board, or power-cycle the machine after the flashing is completed.
Troubleshooting
If you aren't able to upload, you can check to see if your motherboard is booting into DFU mode correctly:
- Windows:
- Mac/Linux:
Also, reference the Marlin instructions for uploading.