Commit Graph

4748 Commits

Author SHA1 Message Date
Eric Callahan a431900f7f display_status: Implement SET_DISPLAY_TEXT command
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-06-27 10:09:02 -04:00
Yifei Ding ae17b66a88
docs: remove FAQ ToC (#5585)
Signed-off-by: Yifei Ding <yifeiding@protonmail.com>
2022-06-27 09:58:48 -04:00
Kevin O'Connor d3c4ba4839 rp2040: Add a Kconfig option for selecting "generic_03H" flash type
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-20 13:03:58 -04:00
Kevin O'Connor 9e52dc337f rp2040: Add options to Kconfig for "stage2" flash chip options
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-20 13:03:58 -04:00
Kevin O'Connor 52a8afba43 docs: Note mcu types with i2c_speed support in Config_Reference.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-20 12:58:05 -04:00
Dmitry Butyugin 8804c1578d docs: Added instructions how to configure I2C for MPU-9250
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
2022-06-20 12:47:14 -04:00
Dmitry Butyugin f2e27ae05e docs: Updated accelerometer installation instructions for Python 3
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
2022-06-20 12:47:14 -04:00
Kevin O'Connor 247a409335 mpu9250: Inline twos_complement() code
Calling python functions can have high overhead.  Inline the
twos_complement code in the _extract_samples() inner loop.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-20 12:41:24 -04:00
Kevin O'Connor 98a24172e7 docs: Add mpu9250 to Config_Reference.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-20 12:41:24 -04:00
Kevin O'Connor f6734d83b3 mpu9250: Use adxl345.AccelCommandHelper directly
The MPU9250CommandHelper() class is nearly a duplicate of
ADXL345CommandHelper().  Rename ADXL345QueryHelper() to
AccelCommandHelper and remove user facing references to "adxl345". Use
it directly from mpu9250.py .

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-20 12:41:24 -04:00
Kevin O'Connor 4a7b429115 mpu9250: Use adxl345.ClockSyncRegression directly
The mpu9250.ClockSyncRegression() class is a duplicate of
adxl345.ClockSyncRegression().  Remove the duplicate copy and use the
code from adxl345.py .

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-20 12:41:24 -04:00
Kevin O'Connor f0ba3a8c52 mpu9250: Use adxl345.AccelQueryHelper directly
The MPU9250QueryHelper() class is a duplicate of ADXL345QueryHelper().
Rename ADXL345QueryHelper() to AccelQueryHelper() and use it directly
from mpu9250.py .

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-20 12:41:24 -04:00
Kevin O'Connor 46842026b9 docs: Wrap lines in Measuring_Resonances.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-20 12:41:24 -04:00
Kevin O'Connor aea847501f test: Add mpu9250 to input_shaper.test regression test case
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-20 12:41:24 -04:00
Kevin O'Connor cf9d96434c stm32: Add Kconfig option for stm32f103x6 chip (with only 10KiB ram)
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-20 12:37:23 -04:00
Kamil Trzciński 0256967def
stm32: support stm32f401 adc_temperature sensor (#5572)
> The temperature sensor is internally connected to the ADC_IN18

> The TSVREFE bit must be set to enable the conversion of both internal channels: the ADC1_IN16 or ADC1_IN18 (temperature sensor) and the ADC1_IN17 (VREFINT).

Ref.: https://www.st.com/resource/en/reference_manual/dm00096844-stm32f401xb-c-and-stm32f401xd-e-advanced-arm-based-32-bit-mcus-stmicroelectronics.pdf

Signed-off-by: Kamil Trzciński <ayufan@ayufan.eu>
2022-06-20 12:13:02 -04:00
Kurt Haenen f2a5800cea
configfile: Expose options awaiting to be saved (#5270)
Adds a save_config_pending_items to the status reported by
configfile reflecting the items and values that a future
SAVE_CONFIG would actually persist.

Signed-off-by: Kurt Haenen <kurt.haenen@gmail.com>
2022-06-20 12:10:57 -04:00
Andreas Fröhlke 6af931c4e1
spi_flash: add mks_monster8,robin_v3 (#5568)
Signed-off-by Andreas Fröhlke <boandy1985@googlemail.com>
2022-06-18 13:08:30 -04:00
Eric Callahan 78454dd3b1 bed_mesh: cache mesh status
Prevent calls to `get_status()` from creating a new
status dict on each request.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-06-17 09:06:21 -04:00
Kevin O'Connor 55d1c3728d docs: Note that i2c is not noise resilient in Config_Reference.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-16 18:38:31 -04:00
Kevin O'Connor 3f3713ee97 Kconfig: Move SERIAL, USBSERIAL, and CANSERIAL definitions to src/Kconfig
There is no need to define these options in every board Kconfig file.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-16 14:59:03 -04:00
bluesforte f55b9d3e57 mpu9250: Adding support for MPU-9250 (and MPU-6050) accelerometer
Add support for mpu9250 accelerometer over I2C bus.

Signed-off-by: Harry Beyel <harry3b9@gmail.com>
2022-06-16 11:09:33 -04:00
Kevin O'Connor fc7838855f canbus: Move canbus uuid calculation to canbus.c
Move the uuid hash calculation to canbus.c and call canbus_set_uuid()
from src/stm32/chipid.c .  This simplifies the low-level canbus
hardware code.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-16 11:03:48 -04:00
Kevin O'Connor 3f7d05dd18 stm32: Support passing through RTR and EFF canbus frames
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-16 11:03:48 -04:00
Kevin O'Connor 913c6a913d stm32: Support PA11/PA12 and PB8/PB9 on fdcan
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-16 11:03:48 -04:00
Kevin O'Connor ce186c6af6 stm32: Simplify fdcan tx irq handling
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-16 11:00:15 -04:00
Kevin O'Connor 84d798f516 canbus: Use single method for reading canbus messages
Previously the code had canbus_read() which was called from task
context (for admin messages), and canbus_process_data() which was
called from irq context (used for data messages).  Change that to a
single canbus_process_data() function that is called from irq context
(used for all messages).  This simplifies the low-level hardware
specific canbus code and should make it easier to support other
hardware implementations.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-16 11:00:15 -04:00
Kevin O'Connor da755c3c1b canbus: Move global variables into a struct
Create a single CanData global variable to track the canbus state.
ARM micro-controllers generally produce better code when global
variables are in a struct.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-16 11:00:15 -04:00
Kevin O'Connor b9e195f098 flash_usb: Use hexid "2e8a:0003" for rp2040 already in bootloader mode
Use a USB hex id to indicate that the device is already in bootloader
mode.  This makes the rp2040 flashing code similar to the other
boards.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-16 10:59:11 -04:00
Kevin O'Connor e98a29bef3 config: Minor comment changes to printer-creality-cr10-v3-2020.cfg
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-16 10:56:30 -04:00
CoreRasurae 31f9bbf105
config: Creality CR10 v3 with BLTouch support config. (#5533)
Introduce support for the stock Creality CR10 v3 printer, including the filament runout sensor. It also supports the optional BLTouch.

Signed-off-by: Luís Palma Nunes Mendes <luis.p.mendes@gmail.com>
2022-06-16 10:54:38 -04:00
Stefan Dej c61db45613 config: fix processor name in th3d ezboard lite v2.0 config
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-06-16 10:48:28 -04:00
Kevin O'Connor 7f9ea231b7 delta_calibrate: Fix Python3 error in DELTA_ANALYZE
Reported by @CODeRUS.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-13 13:51:07 -04:00
Devin Fritz 29e9ac6ec5
config: Update generic-duet3-mini.cfg to include Tacho pins (#5551)
Signed-off-by: Devin Fritz <devinfritz@gmx.de>
2022-06-12 13:03:50 -04:00
Kevin O'Connor ea4f6d6a77 rp2040: Implement workaround for USB errata "rp2040-e5"
The rp2040 USB may not connect after a reset.  Implementation the
recommended workaround.

Signed-off-by: Lasse Dalegaard <dalegaard@gmail.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-12 11:25:57 -04:00
Aart Röst c30e5f847c
config: Correct UART pins for Ender 3 S1 & S1 Pro (#5553)
Signed-off-by: Aart Röst <aartrost@gmail.com>
2022-06-10 14:13:10 -04:00
Kevin O'Connor 7ffd01de4c stm32: Support 4KiB bootloader on stm32f1 and stm32f0
The CanBoot bootloader can often fit in 4KiB and that may be useful
for some devices with small flash sizes.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-10 11:48:13 -04:00
Eric Callahan 1b6ab65833 flash_usb: update shebang to python3
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-06-10 11:23:04 -04:00
Eric Callahan 3e1719bdbb flash_usb: add canboot support
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-06-10 11:23:04 -04:00
Eric Callahan b6feda4eae lpc176x: add support for canboot usb
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-06-10 11:23:04 -04:00
Kevin O'Connor f42ce3e2fd linuxtest: Add a test case for the ds18b20 sensor
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-08 18:06:12 -04:00
functionpointer 33ecc6d62e
ds18b20: fix string conversion error on startup (#5559)
Signed-off-by: Lorenzo Pfeifer <Lorenzo.Pfeifer+github@googlemail.com>
2022-06-08 18:05:27 -04:00
Kevin O'Connor d61d3ade23 ds18b20: Don't propagate incorrect temperature on a fault
Just log an error on a fault.

Remove the host check for min/max temperature as the micro-controller
code already implements that check.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-08 12:48:40 -04:00
functionpointer 2dc20c011d ds18b20: Allow some read errors
Allows a limited number of DS18B20 read failures
before stopping the printer. This is designed to
tolerate spurious read errors, while still stopping
for serious issues.

The printer will stop when the sensor

fails to report a value five times in a row.

Implementation works as follows:
The MCU reports any read errors using a new "fault"
parameter in its answers.
The Python code tracks the number of errors
and triggers the shutdown. This paves the way for
more sophisticated error handling in the future,
as well as an example for other sensors to follow.

Signed-off-by: Lorenzo Pfeifer <Lorenzo.Pfeifer+github@googlemail.com>
2022-06-08 12:39:12 -04:00
Eric Callahan b0da191bee makefile: disable null pointer checks
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-06-08 12:17:12 -04:00
BIGTREETECH ada571ecb8
stm32: Enable Automatic retransmission feature to avoid data loss caused by bus conflict for STM32G0B1 fdcan (#5550)
Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
2022-06-06 10:59:18 -04:00
Kevin O'Connor db5a4351a5 Kconfig: Move CANBUS_FREQUENCY definition from src/stm32/Kconfig to src/Kconfig
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-04 11:56:59 -04:00
Kevin O'Connor c1f4bdebf2 armcm_reset: Add a armcm_reset.h header file for try_request_canboot()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-06-04 11:52:39 -04:00
Yifei Ding 9047702a00 mkdocs: Replace TOC in Translations
Signed-off-by: Yifei Ding<yifeiding@protonmail.com>
2022-06-03 19:14:13 -04:00
Stefan Dej 7c8cf7661b docs: fix typo in Exclude_Object.md
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-06-03 18:11:35 -04:00