This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/AM3358: GCC C/C++ Float Printing Support for Sitara

Part Number: AM3358


Tool/software: Code Composer Studio

Hi,

is it possible to enable float support for the GCC/Sitara toolchain for float to string conversion via

    std::string buf;
    std::stringstream sbuf(buf);
    sbuf << 1.34 << std::endl;

or

std::string x = std::to_string(1.23);

or

char buf[25] = {'\0'};
sprintf(buf, "test: %.1f", 1.234);

I'm working with

  • ccs1011
  • gcc-arm-none-eabi-7-2018-q2-update
  • pdk_am335x_1_0_17
  • processor_sdk_rtos_am335x_6_03_00_106