# " make: \*\*\* No rule to make target 'flash'. Stop. " Error received when flashing MCU

**URL:** <https://klipper.discourse.group/t/make-no-rule-to-make-target-flash-stop-error-received-when-flashing-mcu/14606>\
**Category:** General Discussion\
**Created:** [March 2, 2024, 8:27pm UTC](https://klipper.discourse.group/t/make-no-rule-to-make-target-flash-stop-error-received-when-flashing-mcu/14606 "2024-03-02T20:27:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![CobraDesign47](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/cobradesign47/32/10304_2.png) [@CobraDesign47](https://klipper.discourse.group/u/CobraDesign47)\
**Post date:** [March 2, 2024, 8:27pm UTC](https://klipper.discourse.group/t/make-no-rule-to-make-target-flash-stop-error-received-when-flashing-mcu/14606/1 "2024-03-02T20:27:16Z")

</div>

### Basic Information:

I am trying to install Klipper with KIAUH and Mainsail following Sineos’ guide, and when I try to flash the firmware I get the error as described in the title of this post.

```auto
make flash FLASH_DEVICE

```

The `FLASH_DEVICE` part in that command is supposed to be replaced by the info retrieved by the `ls /dev/serial/by-id/*` command, right? Is there any info that needs to go after `FLASH_DEVICE`? If so, what is that info?

---

<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:** [March 2, 2024, 8:30pm UTC](https://klipper.discourse.group/t/make-no-rule-to-make-target-flash-stop-error-received-when-flashing-mcu/14606/2 "2024-03-02T20:30:02Z")

</div>

Maybe helpful to know what device you want to flash (what board).

---

<div class="post-metadata">

**Author:** ![CobraDesign47](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/cobradesign47/32/10304_2.png) [@CobraDesign47](https://klipper.discourse.group/u/CobraDesign47)\
**Post date:** [March 2, 2024, 8:37pm UTC](https://klipper.discourse.group/t/make-no-rule-to-make-target-flash-stop-error-received-when-flashing-mcu/14606/3 "2024-03-02T20:37:16Z")

</div>

I am using a Raspberry pi 4 to do this. I’m not sure what my printer board is, though.  
When I built my firmware, I selected avr atmega2560 in one of the options(I can’t remember which one it was). Would that be a problem?

---

<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:** [March 2, 2024, 8:41pm UTC](https://klipper.discourse.group/t/make-no-rule-to-make-target-flash-stop-error-received-when-flashing-mcu/14606/4 "2024-03-02T20:41:04Z")

</div>

> [@CobraDesign47](#):
>
> I’m not sure what my printer board is

You should be quite sure what you want to flash, else flashing makes no sense.  
The setup is made for certain boards/MCUs. You can’t flash a 32-bit board with 8-bit firmware.

A close look on the board helps a lot: Name of the board and the MCU

---

<div class="post-metadata">

**Author:** ![CobraDesign47](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/cobradesign47/32/10304_2.png) [@CobraDesign47](https://klipper.discourse.group/u/CobraDesign47)\
**Post date:** [March 2, 2024, 8:49pm UTC](https://klipper.discourse.group/t/make-no-rule-to-make-target-flash-stop-error-received-when-flashing-mcu/14606/5 "2024-03-02T20:49:40Z")

</div>

My MCU is the one in the separate case, right?

---

<div class="post-metadata">

**Author:** ![CobraDesign47](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/cobradesign47/32/10304_2.png) [@CobraDesign47](https://klipper.discourse.group/u/CobraDesign47)\
**Post date:** [March 2, 2024, 8:51pm UTC](https://klipper.discourse.group/t/make-no-rule-to-make-target-flash-stop-error-received-when-flashing-mcu/14606/6 "2024-03-02T20:51:39Z")

</div>

It looks like the board that’s not in a separate case says “Creality V2.2”

---

<div class="post-metadata">

**Author:** ![CobraDesign47](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/cobradesign47/32/10304_2.png) [@CobraDesign47](https://klipper.discourse.group/u/CobraDesign47)\
**Post date:** [March 2, 2024, 10:34pm UTC](https://klipper.discourse.group/t/make-no-rule-to-make-target-flash-stop-error-received-when-flashing-mcu/14606/7 "2024-03-02T22:34:19Z")

</div>

I think I’m going to try to build a different firmware. How would I delete the old one?

---

<div class="post-metadata">

**Author:** ![CobraDesign47](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/cobradesign47/32/10304_2.png) [@CobraDesign47](https://klipper.discourse.group/u/CobraDesign47)\
**Post date:** [March 2, 2024, 10:49pm UTC](https://klipper.discourse.group/t/make-no-rule-to-make-target-flash-stop-error-received-when-flashing-mcu/14606/8 "2024-03-02T22:49:50Z")

</div>

I poked around a bit and solved it by building a different firmware.

---

<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:** [April 2, 2024, 8:50am UTC](https://klipper.discourse.group/t/make-no-rule-to-make-target-flash-stop-error-received-when-flashing-mcu/14606/9 "2024-04-02T08:50:41Z")

</div>

Closed on April 2, 2024, 8:50am UTC

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