Commit Graph
186 Commits
Author SHA1 Message Date
Eric Callahan e9655732cd usb_cdc: change USB manufacturer to katapult
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-07-31 06:09:14 -04:00
Eric Callahan 4527de65b9 flashtool: rename from flash_can.py
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2023-07-31 05:55:20 -04:00
Eric Callahan 540b4159d9 flash_can: update to reference Katapult
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2023-07-30 17:00:05 -04:00
Eric Callahan 35a9bde44a protocol: rename references from CanBoot to Katapult
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2023-07-30 15:22:10 -04:00
Eric Callahan ba1be7f3eb readme: rename references from CanBoot to Katapult
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2023-07-30 10:36:29 -04:00
Eric Callahan 5e794c05d9 build: rename references from CanBoot to Katapult
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2023-07-30 10:35:54 -04:00
Eric Callahan 67020a492f lib: sync can2040 with klipper latest
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2023-07-26 10:48:50 -04:00
Eric Callahan d0480d26d6 rp2040: sync usbserial fix from Klipper
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2023-07-10 16:46:27 -04:00
Eric Callahan 2291f50bf0 flash_can: uuid format specifier fix
SIgned-off-by:  Eric Callahan <arksine.code@gmail.com>
2023-07-10 16:46:27 -04:00
Robin GAY 25482ba0d8 flash.c: fix write error for STM32H72x (#78)
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>
2023-07-10 16:44:25 -04:00
Eric Callahan 10cc588874 flash_can: query fix
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>
2023-03-16 10:57:23 -04:00
Eric Callahan a06bf6158a stm32: sync can.c with klipper
This pulls in an upstream fix for stm32 devices that use
CAN2.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2023-03-15 08:18:44 -04:00
Eric Callahan ffd8ac60f7 flash_can: reduce error output
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>
2023-02-24 11:00:29 -05:00
Eric Callahan d6d5c6cc9c flash_can: don't check firmware path for bootloader requests
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2023-02-15 08:00:12 -05:00
Eric Callahan c5515942a3 readme: document the "-r" option of flash_can.py
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2023-01-29 16:56:56 -05:00
Eric Callahan 1da9898366 flash_can: add option to request bootloader
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2023-01-29 12:43:25 -05:00
Eric Callahan f136b8ce4b readme: fix recommended device grammar
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2023-01-16 10:43:29 -05:00
Eric Callahan 9010890d1f readme: update U2C v2 note
BigTreeTech has released firmware that fixes the issue with this
device.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2023-01-16 10:41:49 -05:00
Eric Callahan 74dac182a7 readme: clarify U2C note
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2023-01-05 12:39:18 -05:00
Eric Callahan ec96191e4b readme: add U2C v2.1 note
This device is bugged and does not work with CanBoot.  This
issue is referenced in #44.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2023-01-05 07:50:08 -05:00
Kevin O'Connor 88e208a083 stm32: Add support for flashing stm32h7 boards
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-12-22 12:18:23 -05:00
Kevin O'Connor 3076dd081c lib: Resync stm32h7 with upstream Klipper
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-12-22 12:18:10 -05:00
Kevin O'Connor bcff5ca488 stm32: Resync stm32 code with upstream Klipper code
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-12-22 12:12:24 -05:00
Kevin O'Connor 6f67a01a60 lpc176x: Resync code with upstream Klipper code
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-12-22 12:12:24 -05:00
Kevin O'Connor da7cc967d0 gpio: Resync gpio code with upstream Klipper code
Add a shutdown() compatibility macro so that the upstream Klipper gpio
code can be used unmodified.  Sync the rp2040, lpc176x, and stm32
gpio.c code with Klipper's code.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-12-22 12:12:24 -05:00
Kevin O'Connor d30ad28f03 canboot: Introduce a new canboot.h header file
Move canboot specific definitions in board/misc.h to new canboot.h
header file.  This makes it a little easier to identify differences
between canboot code and low-level upstream klipper code.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-12-22 12:12:24 -05:00
Kevin O'Connor 6a233ff4f5 usb_cdc: Resync USB code with upstream code from Klipper
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-12-22 12:12:24 -05:00
Kevin O'Connor b19cc2a9ad lib: Resync can2040 code to latest upstream
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-12-22 12:12:24 -05:00
Kevin O'Connor 2b22438c01 canbus: Resync canbus code with upstream Klipper code
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-12-22 12:12:24 -05:00
Kevin O'Connor e3e72b8642 Kconfig: Resync src/Kconfig with upstream Klipper code
This adds a few symbols used by the latest Klipper code.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-12-22 12:12:24 -05:00
Kevin O'Connor f9cd240fb4 armcm_deployer: Rename DEPLOYER_START symbol to FLASH_APPLICATION_ADDRESS
Rename the symbol to be more similar to the symbol used in the
upstream Klipper code.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-12-22 12:12:24 -05:00
Kevin O'Connor 41067c6a74 armcm_reset: Rename CONFIG_BOOTLOADER_START to CONFIG_FLASH_BOOT_ADDRESS
Rename the symbol for better consistency with the upstream Klipper
code.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-12-22 12:12:24 -05:00
Kevin O'Connor 7db10a048f armcm_canboot: Rename CONFIG_APPLICATION_START to CONFIG_LAUNCH_APP_ADDRESS
Rename the build symbol to better distinguish it from the start
address of the deployer app.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-12-22 12:12:24 -05:00
sh83 600967e293 readme: added rp2040 specific notes
Signed-off-by: Alex Malishev <malishev@gmail.com>
2022-11-06 16:23:26 -05:00
sh83 c9469e7038 rp2040: make deployer build optional
Signed-off-by: Alex Malishev <malishev@gmail.com>
2022-11-06 16:22:53 -05:00
Eric Callahan a89db2442e readme: add contributing guidelines
Fix a couple of minor documentation errors.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-11-04 16:48:31 -04:00
sh83 2990480d25 common: misc fixes:
- moved external files to lib folder
 - fixed typos
 - added optional "sudo" to flash command
 - fixed redundant file close in script
 - fixed compilation warning
2022-10-31 07:23:14 -04:00
sh83 0a24cd4502 rp2040: added option to force bootloader before new application flashed
Signed-off-by: Alex Malishev <malishev@gmail.com>
2022-10-31 07:23:14 -04:00
sh83 c1ae0b4f1e reset: fixed rp2040 bootloader entry point
Signed-off-by: Alex Malishev <malishev@gmail.com>
2022-10-31 07:23:14 -04:00
sh83 05b05afd3f build: rp2040 added to the main Kconfig.
Signed-off-by: Alex Malishev <malishev@gmail.com>
2022-10-31 07:23:14 -04:00
sh83 09140ead87 rp2040: Added needed options to Kconfig, cleaned up.
Modified linker script and loader to load whole bootloader to the RAM.
Removed whatchdog.
Fixed gpio.c compilation.

Signed-off-by: Alex Malishev <malishev@gmail.com>
2022-10-31 07:23:14 -04:00
sh83 a253e73116 rp2040: Implemented canboot flash interface.
Implemented canboot timer interface.
Simplified chipid.c to use common flash interface.

Signed-off-by: Alex Malishev <malishev@gmail.com>
2022-10-31 07:23:14 -04:00
sh83 396a18be5e rp2040: modified and renamed pico sdk files.
Signed-off-by: Alex Malishev <malishev@gmail.com>
2022-10-31 07:23:14 -04:00
sh83 cc2a3e3df7 rp2040: Import flash and bootrom related files from pico-sdk
(https://github.com/raspberrypi/pico-sdk/tree/master/src/rp2_common/hardware_flash,
https://github.com/raspberrypi/pico-sdk/tree/master/src/rp2_common/pico_bootrom)
as is.

Signed-off-by: Alex Malishev <malishev@gmail.com>
2022-10-31 07:23:14 -04:00
sh83 65845a8fa3 rp2040: Initial import from klipper as is.
Signed-off-by: Alex Malishev <malishev@gmail.com>
2022-10-31 07:23:14 -04:00
Eric Callahan 98844eac24 readme: add deployer documentation
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-08-25 16:40:01 -04:00
Kevin O'Connor c85d2cc38a bootentry: Don't consider a reset in less than 10ms a double click
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-08-03 17:06:22 -04:00
Kevin O'Connor 1b71e856a4 deployer: Wait 100ms before overwriting existing bootloader
If the power supply isn't fully stable or the reset line is glitchy
then there may be a few reboots before the mcu becomes stable.  If the
deployer runs during this unstable period, it may erase the existing
bootloader, but not be able to fully write the new bootloader.

Wait a 100ms before erasing the existing bootloader in an effort to
avoid this situation.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-08-03 17:05:41 -04:00
Kevin O'Connor f4ac6470bf deployer: Add support for a CanBoot "deployer"
Support building a "flashing application" that one may run from an
existing bootloader.  This flashing application will then flash the
main CanBoot binary to the start of flash.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-07-29 12:20:00 -04:00
Kevin O'Connor ed2bf3e8b0 bootentry: Move set_bootup_code() signatures to misc.h
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-07-29 12:20:00 -04:00