2021-12-23 06:31 AM
Hi. I want to send an "int" with the HAL_UART_Transmit method. But the strange shapes that I added appear in the picture. Why could it be?
2021-12-23 06:33 AM
2021-12-23 06:51 AM
'%d' is not a string. Change it to "%d".
GCC provides a warning when you do this that you should have noticed:
../Core/Src/main.c:120:19: warning: multi-character character constant [-Wmultichar]
../Core/Src/main.c:120:19: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast [-Wint-conversion]