Basic Information:
Printer Model:Custom
MCU / Printerboard: STM32F446 / Custom
Host / SBC: RPI 3A+
klippy.log: Not Relevant
Describe your issue:
When configuring UART3 for the STM32F446 the default pins in STM32CubeIDE are PC5/PB10 (RX/TX), with alternatives PC10/PC11. I would like to use UART3 for controlling TMC2209s, but I don’t see any matching pin combinations in src/stm32/serial.c.
Am I correct in thinking that I would need to build klipper with custom options in serial.c?
Current options:
#elif CONFIG_STM32_SERIAL_USART3
DECL_CONSTANT_STR("RESERVE_PINS_serial", "PB11,PB10");
#define GPIO_Rx GPIO('B', 11)
#define GPIO_Tx GPIO('B', 10)
#define GPIO_AF_MODE 7
#define USARTx USART3
#define USARTx_IRQn USART3_IRQn
#elif CONFIG_STM32_SERIAL_USART3_ALT_PD9_PD8
DECL_CONSTANT_STR("RESERVE_PINS_serial", "PD9,PD8");
#define GPIO_Rx GPIO('D', 9)
#define GPIO_Tx GPIO('D', 8)
#define GPIO_AF_MODE 7
#define USARTx USART3
#define USARTx_IRQn USART3_IRQn