• Incorrect work of the sprintf function
    char str [4]; sprintf (str, "%.2x", 0x01);//Conversion of byte to the 2nd bit hexadecimal value I expect in str[0] 0 character, in str[1] 1 character, that is '0' and '1'. As a result function...
  • Incorrect work of the sprintf function
    char str [4]; sprintf (str, "%.2x", 0x01);//Conversion of byte to the 2nd bit hexadecimal value I expect in str[0] 0 character, in str[1] 1 character, that is '0' and '1'. As a result function...
  • Float variables not working in sprintf
    I am using uVison4 Compiler and STM32F103 Device. I using sprintf then float variables not working properly. Please help me. float fvalue; char cTest[10]; memset(cTest,0x00,sizeof(cTest));...
  • Float variables not working in sprintf
    I am using uVison4 Compiler and STM32F103 Device. I using sprintf then float variables not working properly. Please help me. float fvalue; char cTest[10]; memset(cTest,0x00,sizeof(cTest));...
  • Sprintf works, but not putchar or printf
    I am using Infineon XC866 and Keil uvision. I selected the LX51 Linker in the project setup. The UART is init through /// Initialization of module 'UART (Serial Interface)' UART_vInit(); which...