Commit Graph

5200 Commits

Author SHA1 Message Date
Kevin O'Connor 336cc92a0a parsedump: Support running on both python2 and python3
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-12-07 14:31:03 -05:00
bigtreetech a42f615881 stm32: add STM32H723 support
Signed-off-by: Chen.BJ from BigTreeTech chenbj@biqu3d.com
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-12-02 13:55:23 -05:00
bigtreetech 50b2e2e67e lib: update lib/stm32h7 to v1.9.0 for stm32h723
Signed-off-by: Chen.BJ from BigTreeTech chenbj@biqu3d.com
2022-12-02 13:26:02 -05:00
Matt Baker c5d56f4438 stm32g4: implement build,usb,can,i2c,spi,serial,adc.
Signed-off-by: Matt Baker <baker.matt.j@gmail.com>
2022-12-02 11:31:42 -05:00
Matt Baker 9ab367d813 stm32g4: add lib from stm32cubeg4 v1.4.0
Signed-off-by: Matt Baker <baker.matt.j@gmail.com>
2022-12-02 11:31:42 -05:00
Neko-vecter a1de69e39b corexz: Multiple steppers per axis on CoreXZ
Allowing multiple steppers per axis.

Signed-off-by: Vecter Fang <vecterfang@icloud.com>
2022-12-02 11:25:55 -05:00
Kevin O'Connor e02b725602 docs: Note the release of v0.11.0
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-11-28 21:27:09 -05:00
Kevin O'Connor 817339a4ef docs: Add a note about hardware independence to Features.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-11-28 21:14:11 -05:00
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