# Problem with flashing firmware

**URL:** <https://klipper.discourse.group/t/problem-with-flashing-firmware/14144>\
**Category:** General Discussion\
**Created:** [February 15, 2024, 8:20pm UTC](https://klipper.discourse.group/t/problem-with-flashing-firmware/14144 "2024-02-15T20:20:56Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Premier](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@Premier](https://klipper.discourse.group/u/Premier)\
**Post date:** [February 15, 2024, 8:20pm UTC](https://klipper.discourse.group/t/problem-with-flashing-firmware/14144/1 "2024-02-15T20:20:56Z")

</div>

I have got my Sunlu T3 for about a year now and as I bought a klipper printer recently I wanted to upgrade my T3 with Klipper as well. I have an Orange Pi Zero 2W with Klipper, Moonraker and Crownsnest dowloaded. I have added the T3 config and compliled a firmware for the printer However, no matter what I do. I cant get it to work after flashing. I had to scp the file from my orange pi to my pc and flash it through an sd card so maybe that is the issue but I am not sure and as this is my first time doing Klipper upgrade I am not sure how to move forward. Thanks in advance for any tips  
[klippy (3).log](https://klipper.discourse.group/uploads/short-url/kM9zZNuLyL5O2ZFcLzYl4knrfSy.log) (228.8 KB)

---

<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:** [February 15, 2024, 8:31pm UTC](https://klipper.discourse.group/t/problem-with-flashing-firmware/14144/2 "2024-02-15T20:31:57Z")

</div>

Hello @Premier !

You may try this:

```auto
serial = /dev/serial/by-id/usb-Klipper_stm32f103xe_00000000000

```

instead of this:

```auto
serial = dev/serial/by-id/usb-Klipper_stm32f103xe_00000000000

```

You missed the “`/`” in front of `dev`

---

<div class="post-metadata">

**Author:** ![Premier](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@Premier](https://klipper.discourse.group/u/Premier)\
**Post date:** [February 16, 2024, 5:20am UTC](https://klipper.discourse.group/t/problem-with-flashing-firmware/14144/3 "2024-02-16T05:20:13Z")

</div>

Thanks! I will try that when I get home. I just have one question. Is it normal that printer screen shows nothing?

---

<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:** [February 16, 2024, 7:47am UTC](https://klipper.discourse.group/t/problem-with-flashing-firmware/14144/4 "2024-02-16T07:47:37Z")

</div>

> [@Premier](#):
>
> Is it normal that printer screen shows nothing?

AFAIK, after a successful flash of Klipper: Yes.

---

<div class="post-metadata">

**Author:** ![Premier](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@Premier](https://klipper.discourse.group/u/Premier)\
**Post date:** [February 16, 2024, 1:50pm UTC](https://klipper.discourse.group/t/problem-with-flashing-firmware/14144/5 "2024-02-16T13:50:56Z")

</div>

Update: I have added the slash as you recommended. However it seems to be still not working. I wanted to reflash the printer and verify if I had chosen every config correctly but I came across another issue. I will add klippy log and screenshot of the cmd.  
[klippy (3).log](https://klipper.discourse.group/uploads/short-url/36sxFiQZJd8yuNAUq2nRSCSQHyL.log) (82.7 KB)  
 ![Screenshot 2024-02-16 142511](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/b/b10fb1d7a8a88c05697eed25a598e2864c91ecb0.png)  
Thank you again for your time and insight

---

<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:** [February 16, 2024, 8:34pm UTC](https://klipper.discourse.group/t/problem-with-flashing-firmware/14144/6 "2024-02-16T20:34:43Z")

</div>

This is strange.  
Please change to the `klipper` folder and issue following commands

```auto
cd ~/klipper #change to Klipper folder
make distclean
make menuconfig # use the settings for your board
make

```

If any errors occur, please copy the complete output here **formatted as code.**

---

<div class="post-metadata">

**Author:** ![Premier](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@Premier](https://klipper.discourse.group/u/Premier)\
**Post date:** [February 16, 2024, 10:09pm UTC](https://klipper.discourse.group/t/problem-with-flashing-firmware/14144/7 "2024-02-16T22:09:54Z")

</div>

Maybe Klipper got corrupted somehow? I can try fresh install and see what will happen. I actually tried updating it but to no avail. This is what I got:

```auto
orangepi@sunlu:~$ cd klipper
orangepi@sunlu:~/klipper$ make distclean
out/src/adccmds.d:1: *** missing separator. Stop.
orangepi@sunlu:~/klipper$ make menuconfig
out/src/adccmds.d:1: *** missing separator. Stop.
orangepi@sunlu:~/klipper$ make
out/src/adccmds.d:1: *** missing separator. Stop.
orangepi@sunlu:~/klipper$

```

---

<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:** [February 17, 2024, 9:28am UTC](https://klipper.discourse.group/t/problem-with-flashing-firmware/14144/8 "2024-02-17T09:28:21Z")

</div>

Run:

```auto
git reset --hard master --

```

in the klipper folder OR

```auto
cd ~
rm -rf ~/klipper
git clone https://github.com/Klipper3d/klipper

```

then try again.

---

<div class="post-metadata">

**Author:** ![Premier](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@Premier](https://klipper.discourse.group/u/Premier)\
**Post date:** [February 17, 2024, 11:19am UTC](https://klipper.discourse.group/t/problem-with-flashing-firmware/14144/9 "2024-02-17T11:19:50Z")

</div>

Thank you, Klipper now works fine and shows no errors. I have compiled new firmware and uploaded it to the printer just in case. However I do believe that the original problem remains the same. I am attaching klippy log and moonraker log just in case that helps to diagnose the issue.  
[klippy (5).log](https://klipper.discourse.group/uploads/short-url/hGNwiVMigj6FiYUCcmCJDi6Ql4f.log) (42.9 KB)  
[moonraker (1).log](https://klipper.discourse.group/uploads/short-url/1UMyqBsmB8LpD5peRihvrOmWYBq.log) (46.0 KB)

---

<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:** [February 17, 2024, 3:06pm UTC](https://klipper.discourse.group/t/problem-with-flashing-firmware/14144/10 "2024-02-17T15:06:30Z")

</div>

> [@EddyMI3D](#):
>
> `/dev/serial/by-id/usb-Klipper_stm32f103xe_00000000000`

This looks not correct. There should be an unique serial instead of all 0.

Likely, your board is not correctly flashed or you made mistakes during `make menuconfig`.  
See [Issues flashing the printer board](https://klipper.discourse.group/t/issues-flashing-the-printer-board/14015) and strictly adhere to the information on top of [klipper/config/printer-sunlu-t3-2022.cfg at master · Klipper3d/klipper · GitHub](https://github.com/Klipper3d/klipper/blob/master/config/printer-sunlu-t3-2022.cfg)  
Also inspect your MCU chip to get this correct.

---

<div class="post-metadata">

**Author:** ![Premier](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@Premier](https://klipper.discourse.group/u/Premier)\
**Post date:** [February 17, 2024, 4:38pm UTC](https://klipper.discourse.group/t/problem-with-flashing-firmware/14144/11 "2024-02-17T16:38:49Z")

</div>

I can see. It is like that (with the zeroes) in the config and I assumed its all done. I skipped this step however:` #obtain your MCU id using ls /dev/serial/by-path/*`  
Do I do this through ssh?

---

<div class="post-metadata">

**Author:** ![Premier](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@Premier](https://klipper.discourse.group/u/Premier)\
**Post date:** [February 17, 2024, 4:46pm UTC](https://klipper.discourse.group/t/problem-with-flashing-firmware/14144/12 "2024-02-17T16:46:45Z")

</div>

Well I cant believe, that I missed this. It has pretty much solved the issue. I just have to finish mainsail config it appears.  
 ![image](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/7/76a1e672dd961c74aff034bcd4b84fcd3a7926ee.png)  
However. Thank you all very much and I am sorry for wasting your time.

---

<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:** [February 17, 2024, 5:36pm UTC](https://klipper.discourse.group/t/problem-with-flashing-firmware/14144/13 "2024-02-17T17:36:10Z")

</div>

See [Installing Klipper with KIAUH](https://klipper.discourse.group/t/installing-klipper-with-kiauh/10734#initial-configuration-14) No 4

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/klipper/original/1X/64419bf2aac6639e6ef5cef200dcd456b0a01ac3.png) [@system](https://klipper.discourse.group/u/system)\
**Post date:** [March 19, 2024, 3:36am UTC](https://klipper.discourse.group/t/problem-with-flashing-firmware/14144/14 "2024-03-19T03:36:12Z")

</div>

Closed on March 19, 2024, 3:36am UTC

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