boards/arm/stm32: route nucleo-f412zg console through ST-LINK VCP.#18766
Open
aviralgarg05 wants to merge 1 commit intoapache:masterfrom
Open
boards/arm/stm32: route nucleo-f412zg console through ST-LINK VCP.#18766aviralgarg05 wants to merge 1 commit intoapache:masterfrom
aviralgarg05 wants to merge 1 commit intoapache:masterfrom
Conversation
Use the default USART2 PA2/PA3 pinmux for the NUCLEO-F412ZG board so the nsh console comes up on the on-board ST-LINK virtual COM port instead of the PD5/PD6 header pins. This matches the board's shipped solder-bridge routing and fixes the default console path described in issue apache#17722. Signed-off-by: aviralgarg05 <gargaviral99@gmail.com>
1 task
xiaoxiang781216
approved these changes
Apr 20, 2026
linguini1
requested changes
Apr 20, 2026
Contributor
linguini1
left a comment
There was a problem hiding this comment.
Please document this change on the board docs.
Can you please test on hardware?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Fixed the NUCLEO-F412ZG board default console routing so
nshuses the on-board ST-LINK virtual COM port by default.The board header now maps
USART2to thePA2/PA3pinmux instead of thePD5/PD6header pins. This matches the board’s shipped solder-bridge configuration and aligns the default console path with the hardware wiring described in issue #17722.Impact
This change affects only the
boards/arm/stm32/nucleo-f412zgboard configuration.nshconsole now appears on the ST-LINK VCP, which is the expected out-of-the-box serial path.Testing
Host: macOS on Apple Silicon, using the local NuttX workspace and the Apache NuttX Linux CI container image for a clean build environment.
Validation performed:
./tools/checkpatch.sh -c -u -m -f boards/arm/stm32/nucleo-f412zg/include/board.h./tools/configure.sh -E -l nucleo-f412zg:nshmake -j8Build result:
nuttxlinked successfully.nuttx.hexandnuttx.binwere generated successfully.