Flashing process issue

Basic Information:

MCU / Printerboard: SKR-mini-E3-V3.0.1
Host / SBC: Orange Pi2
klippy.log

__  __       _                 _ _  ____   _____
|  \/  |     (_)               (_) |/ __ \ / ____|
| \  / | __ _ _ _ __  ___  __ _ _| | |  | | (___
| |\/| |/ _` | | '_ \/ __|/ _` | | | |  | |\___ \
| |  | | (_| | | | | \__ \ (_| | | | |__| |____) |
|_|  |_|\__,_|_|_| |_|___/\__,_|_|_|\____/|_____/


Version 1.3.2, based on Orange Pi OS 3.1.0 Bullseye
Running on OPI Zero2 with Linux 6.1.31-sun50iw9
Last MCU build version: v0.12.0-317-gb89d55238
Last MCU build tools: gcc: (15:8-2019-q3-1+b1) 8.3.1 20190703 (release) [gcc-8-branch revision 273027] binutils: (2.35.2-2+14+b2) 2.35.2
Last MCU build config: ADC_MAX=4095 BUS_PINS_i2c1=PB6,PB7 BUS_PINS_i2c1a=PB8,PB9 BUS_PINS_i2c2=PB10,PB11 BUS_PINS_i2c3=PA8,PC9 BUS_PINS_sdio=PC12,PD2,PC8,PC9,PC10,PC11 BUS_PINS_spi1=PA6,PA7,PA5 BUS_PINS_spi1a=PB4,PB5,PB3 BUS_PINS_spi2=PB14,PB15,PB13 BUS_PINS_spi2a=PC2,PC3,PB10 BUS_PINS_spi3=PB4,PB5,PB3 BUS_PINS_spi3a=PC11,PC12,PC10 BUS_PINS_spi4=PE13,PE14,PE12 CLOCK_FREQ=84000000 MCU=stm32f401xc PWM_MAX=255 RESERVE_PINS_USB=PA11,PA12 RESERVE_PINS_crystal=PH0,PH1 STATS_SUMSQ_BASE=256 STEPPER_BOTH_EDGE=1
Build file /home/pi/klipper/klippy/../out/klipper.elf(1031464): Thu Oct 17 13:46:35 2024
mcu 'mcu': Wait for identify_response
Traceback (most recent call last):
  File "/home/pi/klipper/klippy/serialhdl.py", line 68, in _get_identify_data
    params = self.send_with_response(msg, 'identify_response')
  File "/home/pi/klipper/klippy/serialhdl.py", line 262, in send_with_response
    return src.get_response([cmd], self.default_cmd_queue)
  File "/home/pi/klipper/klippy/serialhdl.py", line 319, in get_response
    self.serial.raw_send_wait_ack(cmds[-1], minclock, reqclock,
  File "/home/pi/klipper/klippy/serialhdl.py", line 254, in raw_send_wait_ack
    self._error("Serial connection closed")
  File "/home/pi/klipper/klippy/serialhdl.py", line 61, in _error
    raise error(self.warn_prefix + (msg % params))
serialhdl.error: mcu 'mcu': Serial connection closed

Describe your issue:

/dev/serial/by-id/usb-STMicroelectronics_MARLIN_STM32G0B1RE_CDC_in_FS_Mode_203D32775841-if00

it looks like it can’t flash, microsd card issue?


it seems issue in SKR docs, not v3.0 nor v3.0.1 having right processor i have STM32G0B0 meanwhile in docs STM32G0B1 and STM32F401

Welcome chiboreache, I agree, you have indeed a STM32G0B0 on your SKR, but in your build config (line 3 of your posted code) you chose

Good luck, hcet14

i have tried a lot of configs, B0, B1, after that i started using precompiled ones, result is always the same :pensive:

Did you try to install Klipper using KIAUH?

You may read Sineos Installing Klipper with KIAUH

I guess lwq690 solved that with No firmware for STM32G0B0RET6 ? · Issue #775 · bigtreetech/BIGTREETECH-SKR-mini-E3 · GitHub

by buying new board with right processor !? :hot_face:

i installed it via MainsailOS, which is included KIAUH, doing all that stuff, yeah

A couple of things I found are important when Flashing new Firmware onto a main controller board:

  1. Ideally use an SD Card that is no more than 2GB in size. This is the most basic type of SD Card and is most likely to be read without problems on the SKR Mini. If you don’t have an SD Card that size then partition it with the main partition 2GB (although people often recommend 8GB).
  2. Make sure the SD Card is formatted with FAT32.

If these don’t work, then you’ll need to explain your process in exact detail so we either identify a problem or follow the steps and see if we can replicate the problem.

2 Likes

Why would you buy a new board? I never suggested that!

Did you try lwq690’s settings?

you absolutely right (but i figured it out by myself :yum: )

i used 32Gb card for SKR and 8Gb for OrangePi, now i swapped them and reflashed accordingly and everything is working like a charm :ok_hand::relieved:

i think this essential knowledge should be added to docs with red frame around, since small sized flash mems are rare nowadays…

and what about processor? this also should be reflected in official documentation

1 Like

and one more thing which config is better SKR-mini-E3-V3.0-klipper.cfg or generic-bigtreetech-skr-mini-e3-v3.0.cfg ? for Ender3 (basic)

It is documented Releases - Klipper documentation

Support for stm32f7, stm32g0b0, stm32g07x, stm32g4, stm32h723, n32g45x, samc21, and samd21j18 chip variants.

oh, my bad, i’ve got confused :smiling_face:

it was BTT docs

thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.