Commit Graph

4792 Commits

Author SHA1 Message Date
Kevin O'Connor a9495d8e4f docs: Updates to Features.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-11-28 20:59:31 -05:00
Kevin O'Connor 1b56a63abf lib: Update to latest can2040 code
Clear PIO irq flags in pio_sm_setup()
Set TXPENDING during pio_sm_setup()

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-11-23 11:59:24 -05:00
Kevin O'Connor 9727f00e50 docs: Minor update to safe_z_home change description in Config_Changes.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-11-22 18:57:15 -05:00
redstone99 14eec15267
safe_z_home: Fix final z hop to use relative z coordinates (#5879)
After a G28 z-axis homing, there is a final z hop.
It was hoping to height z_hop as an absolute z height rather than relative.

If the z-axis home leaves the head at a z height higher than z_hop,
e.g. because you were using a probe to do z homing,
this meant that it was z hopping in the negative z direction, which
could result in crashing the toolhead.

Signed-off-by: Joshua Redstone <redstone@gmail.com>
2022-11-22 18:55:43 -05:00
Kevin O'Connor c51f169c06 lib: Update to latest can2040 code
Fix PIO "sync" register overflow check
Reduce latency of tx scheduling
Clear ackdone irq from report_note_eof_success()
Defer ack inject until after rx fifo drained
Improve passive/dominant bit conflict check on tx reschedule

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-11-21 09:36:30 -05:00
Kevin O'Connor cfb633a0ec lib: Update to latest can2040 code
Minor comment change to unstuf_pull_bits()
Introduce unstuf_get_raw() helper function
Move crc stuffed bit calculation to data_state_go_crc()
Restore stuffed_bits state on missing ack
Use a single pio_irq_set() function
Reschedule tx if previous tx unexpectedly finished transmit
Simplify report_state handling

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-11-19 10:31:08 -05:00
Kevin O'Connor 8977c4e764 rp2040: Fix watchdog enable
The rp2040 watchdog does not actually reset anything by default.  The
psm_hw->wdsel field must be programmed to actually get a reset on a
watchdog failure.  Program that field so the watchdog is usable.

Also, disable the watchdog before attempting a reboot into the
bootloader.  Otherwise the machine may just reboot a second time due
to a missed watchdog event in the bootloader.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-11-19 10:13:50 -05:00
Kevin O'Connor b9a378c1ca rp2040: Fix boundary check for max gpio pin
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-11-19 10:13:50 -05:00
Yifei Ding d17ef95a3c
mpu9250: add MPU6500 (#5767)
Signed-off-by: Yifei Ding <yifeiding@protonmail.com>
2022-11-19 09:58:24 -05:00
Kevin O'Connor 8a06528747 .github: Minor update to github issue chooser
Clarify that the Contact.md contains "Contact Directions".

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-11-15 16:54:19 -05:00
Kevin O'Connor 5339d138e6 .github: Remove custom issue template
Remove the custom.md github issue template so that github only shows
the choices listed in the config.yml file.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-11-15 16:54:19 -05:00
Kevin O'Connor d2a1dcbbf3 docs: Update Contacts.md with improved github issue tracker description
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-11-15 16:54:19 -05:00
Bradley Methorst 3fb984e152
config: Create printer-anet-a8-2019.cfg (#5902)
Added config for Anet A8 2019 (Plus model)

Signed-off-by: Bradley Methorst <bradley-methorst@outlook.com>
2022-11-15 13:56:14 -05:00
Kevin O'Connor d883c57d77 config: Rename printer-geeetech-301.cfg to printer-geeetech-301-2019.cfg
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-11-14 11:30:27 -05:00
Eric Callahan 5e34b45063 bed_mesh: disallow null profile names
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-11-11 14:27:47 -05:00
Kevin O'Connor 6be0ba78ae config: Remove filament specific settings from printer-geeetech-301.cfg
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-11-11 14:12:20 -05:00
Peter Gruber 0233dd32cc
config: create config for Geeetech 301 (#5830)
Create a working config for the Geeetech 301 printer.

Signed-off-by: Peter Gruber <gruberp@googlemail.com>
2022-11-11 14:08:19 -05:00
Eric Callahan 5b1a667659
linux: use correct gpio bias flags (#5878)
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-11-08 09:56:52 -05:00
Kevin O'Connor 6485ff800b rp2040: Support CanBoot as bootloader
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-11-08 09:53:04 -05:00
Kevin O'Connor 42e9adcfc9 armcm_reset: Introduce Kconfig FLASH_BOOT_ADDRESS value
Specify the arm architecture flash bootup address for each chip type
in Kconfig using a new FLASH_BOOT_ADDRESS setting.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-11-08 09:53:04 -05:00
Kevin O'Connor 11dd273b34 fdcan: Remove spurious executable flag on fdcan.c
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-11-04 11:15:32 -04:00
Grigi 342d3f1414 menu: Conditional display of common Control utils
This will hide features in the Klipper Display menu that isn't applicable
for the machine, therefore we can add extra alignment tools in the Control
menu as well.

Also conditionally displays Setup/Calibration options.

Signed-off-by: Nickolas Grigoriadis <nagrigoriadis@gmail.com>
2022-11-03 16:05:24 -04:00
Kevin O'Connor 762e2c49c7 stm32: Use consistent memory position/size on stm32h743
Use the same memory start address and size on both stm32h750 and
stm32h743.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-11-02 15:35:50 -04:00
Kevin O'Connor 972ae4ab7c stm32: Use stm32f0_serial.c on stm32h7 chips
The stm32h7 uses similar usart hardware as the stm32f0 and stm32g0
chips.  Use the same code implementation for all these chips.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-10-31 15:12:30 -04:00
Alex Voinea 26e6ade175 stm32: fix USART ORE status flag handling
If an USART RX overrun happened on a stm32g0/f0/h7, the ORE flag
would get set by hardware. This flag would also trigger an interrupt.
The problem was that this flag was never cleared on these 3 mcu families
since the ORE flag clear sequence is different to all of the older
chips.
Since the ORE flag is not used in any meaningful way anyway, it was
disabled during the init sequence.

Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
2022-10-31 13:50:15 -04:00
Dmitry Butyugin 96ea871b35 adxl345: Apply correct scaling for X,Y and Z axes
According to ADXL345/ADXL343 datasheets, at 3.3V supply voltage,
which is most frequent in the various boards, the sensitivity of
X and Y axes changes to 265 LSB/g from 256 LSB/g at 2.5V.

Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
2022-10-25 14:41:00 -04:00
Kevin O'Connor d46c95b758 docs: Add a note about fixing underlying bugs in CONTRIBUTING.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-10-25 11:53:55 -04:00
freakyDude ebc3b0def3
config: Add Artillery Sidewinder X2 2022 stock printer.cfg (#5810)
Works for unmodified stock Artillery Sidewinder X2, 
year 2022 with Artillery Ruby v1.2 mainboard. 
All by default connected things are working fine.

Build firmware with architecture STM32F401 with "No bootloader". 
Other settings keep ther defaults

Signed-off-by: Frank Roth <developer@freakydu.de>
2022-10-21 21:03:57 -04:00
D4SK a65e04aff7 docs: Add step rate benchmark for stm32h7
Signed-off-by: Konstantin Vogel <konstantin.vogel@gmx.net>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-10-21 20:33:28 -04:00
D4SK 00191b5cc4 stm32: Enable instruction and data cache on stm32h7
Signed-off-by: Konstantin Vogel <konstantin.vogel@gmx.net>
2022-10-21 20:29:12 -04:00
Dmitry Butyugin 0d9b2cc1fa toolhead: Capture current junction_deviation in a Move class
If a maximum acceleration is changed between two consecutive moves,
this allows to correctly compute the junction velocity between them.

Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
2022-10-17 11:08:56 -04:00
Kevin O'Connor e4c8a24711 stm32: Remove incorrect "spi3" definition from stm32h7
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-10-17 11:01:05 -04:00
JamesH1978 638303b396
spi_flash: Update to fix SKR-3 config (#5827)
it seems I made an error with my code for the SKR 3, and I copied the code from the wrong host , this PR fixes that. I have just retested with the right code and works as expected, this is confirmed by @adelyser who brought the issue to my attention.

Signed-off-by: James Hartley <james@hartleyns.com>
2022-10-13 19:35:07 -04:00
Kevin O'Connor 2bffa925c8 workflows: Lock comments on old PRs (no activity in a year)
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-10-13 17:27:03 -04:00
Kevin O'Connor 6cc104677e lib: Update to latest can2040 code
Fix gpio function selection for PIO1 usage.
Minor variable name changes.
Allow scheduling tx "matched" event after a crc match.
Allow for up to 5 passive bits after unstuf_clear_state().
Pause PIO "rx" bit reception after 10 passive bits.
Signal the CPU to process data every 10 read bits.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-10-13 17:11:57 -04:00
Kevin O'Connor eb9cda91b5 config: Update duet3 mini config to recommend compiling for SAME54P20
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-10-13 11:32:43 -04:00
Kevin O'Connor 4b77f29c1b atsamd: Add support CANbus on ATSAME5x chips
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-10-13 11:28:27 -04:00
Kevin O'Connor 0a9becc391 atsamd: Move bootloader_request() from usbserial.c to main.c
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-10-13 11:27:14 -04:00
Kevin O'Connor bdf79caac4 atsamd: Add Kconfig definitions for same51j19 and same54p20 chips
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-10-13 11:27:14 -04:00
Kevin O'Connor 69bd26b757 lib: Add atmel same51 and same54 build definitions
This also replaces the samd51 component files with the definitions
from the same54 repository.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-10-13 11:27:14 -04:00
Kevin O'Connor 960fd0b1f3 lib: Remove unused gcc/ directories from samd21 and samd51 directories
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-10-13 11:27:14 -04:00
Kevin O'Connor 2c6671d8e1 stm32: Protect message ram with barrier() calls instead of voltaile in fdcan.c
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-10-13 11:21:37 -04:00
Kevin O'Connor ef98cd9aba stm32: No need for fdcan_ram global pointer in fdcan.c
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-10-13 11:21:37 -04:00
Kevin O'Connor 465aaf383f stm32: Minor code movement in fdcan.c
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-10-13 11:21:37 -04:00
Kevin O'Connor 2d4ce1b9b1 test: Add btt manta config files to printers.test
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-10-13 11:16:59 -04:00
BIGTREETECH c51e87c11c
config: Add BigTreeTech Manta M4P & M8P board (#5812)
Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
2022-10-13 11:08:44 -04:00
Apulo 7290c14531
config: Update generic-th3d-ezboard-lite-v2.0.cfg (#5785)
Corrected the build instructions for the TH3D EZBoard V2 to include the command to convert Klipper.elf to a SREC bin format named firmware.bin. The SREC format is required for the bootloader installed on the board.

Signed-off-by: Anthony Dellett <anthony.dellett@gmail.com>
2022-10-06 11:16:13 -04:00
JamesH1978 5fad485b13
spi_flash: Add SKR2, SKR3 and Creality 4.2.2/7 to spi_flash (#5807)
As discussed with Arksine, he has created new working settings for the Creality 4.2.x boards as the original 4.2.7 entry did not work, plus addition of SKR2 and SKR3. Tested on 4.2.2 and SKR2 and SKR3EZ.

These are using the new skip_verify functionality that was recently merged due to them using SDIO

Also removed a double definition for `monster8` it was in main definitions and aliased.

Signed-off-by: James Hartley <james@hartleyns.com>
2022-10-05 15:05:58 -04:00
Stefan Dej b0ffb269d2
print_stats: add `SET_PRINT_STATS_INFO` G-Code for pass slicer variables to Klipper (#5726)
This adds a gcode command that can be used insight the slicer to pass the total layer count and current layer information.

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-10-05 15:02:28 -04:00
alchemyEngine a2482d4f95 z_thermal_adjust: get_temp hotfix
M105 expects get_temp method. Module crashes when gcode_id parameter
is set and M105 called. Add methods as hotfix.

Signed-off-by: Robert Pazdzior <robertp@norbital.com>
2022-09-30 11:19:01 -04:00