AnsweredAssumed Answered

sprintf function does not work in keil compiler

Question asked by Ali Rezaei on Sep 15, 2017
Latest reply on Sep 18, 2017 by Clive One

Hi to all

I am new in STM32 and keil (I used Atmel chips) and now I am getting familier with them.

I made a project and I can send data to serial port with the following function :

"HAL_UART_Transmit(&huart1,(uint8_t *) "Hello\n\r", 7, 10);"

but I do not know why there is no data when I use the following function based on sprintf:

"sprintf((char *) buffer,"23");"

 

The thing is that the code is well compiled and there is no error but the function does not work.

Do I need to add some more code for sprintf function ??!!!

 

Help please  

Outcomes