Add SPI access, internal-clock PLL setup, integrated-current-sense
current control, SpreadCycle, temperature reporting, and standard TMC
fault and status helpers. Check the PLL whenever registers are restored
and clear the phase offset when reinitializing the PLL.
Document the new configuration and include a Klippy regression case.
Derived from the GPLv3 TMC5262 driver by Rogerio Goncalves in Kalico.
Signed-off-by: Rogerio Goncalves <rogerlz@gmail.com>
Signed-off-by: Uriah Kessman <fishyfabspnw@gmail.com>
Generate defconfig before compile-time requests and pass it to buildcommands.py.
Store the resulting config under the identify dictionary's kconfig key so it matches the firmware.
An empty defconfig is valid when the selected board uses all default values.
Regenerate it whenever the build runs.
Signed-off-by: Morton Jonuschat <mjonuschat@gmail.com>
Some SD cards will fail to initialize at the 400KHz clock
documented in the official specification. Add a "fast speed"
option that runs at 4MHz.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Pass a maximum buffer size parameter to command_encode_and_frame() and
support encoding messages even if there may not be enough space for
the largest possible message. In practice, most messages will encode
to a size notably smaller than their maximum so this improves buffer
utilization during heavy message traffic.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Due to recent changes, a shutdown log line may not have a description.
Update the logextract.py script accordingly.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This updates the outdated CanBoot flash_can.py with the latest
version of Katapult flashtool.py, which should be fully backwards
compatible.
Signed-off-by: Robert Schiele <rschiele@gmail.com>
Subscribing to all sensors can cause a burden on the MCU communication
channels. Add a new '-s' command line option to data_logger.py that
allows a user to request the subscriptions that they wish to capture.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Avoid using mcu.CommandQueryWrapper() and mcu.CommandWrapper()
classes. Instead, implement local variants of these classes. This
will make it easier to modify the mcu classes without fear of breaking
the spi_flash code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
The change removes the shapers defined there in favor of the
standard ones and makes the script a lot more configurable
via command-line arguments.
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
Some Creality bootloaders skip flashing if the firmware filename is
unchanged. By appending a timestamp to the firmware filename during
sdcard upload, each update generates a unique name, ensuring that
the bootloader always accepts and flashes the new firmware.
Signed-off-by: Sezgin AÇIKGÖZ <sezginacikgoz@mail.com>
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>
The more.musl.cc site is blocking downloads from all github actions,
which makes it difficult to use that site for the ar100 cross build
toolchain. Convert to the openrisc or1k-elf toolchain as a
replacement.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Add a filter workbench Jupiter notebook to help printer developers tune filters based on probing data
Signed-off-by: Gareth Farrington <gareth@waves.ky>
Don't build the pru binaries directly in the build test cases, instead
use the upstream binaries provided.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Addition to the board_defs file for the BTT Octopus Max EZ, written and confirmed by discord user Nikki @winningfaith81
Signed-off-by: James Hartley <james@hartleyns.com>
The python-can v3.3.4 package requires setuptools to be an explicit
dependency when run on python v3.12, but there is no single version of
setuptools that runs on all supported versions of python. So, tie
setuptools to python versions 3.12 or later.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>