For a SKR Mini E3 V3.0 make UART 5 available on PD2 and PD3 #26825
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
A discord user tommat6117 wanted to connect octoprint via serial to their SKR Mini E3 V3.0 (not via USB)
I'm guessing that they have a BTT TFT so the TFT serial port and the serial port on EXP1 are not available, leaving no documented options.
At first they wanted software serial on any of the IO pins (PD0,PD2,PD3,PD4,PD5)
I pointed out that software serial was a bad idea, and Marlin doesn't support software serial ports for standard gcode serial ports.
After a little digging I noticed that hardware UART 5 can be configured to be on PD2 (RX) and PD3 (TX)
The current build environment sets up UART 5 pins as PD2 (RX) and PC12 (TX), PC12 being the POWER_LOSS_PIN on the PWR-DET plug.
Updated the build environment STM32G0B1RE_btt
with -DPIN_SERIAL5_RX=PD_2 -DPIN_SERIAL5_TX=PD_3
So now any user can use UART 5 on PD2, PD3 easily
Requirements
A desire to use UART 5
Benefits
UART 5 works "out of the box"
Related Issues
https://discord.com/channels/461605380783472640/491165528295997450/1211624259332612126