-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nucleo_g431rb: Hello world not working #21716
Comments
There seems to be another mistake in the doc in that case (https://docs.zephyrproject.org/latest/boards/arm/nucleo_g431rb/doc/index.html). |
Actually, the nucleo_g431rb board outputs the console on LPUART1 (on VCP_Tx/RX pin PA2, PA3) Note that baudrate > 115200 is reached with LPUART1 clock source different from LSE clock. |
Please have a look at the PR mentioned above. I guess that implements what you describe. I tested the fix and it worked fine with my Nucleo board. |
That's fine, we could also choose to output USART2 on PA2, PA3 (and leave LPUART on PC1, PC0 if needed). |
Well, you're right. We could wire UART2 to those pins. But in the board manual they state that LPUART is the default for the VCP (as far as I understand it). So I guess it makes sense to keep it that way to avoid confusion and be consistent with the manual. So you are saying that we should also configure UART3 and 4? Not sure if that's needed by anyone, but would be easy to add to the PR if you like to have it. |
I agree, we keep LPUART 1 for console. However for UART_2 pin PA14 & PA15 are already assigned to T_SWCLK and T_JDTI, so could we omit any reference to UART2 in An interesting note ( in the |
Ok, I'll update the PR accordingly. |
Describe the bug
The basic hello world example does not work for the Nucleo G431RB (STM32G431 MCU).
To Reproduce
Try the steps according to board description in docs and see that hello world does not output anything on the terminal.
Environment (please complete the following information):
Additional context
The Nucleo board manual states on page 24: "Communication between the target STM32G4 and the STLINK-V3E MCU is enabled on LPUART1 to support the Virtual COM port".
However, the board DTS file selects UART1 for the console:
zephyr/boards/arm/nucleo_g431rb/nucleo_g431rb.dts
Line 16 in 5308a94
Just changing it to use
&lpuart1
didn't fix the problem. As this issue might be related to the clock configuration (#21715), I also tried with baud rates divided by two on host side without any success.LPUART on the board should be connected to PA2 (TX) and PA3 (RX), so that's correct in board spec. However, looking at pinmux.c file,
PA2
is used for bothUSART2
andLPUART1
, which might not be the best idea. I wonder if there was any reason for that or if it was just a mistake.The text was updated successfully, but these errors were encountered: