- Pre-built executables can be downloaded here.
- Download the build script: [windows] [linux].
- Save and run the script on a dedicated folder.
- The resulting binary can be found under the
dist
directory.
- Disconnect PLC power
- Figure out where
BOOT0
andVcc
pins are located. - Set the
RUN
switch toSTOP
position. - Briefly short
BOOT0
andVcc
pins while applying power to the PLC to enable DFU.
- Connect PLC serial port to PC.
- Start
openplc-uploader
. - Select the correct board.
- Select the correct serial port
- Click on Install Bootloader
- Click Upload button to start installing the bootloader.
- If the upload is succesfull, the
RUN
led will blink rapidly to indicate it is in bootloader mode.
- Select the generated openplc code using the Browse button.
- Select the correct board.
- Select the correct serial port.
- Set the PLC
RUN
switch toSTOP
position. - Click Upload button to start uploading.
- Set the PLC
RUN
switch toRUN
to start the PLC.