Back to the original problem but I think with getting everything working before, I’m making headway although still no joy. For some reason, Katapult is not responding to flashtool.py. Maybe you have some idea what’s happening here.
Using the same Raspberry Pi Zero 2W and OS Image that I got Klipper working in here (has Klipper installed and the sudo systemctl disable hciuart
along with the sudo raspi-config
operations completed):
I continued the process with the following steps:
- Erase the main controller board using ST-Link.
- Load Katapult with:
git clone https://github.com/Arksine/Katapult
- Load pyserial with:
sudo apt install python3-serial
make menuconfig
Katapult as:
make clean
make
- Flash the main controller with katapult.bin using ST-Link
- Verify that the STATUS LED is flashing (thank you for this)
cd ~/klipper
make menuconfig
Klipper as:
make clean
make
ls /dev -l | grep tty*
to verify thatttyS0
is still present and looks good (it is)python3 ~/Katapult/scripts/flashtool.py -d /dev/ttyS0 -b 250000
And…
This is the response:
biqu@serial-arksine:~/klipper $ python3 ~/Katapult/scripts/flashtool.py -d /dev/ttyS0 -b 250000
Attempting to connect to bootloader
ERROR:root:Flash Error
Traceback (most recent call last):
File "/home/biqu/Katapult/scripts/flashtool.py", line 554, in run
await flasher.connect_btl()
File "/home/biqu/Katapult/scripts/flashtool.py", line 90, in connect_btl
ret = await self.send_command('CONNECT')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/biqu/Katapult/scripts/flashtool.py", line 196, in send_command
raise FlashCanError("Error sending command [%s] to Can Device"
FlashCanError: Error sending command [CONNECT] to Can Device
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/biqu/Katapult/scripts/flashtool.py", line 633, in main
loop.run_until_complete(sock.run(args.device, args.baud, fpath))
File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/biqu/Katapult/scripts/flashtool.py", line 561, in run
await flasher.finish()
File "/home/biqu/Katapult/scripts/flashtool.py", line 275, in finish
await self.send_command("COMPLETE")
File "/home/biqu/Katapult/scripts/flashtool.py", line 196, in send_command
raise FlashCanError("Error sending command [%s] to Can Device"
FlashCanError: Error sending command [COMPLETE] to Can Device
As an additional datapoint, I hooked up my 'scope to the serial connection and I can see flashtool reaching out (top trace) ten times, but no response from the main controller board (next trace down):
So, from what I can see, Katapult is not responding. Any idea what I’m doing wrong here?
Thanx - sorry for being a bother.