Nucleo-L433RC-P garbage from USARTs - why?
Using STM32CubeIDE to create a USART test project with default code generated, the USART is outputting garbage e.g. �)���?�+Ѵ# on a terminal (USB to PC).
Yet using exactly the same default code generation process and same simple test code on two other Nucleo boards Nucleo-L432 and Nucleo-L073RZ a "hello world" test string is printing fine.
Have tried various configuration changes, to clocks etc on the L433RC to no avail.
Have checked the output with a logic analyzer, which shows the same garbage. Have played with baud rates, word length etc to no avail.
Exactly the same problem with USART2 and with USART1. Strangly, carriage return and line feed are being output correctly as 0D and 0A (which is a pretty good indicator that baud rate etc is ok). The garbage ASCII is generally the same hex output but sometimes varies.
The main test programme is very simple. Default setup code generated by STM32CubeIDE plus the following:
#include <stdio.h>
#include <string.h>
char message[] = "Hello World\r\n";
HAL_UART_Transmit(&huart2, (uint8_t*) message, strlen(message), 10000);
HAL_Delay(1000);
Other functions on the board seem to be fine, e.g. comparators, DAC output etc. Going nuts! Is there anything else that might be worth trying?
