AnsweredAssumed Answered

Transmit Single Byte Using UART

Question asked by mattoo.anuj on Sep 2, 2016
Latest reply on Sep 3, 2016 by mattoo.anuj
I am working on STM32F0. I am suing Uart HAL API to send a command to transmit data over UART which is  

  char *TxBuffer="ABCD\n\r";
  int len = strlen(TxBuffer);

However I am unable to send single byte using above Command. If I want to send 'A' , It shows the warning that "incompatible integer to pointer conversion passing int to parameter type 'uint8_t *'.

How can I pass unsigned char values over UART or integer values? I am able to pass string over uart.