Katapult/Klipper flashing issues on iHeater: DFU works, but the device doesn't appear

@pavluchenkor (https://t.me/pavluchenkor)
What does it want from me?
Full log:

dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
dfu-util: Cannot open DFU device 1d50:606f
Opening DFU capable USB device…
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Interface…
Setting Alternate Setting #0 …
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 2048
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08000000, size = 4951
Download [=========================] 100% 4951 bytes
Download done.
File downloaded successfully
dfu-util: Error during download get_status
Basically after that:

fly@N3Pro:~/katapult$ ls /dev/serial/by-id/*
ls: cannot access ‘/dev/serial/by-id/*’: No such file or directory

🇷🇺 Оригинал

@pavluchenkor (https://t.me/pavluchenkor)
Что оно от меня хочет?
Полный лог:

dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
dfu-util: Cannot open DFU device 1d50:606f
Opening DFU capable USB device…
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Interface…
Setting Alternate Setting #0 …
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 2048
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08000000, size = 4951
Download [=========================] 100% 4951 bytes
Download done.
File downloaded successfully
dfu-util: Error during download get_status
Собственно после:

fly@N3Pro:~/katapult$ ls /dev/serial/by-id/*
ls: cannot access ‘/dev/serial/by-id/*’: No such file or directory

Yeah, everything looks fine. It got flashed and rebooted and isn’t in DFU anymore, so it can’t check what’s there.
At least that’s what it looks like.
Are the LEDs blinking?

Had a similar problem on a host with USB 3.0

🇷🇺 Оригинал

Да норм все. Оно залилось и пергрузилось и уже не в dfu вот и не может проверить что там
Во всяком случае выглядит так.
Лампочки мигают?

Была похожая проблема на хосте с usb 3.0

The LEDs aren’t blinking.
For the command ls /dev/serial/by-id/ it replies with ls: cannot access ‘/dev/serial/by-id/’: No such file or directory

My host has USB2

🇷🇺 Оригинал

Лампочки не мигают.
На команду ls /dev/serial/by-id/ ответ ls: cannot access ‘/dev/serial/by-id/’: No such file or directory

У меня USB2 на хосте

And reset after reset too?

🇷🇺 Оригинал

И ресет после ресета тоже ?

I’m flashing Katapult, I get the message above, you said that’s normal.
Then I unplug the cable, disconnect it from the host, remove the jumper from the board, plug it back into the host. For ls /dev/serial/by-id/* it replies ls: cannot access ‘/dev/serial/by-id/’: No such file or directory.
I pressed reset too, same thing.

🇷🇺 Оригинал

Прошиваю катапульт, получаю сообщение выше, ты написал это норм.
Дальше вытаскиваю кабель, отключаю от хоста, снимаю джампер с платы, подключаю обратно к хосту. На ls /dev/serial/by-id/* ответ ls: cannot access ‘/dev/serial/by-id/’: No such file or directory.
Ресет нажимал, то же самое.

Strange. Did everything work before on this same host?

🇷🇺 Оригинал

Странно. И раньше на этом же хосте все работало?

I was running Standalone before.

🇷🇺 Оригинал

Раньше я на Стандалоне сидел

Dump the firmware to your PC if it’s not too much trouble and flash it with Cube. Let’s see what happens.

🇷🇺 Оригинал

Слей прошивку на комп если не сложно и прошей кубом. Что будет.

Same thing, I flashed the Katapult.bin file with Cube, same response.

🇷🇺 Оригинал

То же самое, прошивал кубом файл Katapult.bin, ответ такой же.

Ok. And does Standalone flash normally?

🇷🇺 Оригинал

Ок. А стендалон шьётся нормально?

Yeah, and it works.
I pulled out a working device and started installing Klipper.

I don’t know if this means anything, but I don’t have a serial folder in the dev folder
And the printer is connected at /dev/ttyUSB0

🇷🇺 Оригинал

Да, и работает.
Достал рабочий девайс и полез Клиппер ставить.

Не знаю, это что то значит, но в папке dev у меня нет папки serial
И принтер подключен по адресу /dev/ttyUSB0

Because there are no devices. Once there are devices, the folder will appear.

🇷🇺 Оригинал

Потому что устройств нет. Будут устройства и папка появится.

Ah, right, I had the printer disconnected.
Here, it sees the printer:
fly@N3Pro:~$ ls /dev/serial/by-id/*
/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0

But it doesn’t see the iHeater

🇷🇺 Оригинал

А, ну да, принтер то я отключил.
Вот, принтер видит:
fly@N3Pro:~$ ls /dev/serial/by-id/*
/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0

А Iheater не видит

Update the packages, maybe it’ll help

sudo apt update

sudo apt install -y
git build-essential cmake ninja-build
gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc+±arm-none-eabi-newlib
python3 python3-pip python3-serial
usbutils dfu-util libusb-1.0-0
libncurses5-dev

🇷🇺 Оригинал

Обнови пакеты, может поможет

sudo apt update

sudo apt install -y
git build-essential cmake ninja-build
gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc+±arm-none-eabi-newlib
python3 python3-pip python3-serial
usbutils dfu-util libusb-1.0-0
libncurses5-dev

Kinda scary to update stuff.
If I flash Katapult and Klipper through Cube, what offset should I set for each? Maybe I messed something up here.

🇷🇺 Оригинал

Чет стремно обновлять.
Через Куб если шить катапульт и клиппер, какое кому смещение ставить? А то может я тут напутал.

Forget it)
In Cube, erase the chip with “Full chip erase” and do everything again from scratch
Most likely it’ll work

standard start is 0x08000000, you write anything there, firmware or bootloader
then
1 KB = 1024 bytes = 2 to the power of 10 = 2^10 = in hexadecimal it’s 0x400
so 1 KB = 0x400
2 KB = 0x800
8 KB for Katapult = 0x2000
0x8000000 + 0x2000 = 0x8002000
something like that)))

🇷🇺 Оригинал

Забей)
кубом чип сотри “Full chip erase” и сделай все заново
скорее всего заведется

стандартное начало 0х08000000, пишем туда что угодно, хоть прошивку хоть бутлоадер
далее
1 Кб = 1024 байт = 2 в степенеи 10 = 2^10 = в шестнадцатиричной системе 0x400
т.е. 1Кб = 0х400
2кб =0х800
8кб катапульты = 0х2000
0ч8000000 + 0х2000 = 0х8002000
типа того)))

Erased it, it got detected, flashed, but something still isn’t right, in Klipper the menu is blue.

🇷🇺 Оригинал

Стер, нашлось, прошилось, но что то еще не то, в клиппер меню синее.

what do you mean blue menu? I don’t get it

🇷🇺 Оригинал

что значит синее меню? не пойму

Well, during reboot.
Looks like it started working, at least Klipper loaded, it sees the printer, doesn’t see the heater yet, going to keep configuring stuff

By the way, it complains about this parameter, I had to comment it out.
#is_non_critical: true # flag this as non critical

🇷🇺 Оригинал

Ну когда перезагрузка.
Вроде завелось, по крайней мере клиппер загрузился, принтер видит, хетер пока не видит, пошел дальше настраивать

Кстати, ругается на этот параметр, пришлось закоментить.
#is_non_critical: true # flag this as non critical