STM32F407: Not able to write binary data
Posted: Tue Jan 16, 2018 10:41 am
Hello,
So i am currently reading the data from a sensor in an buffer created by byte array. So as usual the data recevied from the sensor are binary 1 or 0.
So when i try to write that byte array using uart.write(bytearray), i get garbage values printed on terminal.
So how can i solve this.
The baudrate is correctly arranged, and i am able to read data and also can write strings. But only binary data is not getting printed.
Even simple example like :
uart.writechar(1) is giving me garbage value.
Please help .
Thankyou
So i am currently reading the data from a sensor in an buffer created by byte array. So as usual the data recevied from the sensor are binary 1 or 0.
So when i try to write that byte array using uart.write(bytearray), i get garbage values printed on terminal.
So how can i solve this.
The baudrate is correctly arranged, and i am able to read data and also can write strings. But only binary data is not getting printed.
Even simple example like :
uart.writechar(1) is giving me garbage value.
Please help .
Thankyou