# Klipper not flashing or not connecting

**URL:** <https://klipper.discourse.group/t/klipper-not-flashing-or-not-connecting/9996>\
**Category:** General Discussion\
**Created:** [August 18, 2023, 3:00pm UTC](https://klipper.discourse.group/t/klipper-not-flashing-or-not-connecting/9996 "2023-08-18T15:00:40Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![X\_Fighter](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/x_fighter/32/6786_2.png) [@X\_Fighter](https://klipper.discourse.group/u/X_Fighter)\
**Post date:** [August 18, 2023, 3:00pm UTC](https://klipper.discourse.group/t/klipper-not-flashing-or-not-connecting/9996/1 "2023-08-18T15:00:40Z")

</div>

### Basic Information:

Printer Model: Ender 3 v2  
 MCU / Printerboard: GD32F303  
 [klippy.log](https://klipper.discourse.group/uploads/short-url/AuZSc9Oks9SFDGnc0717ko6nvnA.log) (66.2 KB)

_Fill out above information and_ **_in all cases attach your_ `klippy.log` _file_**. _Pasting your_ `printer.cfg` _is **not** needed_  
_**Be sure to check our [Knowledge Base](https://klipper.discourse.group/t/about-the-knowledge-base-category-table-of-contents/6228) and in particular [this](https://klipper.discourse.group/t/how-to-trouble-shoot/6326) and [this](https://klipper.discourse.group/t/how-to-ask-for-help/6327) post**_

### Describe your issue:

About 3 days ago I started installing klipper in a old machine that I had laying around but when I got to flashing klipper it seems its not flashing. I tried switching between different SD cards (FAT32, 4096) but still wont flash (It is stuck on the creality logo screen not the blank that was supposed to) I can flash back to marlin and other firmware. I did follow trough the cfg for ender 3 v2 2020 (STM32F103, 28KiB bootloader, Selected disable SWD for Gigadevice clone, Extra low-level, USART3 PB11/PB10, 250000 baudrate, and changed the .bin file name between flash tries). After that I though it could be that the mcu was just not connecting to Linux, so I followed along another post and disabled modemmanager and brittly. Now it outputs the the path when using ls /dev/serial/by-id/\* our by-path (both works) but still saying that it cant connect to the mcu (tried connecting with marlin flashed and it cant recognize the mcu)

Edit: Here it is the dmesg output

[4762.240136] usb 2-1: new full-speed USB device number 3 using uhci\_hcd  
[4762.424219] usb 2-1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64  
[4762.424245] usb 2-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0  
[4762.424257] usb 2-1: Product: USB Serial  
[4762.427945] ch341 2-1:1.0: ch341-uart converter detected  
[4762.441529] usb 2-1: ch341-uart converter now attached to ttyUSB0

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [August 18, 2023, 3:10pm UTC](https://klipper.discourse.group/t/klipper-not-flashing-or-not-connecting/9996/2 "2023-08-18T15:10:13Z")

</div>

Are you sure, that it is a GD32 chip?

---

<div class="post-metadata">

**Author:** ![X\_Fighter](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/x_fighter/32/6786_2.png) [@X\_Fighter](https://klipper.discourse.group/u/X_Fighter)\
**Post date:** [August 18, 2023, 3:12pm UTC](https://klipper.discourse.group/t/klipper-not-flashing-or-not-connecting/9996/3 "2023-08-18T15:12:18Z")

</div>

Yes.

 ![20230816_102156](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/0/0dc31094dedc923f6fa664b00660f3b87c6d5567.jpeg)

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [August 18, 2023, 3:20pm UTC](https://klipper.discourse.group/t/klipper-not-flashing-or-not-connecting/9996/4 "2023-08-18T15:20:00Z")

</div>

Try:

- STM32F103
- 28KiB bootloader
- Disable SWD at startup
- Serial (on USART1 PA10/PA9)

Flash via SD card. The firmware filename must end in “.bin” and must not match the last filename that was flashed.

---

<div class="post-metadata">

**Author:** ![X\_Fighter](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/x_fighter/32/6786_2.png) [@X\_Fighter](https://klipper.discourse.group/u/X_Fighter)\
**Post date:** [August 18, 2023, 3:32pm UTC](https://klipper.discourse.group/t/klipper-not-flashing-or-not-connecting/9996/5 "2023-08-18T15:32:45Z")

</div>

Ok. I did and still stuck on the same screen  
The config settings  
 ![image](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/0/01112cfe88369a65e1bd73c24abee78b63870647.png)  
And the dmesg output  
[6076.196122] usb 2-1: new full-speed USB device number 5 using uhci\_hcd  
[6076.385196] usb 2-1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64  
[6076.385222] usb 2-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0  
[6076.385234] usb 2-1: Product: USB Serial  
[6076.387582] ch341 2-1:1.0: ch341-uart converter detected  
[6076.398598] usb 2-1: ch341-uart converter now attached to ttyUSB0

I did remove the USB cable when flashing so the USB doesn’t provide power

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [August 18, 2023, 6:20pm UTC](https://klipper.discourse.group/t/klipper-not-flashing-or-not-connecting/9996/6 "2023-08-18T18:20:44Z")

</div>

For a v4.2.2 board, these should be the matching settings. Sorry no further idea currently.

---

<div class="post-metadata">

**Author:** ![X\_Fighter](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/x_fighter/32/6786_2.png) [@X\_Fighter](https://klipper.discourse.group/u/X_Fighter)\
**Post date:** [August 18, 2023, 6:55pm UTC](https://klipper.discourse.group/t/klipper-not-flashing-or-not-connecting/9996/7 "2023-08-18T18:55:53Z")

</div>

Could you make a firmware with these settings and post here? Maybe my linux install is not letting klipper compile the firmware correctly. I tried reinstalling klipper via KIAUH but nothing changed.

My PC is a LG X140 with a ATOM processor (its extremely old) and Im using linux mint XFec version

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [August 18, 2023, 7:07pm UTC](https://klipper.discourse.group/t/klipper-not-flashing-or-not-connecting/9996/8 "2023-08-18T19:07:02Z")

</div>

This should not make any difference. If there were any incompatibilities, then the compiler should error out, but anyhow, here you go:  
[klipper.zip](https://klipper.discourse.group/uploads/short-url/yC6UCjDTN18cuY1b5zz0ooT6DkW.zip) (19.4 KB)

---

<div class="post-metadata">

**Author:** ![X\_Fighter](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/x_fighter/32/6786_2.png) [@X\_Fighter](https://klipper.discourse.group/u/X_Fighter)\
**Post date:** [August 18, 2023, 7:41pm UTC](https://klipper.discourse.group/t/klipper-not-flashing-or-not-connecting/9996/9 "2023-08-18T19:41:37Z")

</div>

Yep, no joy. Thanks for the help anyway 💙

---

<div class="post-metadata">

**Author:** ![skott](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@skott](https://klipper.discourse.group/u/skott)\
**Post date:** [January 29, 2024, 9:40pm UTC](https://klipper.discourse.group/t/klipper-not-flashing-or-not-connecting/9996/10 "2024-01-29T21:40:45Z")

</div>

I’m having the same problem. @X_Fighter did you ever figure the problem out?

---

<div class="post-metadata">

**Author:** ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)\
**Post date:** [January 29, 2024, 9:47pm UTC](https://klipper.discourse.group/t/klipper-not-flashing-or-not-connecting/9996/11 "2024-01-29T21:47:53Z")

</div>

Hello @skott !

As the thread is not marked solved, it seems it isn’t.

For this and the age of this thread, I recommend to open a new thread in **Get Help** with all requested information.

---

<div class="post-metadata">

**Author:** ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)\
**Post date:** [January 29, 2024, 9:47pm UTC](https://klipper.discourse.group/t/klipper-not-flashing-or-not-connecting/9996/12 "2024-01-29T21:47:58Z")

</div>

Closed on January 29, 2024, 9:47pm UTC


