#[SOLVED] Flashing AFC-Lite error Send_Block

1 messages · Page 1 of 1 (latest)

restive flower
#

Hi, I installed katapult and now when i try to flash the board with klipper it gives me the error Send_Block

Connecting to CAN UUID 472b4ba2cf8a on interface can0
Sending bootloader jump command...
Resetting all bootloader node IDs...
Detected Klipper binary version v0.13.0-33-g413ff19ea, MCU: stm32h723xx
Attempting to connect to bootloader
Katapult Connected
Software Version: v0.0.1-96-gbc1ecea
Protocol Version: 1.1.0
Block Size: 64 bytes
Application Start: 0x8020000
MCU type: stm32h723xx
Verifying canbus connection
Flashing '/home/pi/klipper/out/klipper.bin'...

[ERROR:root:Flash Tool Error
Traceback (most recent call last):
File "/home/pi/katapult/scripts/flashtool.py", line 1096, in main
await sock.run()
File "/home/pi/katapult/scripts/flashtool.py", line 835, in run
await flasher.send_file()
File "/home/pi/katapult/scripts/flashtool.py", line 427, in send_file
resp = await self.send_command('SEND_BLOCK', prefix + buf)
File "/home/pi/katapult/scripts/flashtool.py", line 406, in send_command
raise FlashError("Error sending command [%s] to Device" % (cmdname))
FlashError: Error sending command [SEND_BLOCK] to Device

clear currentBOT
#

<@&1304550334839918672>

inner flare
#

heys, hey !

let me guess you are using a cb1/cb2 SBC ?

restive flower
#

actually no i think its a pi3 maybe 4 but probably 3

inner flare
#

welp

#

is your pi up to date ?

restive flower
#

if you mean the apt update/upgrade yeah i did those

#

but i have been using the pi in the printer for like 3 years now

inner flare
#

should be good, how is the afc-lite connected to the pi ?

restive flower
#

its connected via usb to can bridge trough a BTT Octopuss

#

i have a can toolhead working fine with that setup

inner flare
#

at which speed is the canbus running at ?

#

standard 1'000'000 ?

restive flower
#

yes i didnt change that

inner flare
#

and you followed this guide regarding the flashing or another one

#

and from where did you take the Canbus for the AFC-lite board ?

restive flower
#

yes that's the guide i'm following

#

i wired it in with the can H/L from the tool head

#

i can see the canbus uuid with katapult but klipper won't flash over katapult

inner flare
#

did you keep the 120ohm ressistor on the toolhead ?

restive flower
#

yes since that's the furthest away from the mainboard

inner flare
#

and you don't have it at the afc-lite then

#

just trying to rule out anything simple

restive flower
#

yes there is no jumper on the AFC maybe if i swap the jumper?

inner flare
#

i don't think i really understand the wiring layout on your specific setup so that might work ?

restive flower
#

i will try

inner flare
#

you took the can l/h for the afc-lite from the btt octopus correct ?

restive flower
#

yes

inner flare
#

then yes maybe try that, cause what you are describing looks like a poor connection

#

so it might be because of improper canbus termination

#

i'm not an absolute expert on canbus yet but to me that's what it looks like

restive flower
#

that's how i connected it

inner flare
#

i see, so i think this is why you're having issue, if you tapped in the middle of the canbus line and the toolhead board for the H/L lines this will cause signal integrity issues

#

<@&1304550334839918672> any other opinion on that ?

#

i don't have a octopus but i'd assume you'd also need a 120ohm ressistor on the mainboard for proper can termination too

foggy folio
foggy folio
restive flower
#

ok i will try that

#

sadly still the same error

foggy folio
#

Hm, then I don’t have any more ideas except tripple-checking the wiring.
Do you have ground connected between the octopus and the afc-lite?

restive flower
#

i don't think so the AFC gets 24v directly from the powersupply

foggy folio
#

Then it won’t work. CAN really is a 3-wire bus.

#

You need shared ground between all devices on the bus.

restive flower
#

ahh okay i will rewire it then a bit weird that the tollhead was working fine that way

foggy folio
restive flower
#

I took 24v +/- from the power supply into wagos and then to the Toolhead the AFC is wired into the same wagos as the toolhead for power

foggy folio
#

Ah. And the octopus is on the same supply?

restive flower
#

yes

foggy folio
#

Then you have shared ground, I think.

restive flower
#

i just wired everything into the same wagos and it still gives me the error tollhead is still diconnected from can

foggy folio
#

When you scan the bus for devices, does the afc-lite show up?

restive flower
#

yes that's the weird part for me

foggy folio
#

Yeah, that’s really strange.

#

No more ideas right now. I’ve never seen this particular error before.

#

Once the device showed up, I could always flash it.

#

Maybe someone else has seen this before.

restive flower
#

That's weird i will try using the AFC over USB for now but thank you very much for your help

foggy folio
#

If it's not the wiring (which it still may be 🤷‍♂️ ), maybe the Katapult settings or the settings of the Klipper firmware you wanted to flash were wrong?

#

Maybe just try to flash Katapult again (do a make clean before make menuconfig; make; make flash ...), and the try to flash Klipper again (also make clean; make menuconfig; make; make flash ...).

coarse fossil
#

@restive flower did you ever get this resolved? I'm having the same issue

red carbon
#

Anybody figure this out. Could really use the help

lethal pawn
#

hey there, yes

#

try reverting katapult back to an older commit, e.g.

cd ~/katapult
git checkout e1716657
make clean
make

then redo the katapult flash, then try reflashing klipper (shoudl not need to rebuild klipper)

lethal pawn
#

it coudl be somethign related to hte stm32h723 chip

#

when i get my other boxturtles back later this month, I will spend some time tracking down which specific commit in katapult breaks it

#

I honestly didn't see anything obvious that would do it, though

lethal pawn
#

probably this commit on Mar 5

commit 28b873de75e9030c19166e5aa69277f3c27f718c
Author: Eric Callahan <[email protected]>
Date:   Wed Mar 5 12:27:43 2025 -0500

    flashtool: improve bootloader wait method

    Signed-off-by:  Eric Callahan <[email protected]>
#

i think we woudln't even need to reflash katapult if I'm interpreting this correctly - just need to use the older flashtool.py script in order to flash klipper.

red carbon
#

This has fixed it. Klipper installed perfectly. Thankyou, just had to revert katapult@lethal pawn