Raise a FlashError if Katapult's MCU does not match the
MCU detected in klipper.bin. If a user wants to flash a binary
built for a different they can rename klipper.bin, which will
bypass detection.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
It appears the rp2350 disables SRAM power when the RUN pin is pulled
low. As a result, one can not store a code in regular memory to
detect if the RUN pin is pulled low multiple times.
Add a new CONFIG_HAVE_BOARD_CHECK_DOUBLE_RESET mechanism to allow the
board code to override the standard double reset checking code.
Implement an rp2350 specific check that uses the chip's POWMAN
chip_reset field to store/check a double reset condition.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Synchronize with the latest Klipper code. This pulls in the latest
lib/ files (needed to use the pico-sdk v2.0.0 version). It updates to
latest can2040 code (needed for pico-sdk v2.0.0 support). It
implements USB double buffering (as is now done in Klipper). It adds
in support for additional UART pins (as is now done in Klipper). It
adds support for rp2350 chips.
This replaces the execute in ram code previously implemented in
Katapult with the execute in ram code that is now standard in Klipper.
The CONFIG_RP2040_ADD_BOOT_SIGNATURE kconfig symbol was removed and
the build now always produces a katapult.withclear.uf2 file.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Certain STM32 Nucleo development boards (eg. F429Zi) come pre-installed with a 32MHz quartz crystal, which is now exposed as an option when selecting STM32 chips.
Signed-off-by: Ella Fox <ella@fox.gal>
The previous UUID verification step introduce a delay that allowed
nodes time to reboot before a node ID was assigned. Reintroduce a
1 second delay.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
The UCPD is not used with Katapult but it can result in unexpected behaviour on certain pins due to the internal pull resistors unless disabled.
Signed-off-by: Luke Harrison looxonline@gmail.com
Syncs the stm32 fdcan and Kconfig to enable BTT U2C and PB12/PB13 FDCAN2 support STM32G0B1 with boards such as the BTT E3EZ.
Signed-off-by: Diana Moore <dmoore@xn4p4lm.com>
When multiple nodes are on the network the UUID query
can result in transmit errors, as multiple nodes with the
same ID will attempt to respond.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
To help transition users relying on exisiting tutorials copy
katapult.bin and katapult.uf2 to canboot.bin and canboot.uf2
respectively.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
flash.c: fix write error for STM32H72x
Add a flash lock/unlock sequence after erasing and before writing to the flash
memory
Signed off by: Robin Gay <robingay67@gmail.com>
Don't requre exactly 8 bytes in a response, as its possible
that some apps may not return a full 8 bytes.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Don't log read exceptions for each iteration, only log when the
exception differs. Log timeout exceptions separately.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>