aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* config: EXP2 header pin correction in Robin Nano 3 (#3997)Oleksii Zelivianskyi2021-02-281-1/+1
| | | | | | | According to Robin Nano v3 pinout the correct pins for: - EXP2_4 is PE10 - EXP2_6 is PA7 Signed-off-by: Oleksii Zelivianskyi <alexeyzel@gmail.com>
* tmc_uart: Minor change - make the baud rate setting more clearKevin O'Connor2021-02-271-1/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc: Add support for periodic checking of driver statusKevin O'Connor2021-02-273-2/+83
| | | | | | | | Check the status of all Trinamic stepper motor drivers once a second. If the driver reports an error then invoke a shutdown. Also log any serious warnings. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc: Reinitialize on every driver enableKevin O'Connor2021-02-271-32/+36
| | | | | | | | | | | | | Send the full TMC stepper motor driver initialization sequence every time the driver is enabled. Don't raise an error on startup if unable to contact a tmc2208/tmc2209 driver. If the driver is still unavailable when it is enabled then a shutdown will be issued. This allows users to troubleshoot (and possibly bring up communication to the driver) prior to enabling the driver. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2660: Fix tmc register readingKevin O'Connor2021-02-271-30/+35
| | | | | | | | | The tmc2660 appears to send responses as soon as the clk starts toggling. That means the 20 bit response is at the top of the 24bit sent message. Also, this implies that RDSEL must already have the correct value in the prior message. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2660: Use common warning/error flag names and descriptionsKevin O'Connor2021-02-271-43/+30
| | | | | | | | Where the tmc2660 flags match other drivers, use lowercase so that the same monitoring code can be used for all the tmc drivers. Also, use the same field formatters where applicable. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc5160: Merge field formatters into tmc2130.pyKevin O'Connor2021-02-272-5/+1
| | | | | | | | The tmc5160 field formatters were mostly duplicates of the tmc2130 - add the "reset" field to tmc2130.py so both drivers have similar reporting. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc: Always report values after a SET_TMC_CURRENT commandKevin O'Connor2021-02-271-14/+15
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc: Move SET_TMC_CURRENT command to TMCCommandHelper()Kevin O'Connor2021-02-276-68/+37
| | | | | | | Refactor the tmc driver implementations so that there is a single implementation of the SET_TMC_CURRENT command. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2660: Add set_current()/get_current() helpers to TMC2660CurrentHelperKevin O'Connor2021-02-271-9/+15
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc5160: Add set_current()/get_current() helpers to TMC5160CurrentHelperKevin O'Connor2021-02-271-14/+18
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2130: Add set_current()/get_current() helper functions to TMCCurrentHelperKevin O'Connor2021-02-271-16/+20
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Raise a command_error on a command timeout eventKevin O'Connor2021-02-271-4/+6
| | | | | | | | Raise a printer.command_error() instead of an mcu.error() if a query command does not succeed. That error is less likely to result in an unhandled exception error. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* virtual_sdcard: exact filename match before case insensitive oneAndre LeBlanc2021-02-261-1/+3
| | | | | | | | | currently, if there are 2 files on the virtual sd card whose names differ only in case (eg. MyFile.gcode vs myfile.gcode) the actual file that gets loaded is at best unpredictable. this patch checks for an exact match before attempting a case-insensitive one. Signed-off-by: Andre LeBlanc <andrepleblanc@gmail.com>
* extruder: Make sure to flush steps during sync_stepper()Kevin O'Connor2021-02-261-0/+2
| | | | | | | | The stepper positions will only be in sync after the step generation code has been flushed. This fixes an "internal error in stepcompress" error during a SYNC_STEPPER_TO_EXTRUDER command. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2130: Add spi daisy chain supportMarco D'Alessio2021-02-263-16/+73
| | | | | | | | This patch adds the ability to daisy-chain multiple tmc2130 and tmc5160 drivers. Signed-off-by: Marco D'Alessio <marco@wrecklab.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc: Improve error message on missing microsteps configKevin O'Connor2021-02-231-1/+2
| | | | | | | If microsteps is missing, warn about it in the stepper config section, not the tmc config section. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Improve error messages on missing rotation_distanceKevin O'Connor2021-02-231-5/+8
| | | | | | | | If neither rotation_distance nor step_distance is present, then generate an error saying rotation_distance is needed (instead of an error about step_distance). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Use BME280 (uppercase) in Config_Reference.md (#3896)Stefan Dej2021-02-221-2/+2
| | | Signed-off-by: Stefan Dej <meteyou@gmail.com>
* test: Add printer-flsun-q5-2020.cfg to printers.test and minor changesKevin O'Connor2021-02-222-3/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: add Flsun Q5 config (#3915)FrY Sennberg2021-02-221-0/+113
| | | | | In cooperation with chaosdrucker Signed-off-by: Christoph Frei <fryakatkop@gmail.com>
* Revert "bme280: Rename sensor_type from BME280 to bme280"Kevin O'Connor2021-02-202-4/+1
| | | | | | | | | This reverts commit ac61f8b72603e9d08832250026e48093dd66aec4. Many temperature sensors are capitalized, so don't make this chaneg to the bme280. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* menu: Default menu should check extruders have heaters (#3969)Janar Sööt2021-02-201-2/+2
| | | | | | For the hotend targets check also available heaters. It'll solve crash when using shared heaters. Signed-off-by: Janar Sööt <janar.soot@gmail.com>
* menu: redesigned name scroller & menu rendering (#3837)Janar Sööt2021-02-202-93/+95
| | | Signed-off-by: Janar Sööt <janar.soot@gmail.com>
* config: Rename generic-mks-robin-nano.cfg to generic-mks-robin-nano-v1.cfgKevin O'Connor2021-02-202-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add example generic-mks-robin-nano-v2.cfg configKevin O'Connor2021-02-202-0/+113
| | | | | | Reported by @mks-viva. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add example generic-mks-robin-nano-v3.cfg configKevin O'Connor2021-02-202-0/+110
| | | | | | Reported by @mks-viva. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Add support for 48KiB bootloadersKevin O'Connor2021-02-201-0/+3
| | | | | | Reported by @mks-viva. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Fix typo in install-centos.shKevin O'Connor2021-02-201-1/+1
| | | | | | Reported by @fishbone222. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bme280: Rename sensor_type from BME280 to bme280Kevin O'Connor2021-02-202-1/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* temperature_host: Rename "path" config to "sensor_path"Kevin O'Connor2021-02-203-5/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* temperature_host: Improve backwards compatibility checkKevin O'Connor2021-02-191-2/+5
| | | | | | Don't register two names for the same instance of the sensor. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* temperature_host: Rename rpi_temperature and add support for custom pathsEvgenii2021-02-195-17/+30
| | | | | Signed-off-by: Evgenii Shavrin <shavrin0591@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Optimize stm32f401 peripheral clockKevin O'Connor2021-02-191-2/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: stm32f401 pll_freq updatesArkadiusz Raj2021-02-191-2/+3
| | | | Signed-off-by: Arkadiusz Raj <arek.raj@gmail.com>
* stm32: 25MHz clock fixesArkadiusz Raj2021-02-191-1/+2
| | | | Signed-off-by: Arkadiusz Raj <arek.raj@gmail.com>
* stm32: Fix missing STM32F429 clock initializationArkadiusz Raj2021-02-191-2/+3
| | | | Signed-off-by: Arkadiusz Raj <arek.raj@gmail.com>
* stm32: F429 shall use 168Mhz to allow easy USB clock configurationArkadiusz Raj2021-02-191-2/+2
| | | | Signed-off-by: Arkadiusz Raj <arek.raj@gmail.com>
* test: Add printer-robo3d-r2-2017.cfg to printers.testKevin O'Connor2021-02-192-2/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add printer-robo3d-r2-v2.1.5.cfg printer config (#3931)Justin Schuh2021-02-191-0/+151
| | | | | Adds Robo3D R2 printer config (successfully tested). Signed-off-by: Justin Schuh <code@justinschuh.com>
* probe: Add last_z_result to get the latest z result in an Macro (#3835)Christian S2021-02-182-1/+6
| | | Signed-off-by: Christian Schnellrieder <schnello.android@gmail.com>
* idle_timeout: Add help to SET_IDLE_TIMEOUT (#3945)Arjan Mels2021-02-181-1/+3
| | | Signed-off-by: Arjan Mels <github@mels.email>
* docs: Fix typo in Sensorless_Homing.mdKevin O'Connor2021-02-181-1/+1
| | | | | | Reported by @stefanfoulis. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Add STM32F429 variant (#3926)Arek2021-02-183-9/+25
| | | | | | | * Add F429 variant; add CAN on PD0,PD1; add 25Mhx clock; move CAN1_RX from PI8 to correct position (PI9) * Add test for STM32F429 Signed-off-by: Arkadiusz Raj <arek.raj@gmail.com>
* config: Correct Ender 6 BLtouch params (#3888)Ben2021-02-181-3/+3
| | | | | | | Fixed bltouch offset and bed_mesh mesh_min/max to account for offset. The former was defined in the wrong coordinate, as the origin starts from the SW. The latter did not include the offset and caused an error. Technically the offset allows mesh_max up to (239.3, 253). Signed-off-by: Ben Kaye <benkaye001@gmail.com>
* stepper: Don't cache ffi_lib object in the stepperKevin O'Connor2021-02-181-20/+25
| | | | | | | It's easier to just call chelper.get_ffi() if the ffi_lib object is needed. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Extend number of available mcu messages from 96 to 128Kevin O'Connor2021-02-188-43/+50
| | | | | | | | | | | Some internal code treats the message ids as encoded "variable length quantities", while other internal code assumes the message id is always one byte long. Continue using this scheme, but convert the VLQ users to use the name "msgtag" while the 1-byte users use "msgid". Increase the number of available msgids from 96 to 127 - the higher values get encoded as negative "msgtags". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* msgproto: Avoid peeking into the msgproto class membersKevin O'Connor2021-02-184-60/+78
| | | | | | | Update callers to only use exported methods of the msgproto objects. This makes it easier to make internal changes to the code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Update generic-bigtreetech-gtr.cfgKevin O'Connor2021-02-122-1/+9
| | | | | | | Add generic-bigtreetech-gtr.cfg to printers.test. Add definitions for thermocouple and temperature_mcu. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Add support for spi bus on stm32f407 pins PI2,PI3,PI1Kevin O'Connor2021-02-121-0/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>