Stm32 to Python
I would be happy if you share with me some example codes about transmitting data from stm32 to python via serial!
I would be happy if you share with me some example codes about transmitting data from stm32 to python via serial!
Sorry.
I made a typo error in line below (/r/n vs \r\n):
adc_len = sprintf(adc_buf, "ADC Value=%d/r/n", readValue);
Change it as follow:
adc_len = sprintf(adc_buf, "ADC Value=%d\r\n", readValue);
Otherwise this code works very well (see screenshot below)
Check your hardware connection.
Check your terminal settings baudrate, word length, parity and stop bit must be aligned between USART Initialization and your terminal.
Best regards,
Romain,
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.