Sending integer values through UART (STM32L0R8) (HAL drivers)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-06-26 3:05 AM
Posted on June 26, 2016 at 12:05
hi
i am trying to send integer values from my nucleo board to my pc by using UART, i.e. you can take that sensor values. The UART example ''UART_TwoBoards_ComPolling'' in the stm32Cube that uses HAL libraries, only sends strings.data to send defined like this uint8_t aTxBuffer[] = '' ANIL TIRLIOGLU''; and function to send data is like this :HAL_UART_Transmit(&UartHandle, (uint8_t*)aTxBuffer, TXBUFFERSIZE, 5000);How can i send something like uint8_t TxBuffer = 111; #stm32 #adc #hal #hal #c-learning #uart-ft-serial-communications
Labels:
- Labels:
-
ADC
-
STM32Cube MCU Packages
-
UART-USART
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-06-26 8:09 AM
Posted on June 26, 2016 at 17:09
char aTxBuffer[16];
HAL_UART_Transmit(&UartHandle, (uint8_t*)aTxBuffer, sprintf(aTxBuffer, ''%d'', 111), 5000);
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-24 2:09 AM
Were you able to find how to send integers through uart?
