Loading files
## Klipper Expander Flashing Instructions:
1) Connect the board to the host Raspberry Pi via USB.
2) Connect to your host raspberry pi via SSH.
3) Install the boot jumper and reset the board. This will put the board into DFU mode.
4) Run `lsusb` from the command prompt
- Make sure you see an STM32 in DFU mode listed
5) Run `dfu-util --list` from the command prompt
- note the text inside the [xxxx:yyyy]
6) Run `cd ~/klipper` from the command line to enter the Klipper directory
7) Run `make menuconfig` settings should be:
<img src="../Images/Menuconfig_Base_Options.png" width="1000">
- Do not configure `USB ids`
- Set the "Optional features" to:
<img src="../Images/Menuconfig_Optional_Options.png" width="1000">
- Note these options will work for most generic use cases (heaters, thermistors, fans). You may need other options for special cases. See Build Options section below for additional discussion.
- Hit `Q` to Exit and Save
8) Run `make clean` to clean up the make environment.
9) Run `make flash FLASH_DEVICE=xxxx:yyyy` (using xxxx:yyyy from above)
- You may see what appears to be an "error" after flashing your board. (Blue box)
- As long as you see the `File downloaded successfully` text (Green box) you are good to proceed.
- The error (Red box) seems to be caused by the controller immediately running the uploaded code and no longer appearing as a DFU device. This is not an issue, as long as the board reports a Klipper serial name.
<img src="../Images/dfu-util_Flashing_Error.png" width="500">
10) Remove the boot jumper and press the reset button.
11) After completion `ls /dev/serial/by-id/*` should return a device begining with `/dev/serial/by-id/usb-Klipper_stm32f042x6...`
12) Copy this serial port name (`/dev/serial/by-id/usb-Klipper_stm32f042x6...`) and place it in your [mcu expander] section of the config file.
Your board should now be usable with Klipper. Use the example config file to get started
Best option is to copy the example config file into the same directory as `printer.cfg` then add `[include klipperExpander.cfg]` to the end of your `printer.cfg` to include the file.
## Build Options
As noted, the options here will work for most fans, thermistors, and heaters. You can select additional options, but you're limited by the memory on the board and if you select too many options the board will fail to flash. For more complex use cases, you may need to disable some options to make room for others.
Note the build options menu has changed in the past and may change again. If you are getting an mcu error, klippy.log may give you a hint as to what build options you need to add. Please open a github issue if the menu has change significantly from the screenshots shown here. 5e5fca576This file is pinned to the selected release. Download the original to open it in your design tool.