I am trying to install klipper on my ender 3 with 4.2.2 board using octopi running on my raspberry pi 3B+. I have used the following menu settings to make firmware.
# STM32F103 with a "28KiB bootloader" and serial (on USART1 PA10/PA9)
# communication.
I have flashed the firmware and also coppied the sample config but it seems the printer is not connecting to octopi or it quits after connecting with the following error.
10:08:06 Connected to host via /tmp/printer @0bps
10:08:06 Lost communication with MCU 'mcu'
10:08:06 Lost communication with MCU 'mcu'
Once the underlying issue is corrected, use the
"FIRMWARE_RESTART" command to reset the firmware, reload the
config, and restart the host software.
Printer is shutdown
10:08:06 Lost communication with MCU 'mcu'
10:09:36 Lost communication with MCU 'mcu'
I have also checked the sdcard again to see if the firmware file has been renamed to extension .cur but it is still .bin. Why so? the following is the log from gcode viewer addon
Changing monitoring state from "Offline" to "Detecting serial connection"
Performing autodetection with 7 port/baudrate candidates: /tmp/printer@115200, /tmp/printer@250000, /tmp/printer@230400, /tmp/printer@57600, /tmp/printer@38400, /tmp/printer@19200, /tmp/printer@9600
Trying port /tmp/printer, baudrate 115200
Connecting to port /tmp/printer, baudrate 115200
Handshake attempt #1 with timeout 2.0s
Connected to: Serial<id=0x6c10acf0, open=True>(port='/tmp/printer', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=2.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
Send: N0 M110 N0*125
Recv: // Lost communication with MCU 'mcu'
Recv: // Once the underlying issue is corrected, use the
Recv: // "FIRMWARE_RESTART" command to reset the firmware, reload the
Recv: // config, and restart the host software.
Changing monitoring state from "Detecting serial connection" to "Operational"
Send: N0 M110 N0*125
Recv: // Printer is shutdown
Recv: !! Lost communication with MCU 'mcu'
Changing monitoring state from "Operational" to "Error"
Send: M112
Send: N1 M112*32
Send: N2 M104 T0 S0*35
Send: N3 M140 S0*102
Changing monitoring state from "Error" to "Offline after error"
Connection closed, closing down monitor
Can anyone help me figure out why this happens. Also sometimes when i restart klipper service from terminal, the printer connects but as soon as i execute any function it disconnects with same error.