# Possible bug in recent commit

**URL:** <https://klipper.discourse.group/t/possible-bug-in-recent-commit/8921>\
**Category:** General Discussion\
**Created:** [June 11, 2023, 7:26pm UTC](https://klipper.discourse.group/t/possible-bug-in-recent-commit/8921 "2023-06-11T19:26:40Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![cicinovec](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/cicinovec/32/1130_2.png) [@cicinovec](https://klipper.discourse.group/u/cicinovec)\
**Post date:** [July 21, 2023, 4:26am UTC](https://klipper.discourse.group/t/possible-bug-in-recent-commit/8921/21 "2023-07-21T04:26:34Z")

</div>

Hi Kevin,

had the same issue on Fysetc BRD, commenting #select HAVE\_GPIO\_I2C in src/rp2040/Kconfig and reflashing works. Until now no more issues

Jiri

---

<div class="post-metadata">

**Author:** ![mark.dunn](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mark.dunn](https://klipper.discourse.group/u/mark.dunn)\
**Post date:** [July 24, 2023, 5:24pm UTC](https://klipper.discourse.group/t/possible-bug-in-recent-commit/8921/22 "2023-07-24T17:24:35Z")

</div>

Compiling klippy with:

```auto
Klipper Firmware Configuration
    [*] Enable extra low-level configuration options
        Micro-controller Architecture (Raspberry Pi RP2040) --->
        Bootloader offset (No bootloader) --->
        Flash chip (W25Q080 with CLKDIV 2) --->
        Communication interface (USB to CAN bus bridge) --->
    (1) CAN RX gpio number
    (0) CAN TX gpio number
        USB ids --->
    (1000000) CAN bus speed
    () GPIO pins to set at micro-controller startup (NEW)

```

Then loading klippiy directly into the SKR PICO works. 😃

[Loading klippy directly into SKR PICO.txt](https://klipper.discourse.group/uploads/short-url/n5PwyWrRVjTfhrOcQE4dtODknl7.txt) (3.1 KB)  
[klippy (21).log](https://klipper.discourse.group/uploads/short-url/sHll2NPl2Pgx7z2cX0xlNBxVN2v.log) (50.0 KB)

Compiling CanBoot with:

```plaintext
    Micro-controller Architecture (Raspberry Pi RP2040) --->
    Flash chip (W25Q080 with CLKDIV 2) --->
    Build CanBoot deployment application (16KiB bootloader) --->
    Communication interface (USB) --->
    USB ids --->
    () GPIO pins to set on bootloader entry
    [*] Support bootloader entry on rapid double click of reset button
    [] Enable bootloader entry on button (or gpio) state
    [] Enable Status LED

```

and klippy with:  
make menuconfig:

```plaintext
    [*] Enable extra low-level configuration options
        Micro-controller Architecture (Raspberry Pi RP2040) --->
        Bootloader offset (16KiB bootloader) --->
        Communication interface (USB to CAN bus bridge) --->
    (1) CAN RX gpio number
    (0) CAN TX gpio number
        USB ids --->
    (1000000) CAN bus speed
    () GPIO pins to set at micro-controller startup (NEW)

```

Then loading klippy via CanBoot does not work. 😮‍💨  
[Loading Klippy via CanBoot.txt](https://klipper.discourse.group/uploads/short-url/lKz2yBExHlFO40TF7sJQXunvXXF.txt) (5.5 KB)  
[klippy (22).log](https://klipper.discourse.group/uploads/short-url/h9kgsgmGbdA7i1cwMfcJizsLGvh.log) (129.8 KB)

Compiling dirty klippy with:

```plaintext
    bool
    depends on HAVE_GPIO && HAVE_GPIO_I2C
    depends on !MACH_RP2040 # Temporary hack to avoid rp2040 regression
    default y

```

and

```plaintext
    [*] Enable extra low-level configuration options
        Micro-controller Architecture (Raspberry Pi RP2040) --->
        Bootloader offset (16KiB bootloader) --->
        Communication interface (USB to CAN bus bridge) --->
    (1) CAN RX gpio number
    (0) CAN TX gpio number
        USB ids --->
    (1000000) CAN bus speed
    () GPIO pins to set at micro-controller startup (NEW)

```

Then loading dirty-klippy via CanBoot works 😃  
[Loading dirty-Klippy via CanBoot.txt](https://klipper.discourse.group/uploads/short-url/83NJJbmw4yhLiWPr4bdjlVh5szl.txt) (4.3 KB)  
[klippy (27).log](https://klipper.discourse.group/uploads/short-url/4GVnuUVn02UWV8oEkdqoOgquyNS.log) (115.2 KB)

This raises several questions.

1. Why am I using CanBoot (USB) on the SKR PICO, I cannot figure out how to load klippy without first loading CanBoot again via the boot reset. Kiauh seemed to keep klippy up to date without it. Maybe someone could explain if it is needed and show me how to use it properly?
2. At least 90% of my day was wasted because make distclean and make clean do not seem to behave as expected. Even together they did not seem to revert the build to any expected state. Even git seemed to think the files were all identical but it would not compile (perhaps the problem was hiding in ‘.gitignore’ ).  
[problem with clean, distclean, git .txt](https://klipper.discourse.group/uploads/short-url/7EEgxCPfYQBkSy5yymdh4F4ItAI.txt) (1.7 KB)  
The fastest way to compile klipper seems to be:  
a. delete it all.  
b. re-clone it.  
c. don’t use distclean or clean.  
d. make menuconfig.  
e. make.  
I am clearly not an expert on klipper code and tried my best to help diagnose this problem, could you please make it a little easier to work on?
3. It would make sense for me to use CanBoot on the EBB36 board, but there does not seem to be an automated mechanism to keep it up to date. Is this on the cards? The usual way is to use multiple build directories.
4. I do not have the insight into the interaction between CanBoot and klipper, could someone else determine which project is at fault please?

I have included all the logs as clearly as I can, and would like to thank the authors for a great product.

---

<div class="post-metadata">

**Author:** ![mark.dunn](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mark.dunn](https://klipper.discourse.group/u/mark.dunn)\
**Post date:** [August 7, 2023, 11:42am UTC](https://klipper.discourse.group/t/possible-bug-in-recent-commit/8921/23 "2023-08-07T11:42:36Z")

</div>

I noticed some lage changes in Katapult (was CanBoot) this weekend. So retested with  
Klipper Version: v0.11.0-257-ged66982b  
Katapult Configuration v0.0.1-57-gabd1545

The full details are at:  
[https://klipper.discourse.group/t/can-bus-katapult-and-klipper-on-a-voron-0/9829](https://klipper.discourse.group/t/can-bus-katapult-and-klipper-on-a-voron-0/9829)

It now works, Thank you.

---

<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:** [December 8, 2025, 6:26pm UTC](https://klipper.discourse.group/t/possible-bug-in-recent-commit/8921/24 "2025-12-08T18:26:47Z")

</div>



[Previous page](https://klipper.discourse.group/t/possible-bug-in-recent-commit/8921.md?page=1)
