Trying to use Katapult with a serial connection

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:

  1. Erase the main controller board using ST-Link.
  2. Load Katapult with: git clone https://github.com/Arksine/Katapult
  3. Load pyserial with: sudo apt install python3-serial
  4. make menuconfig Katapult as:
  5. make clean
  6. make
  7. Flash the main controller with katapult.bin using ST-Link
  8. Verify that the STATUS LED is flashing (thank you for this)
  9. cd ~/klipper
  10. make menuconfig Klipper as:
  11. make clean
  12. make
  13. ls /dev -l | grep tty* to verify that ttyS0 is still present and looks good (it is)
  14. 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.