aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/spi_flash/spi_flash.py
Commit message (Collapse)AuthorAgeFilesLines
* Isort all scriptsv0.1.0-rc1Tomasz Kramkowski2025-08-151-8/+9
|
* Rename everything significant to Kutter except for docsTomasz Kramkowski2025-08-151-21/+21
|
* Run black on all first party python codeTomasz Kramkowski2025-08-061-402/+515
|
* spi_flash: FATFS fix missing long filenames support needed by ↵Sasquatch2025-07-271-1/+1
| | | | | | | | | flash-sdcard.sh (#6981) enable long file support, needed for boards using swspi and long filenames for firmware like mks robin 1.1/1.2 added MKS robin nano 1.2 board with description what and why Signed-off-by: Leszek Zajac <zajc3w@gmail.com>
* klippy: fix typos in python code (#6989)Thijs Triemstra2025-07-251-4/+4
| | | Signed-off-by: Thijs Triemstra <info@collab.nl>
* spi_flash: fix hw busTimofey Titovets2025-04-281-1/+3
| | | | | | | | | _try_send_command() expects a list of args, But receives a string. Fixes abc76ee963d4154dce0bd56f2fdb946d5065cc86. Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
* spi_flash: fix spi bus switch (#6906)Timofey Titovets2025-04-201-1/+0
| | | | | Fixes abc76ee963d4154dce0bd56f2fdb946d5065cc86. Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
* software_spi: set rate limiting ticks from the hostTimofey Titovets2025-04-171-16/+29
| | | | Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
* flashsd: Add support for chitu-v6 (#6671)Bevan Weiss2024-09-051-12/+11
| | | | | | | | | Add flashsd configuration for Tronxy x5sa and other printers based on Chitu v6 board. These boards should support sdio (this is what the schematic details), however I couldn't get this working from a quick try. Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com>
* stm32: Add sdio supportH. Gregor Molter2023-02-201-6/+416
| | | | | | | | Adds sdio support for the stm32f4 to allow for SD card flash updates without power cycling some boards, e.g. BTT Octopus Pro. Signed-off-by: H. Gregor Molter <gregor.molter@secretlab.de> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Support SDIO in flash-sdcard using split verification stepDonna Whisnant2022-09-111-7/+42
| | | | Signed-off-by: Donna Whisnant <dewhisna@dewtronics.com>
* spi_flash: reduce speed to 400KEric Callahan2022-04-251-1/+1
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* spi_flash: validate mcu configurationEric Callahan2022-04-251-5/+21
| | | | | | | Prior to attempting a flash, verify that the MCU is successfully configured. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* spi_flash: support spi protocol changesEric Callahan2022-04-221-8/+22
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* spi_flash: Better fallback on MCU protocol changeJustin Schuh2021-11-091-3/+15
| | | | | | Support a set of known past config responses. Signed-off-by: Justin Schuh <code@justinschuh.com>
* spi_flash: Fix MCU handshake protocolJustin Schuh2021-11-081-1/+1
| | | | | | Update config response string to match new version from d4aee4f. Signed-off-by: Justin Schuh <code@justinschuh.com>
* spi_flash: Improve Python3 compatibilityKevin O'Connor2021-10-071-5/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* spi_flash: Support firmware dictionary validationJustin Schuh2021-07-201-4/+27
| | | | | | | | | | | Updates firmware validation to use a dictionary if provided (or found when updating from the default out/ directory). Validation without a dictionary still checks the following (in order): 1. Active firmware's raw dictionary changed after update 2. Checksum of firmware.cur matches expected Signed-off-by: Justin Schuh <code@justinschuh.com>
* spi_flash: Make SD updates more tolerant of flaky boardsJustin Schuh2021-07-201-22/+53
| | | | | | | | | | Validation passes if either of the following succeeds (in order): 1. Active firmware's raw dictionary changed after update 2. Checksum of firmware.cur matches expected Additionally, deletes firmware.bin if found after update succeeds. Signed-off-by: Justin Schuh <code@justinschuh.com>
* serialhdl: Update callers to decide serial fd typeKevin O'Connor2021-03-021-2/+4
| | | | | | | | Don't try to detect a "real serial port" in serialhdl.py. Instead, have the callers invoke either connect_uart(), connect_file(), or connect_pipe(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* spi_flash: support for firmware upgrades via SD CardArksine2021-02-051-0/+1112
This module connects directly to MCU's previously flashed with Klipper, uploads Klipper firmware to an attached SD Card, and performs a device reset to intiate the bootloader's update process. Signed-off-by: Eric Callahan <arksine.code@gmail.com>