We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello everyone;
I'm using a STM32F4-DISCOVERY BOARD, when i'm trying to send datas over hal uart it only sends ASCII types of datas but in my project i must send binaries, strings, floats, chars kind a all of the data types. But as i mentioned it only sends ASCIIs. I need help :(
Thanks for your attention.
HAL_UART_Transmit(&huart2, (uint8_t *)charArray, strlen(charArray), 10); **** This is the code which i'm using
.
No, that's not true: It just sends bytes - it neither knows nor cares what those bytes represent.
See, for example: community.st.com/.../187387-sending-integers-over-usart-as-ascii-characters-using-hal-libraries
(however, strlen does only work for NUL-terminated strings)
Note that none of this has anything to do with Keil.
>> i must send binaries, strings, floats, chars kind a all of the data types.
Step#1 understand how these forms of data are held and represented in memory.
Data Representation, secondary school level computer studies.