Closed MintyTrebor closed 4 months ago
Used configurator to setup Vcore 3.1 with SKR Pro 1.2, RatOS.cfg sets some wrong pins for the board which leads to Klipper not starting
Please specify exactly what is assigned incorrectly and what you expected.
setting- Electronics -> controller fan to No Fan still leads to pins being assigned to fan_controller_board_pin alias and it being linked to the mcu temp - if the alias is removed klipper errors due to missing alias.
I should probably explain a few things here, as it's not very obvious.
1) The controller fan has nothing to do with mcu temperature.
2) RatOS 2.1 is supposed to be backwards compatible with 2.0 printer.cfg
s
3) The V-Core 3 configuration files existed prior to 2.1
4) The V-Core 3 configuration files includes a [controller_fan]
definition, which cannot be removed without breaking backwards compatibility with 2.0 printer.cfg
s
5) The board pin aliases written to RatOS.cfg
is exclusively for backwards compatibility and to abstract the user overridable convenience settings written to printer.cfg
(so they wouldn't trigger a printer.cfg
change when swapping boards - there are still other issues with this, and these "convenience" settings will be removed entirely in the future, replaced by a dedicated configurator interface, but i digress).
Given these conditions, the V-Core 3 (and other 2.0 supported printers) does not currently support not having a controller fan defined. If you pick "No fan", it'll write the default pin to the pin alias (because backwards compatibility).
I have no good way to detect this, you could argue the bug is that "No fan" is shown as an option for printer configs that actually don't support a "No fan" option, however this doesn't actually cause any issues unless the user decides to use the default controller fan port for something else (disregarding the wiring diagram). However the configurator now knows you're not using a controller fan so we can act on that information for new features and functionality in the future, such as progressively cleaning up the old configuration files, as we move towards fully generated configs.
So, to sum it all up, it's a feature, not a bug, just ignore it :)
Below is a list of the pins changed with the original RatOS.cfg value shown in brackets. The values I have changed are according to the SKR Pro 1.2 pin out diagram, and the pins in the config.cfg file for the board.
[board_pins btt-skr-pro-12]
aliases:
#----------------------------------------------- Y motor pins -----------------------------------------------
# Assigned to slot: "Y"
#------------------------------------------------------------------------------------------------------------
y_uart_pin=PE3 (PD11),
#----------------------------------------------- Z motor pins -----------------------------------------------
# Assigned to slot: "E0"
#------------------------------------------------------------------------------------------------------------
z0_uart_pin=PD4 (PC7),
#---------------------------------------------- Z1 motor pins -----------------------------------------------
# Assigned to slot: "E1"
#------------------------------------------------------------------------------------------------------------
z1_uart_pin=PD1 (PF2),
#---------------------------------------------- Z2 motor pins -----------------------------------------------
# Assigned to slot: "E2"
#------------------------------------------------------------------------------------------------------------
z2_uart_pin=PD6 (PE4),
#############################################################################################################
### STEPPER MOTORS, DRIVERS & SPEED LIMITS
#############################################################################################################
#---------------------------------------------------- Y -----------------------------------------------------
# The B motor in the CoreXY system, located at the rear right of the printer
# Connected to Y on SKR Pro v1.2
#------------------------------------------------------------------------------------------------------------
[tmc2209 stepper_y]
uart_pin: PE3 (PD11)
#---------------------------------------------------- Z -----------------------------------------------------
# The left Z motor for the kinematic bed
# Connected to E0 on SKR Pro v1.2
#------------------------------------------------------------------------------------------------------------
[tmc2209 stepper_z]
uart_pin: PD4 (PC7)
#---------------------------------------------------- Z1 ----------------------------------------------------
# The rear Z motor for the kinematic bed
# Connected to E1 on SKR Pro v1.2
#------------------------------------------------------------------------------------------------------------
[tmc2209 stepper_z1]
uart_pin: PD1 (PF2)
#---------------------------------------------------- Z2 ----------------------------------------------------
# The right Z motor for the kinematic bed
# Connected to E2 on SKR Pro v1.2
#------------------------------------------------------------------------------------------------------------
[tmc2209 stepper_z2]
uart_pin: PD6 (PE4)
I understand the constraint with the fan pin. Is there a recommeded approach to re-assigning a fan pin? - I need to use one for a ptc chamber heater fan control. Any of the three fan pins will do as I do not use any of the SKR Pro's fan pins for my other fans...
Figured out the error is in the board-definition.json, so I updated it and created a pull request 267
I understand the constraint with the fan pin. Is there a recommeded approach to re-assigning a fan pin? - I need to use one for a ptc chamber heater fan control. Any of the three fan pins will do as I do not use any of the SKR Pro's fan pins for my other fans...
You can use a sacrificial pin (an unused port you don't use), for example on the rpi, to free up the pin used for the controller fan:
[controller_fan controller_fan]
pin: rpi:gpio4
Thanks!
What happened
Used configurator to setup Vcore 3.1 with SKR Pro 1.2, RatOS.cfg sets some wrong pins for the board which leads to Klipper not starting. Also in the wizard, setting- Electronics -> controller fan to No Fan still leads to pins being assigned to fan_controller_board_pin alias and it being linked to the mcu temp - if the alias is removed klipper errors due to missing alias.
Relevant sections from RatOS.cfg:
What did you expect to happen
Setting Electronics -> controller fan to No Fan should not assign pin to alias?? + I corrected the wrong pin assignments in printer.cfg as follows which allowed kipper to start :
How to reproduce
Configer printer vcore 3.1 400 using configurator wizard FYI: I also use a beacon and ebb36 1.2 toolboard (just in case that is somehow involved in triggering the configurator issue)
I also checked the config.cfg file for the btt-skr-pro-12 and the pins seem to be defined correctly.
Additional information
No response