<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unable to print float values using PRINTF() in i.MX93EVK in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/Unable-to-print-float-values-using-PRINTF-in-i-MX93EVK/m-p/2078853#M2877</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I am working with an imx93evk&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;sdk_2_16&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;(I am not sure how I generated it, will provide the generation steps in next post).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I observed that, the "&lt;/SPAN&gt;&lt;STRONG&gt;PRINTF()&lt;/STRONG&gt;&lt;SPAN&gt;" function is not able to print float values (&lt;/SPAN&gt;&lt;STRONG&gt;it will only print textual content and remains blank in the place of float values&lt;/STRONG&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I read in this&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/MCUXpresso-IDE/Printf-won-t-print-floats/m-p/1093045#M6046" target="_self"&gt;query&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;that, I need to enable some macros during project generation, but since my project is already generated, I couldn't regenerate it (&lt;/SPAN&gt;&lt;STRONG&gt;there are many untracked changes which will be lost if I rebuild again&lt;/STRONG&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, is there a way where I can modify in the source code, so that I can achieve this. (I tried enabling the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;PRINT_FLOAT_ENABLE&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;macro but yet it is not working)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the configuration, I currently have :&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;PRINT_FLOAT_ENABLE = 1&lt;BR /&gt;SDK_DEBUG_CONSOLE = 1&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Apr 2025 07:14:30 GMT</pubDate>
    <dc:creator>Vikas7Bal</dc:creator>
    <dc:date>2025-04-11T07:14:30Z</dc:date>
    <item>
      <title>Unable to print float values using PRINTF() in i.MX93EVK</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Unable-to-print-float-values-using-PRINTF-in-i-MX93EVK/m-p/2078853#M2877</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am working with an imx93evk&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;sdk_2_16&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;(I am not sure how I generated it, will provide the generation steps in next post).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I observed that, the "&lt;/SPAN&gt;&lt;STRONG&gt;PRINTF()&lt;/STRONG&gt;&lt;SPAN&gt;" function is not able to print float values (&lt;/SPAN&gt;&lt;STRONG&gt;it will only print textual content and remains blank in the place of float values&lt;/STRONG&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I read in this&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/MCUXpresso-IDE/Printf-won-t-print-floats/m-p/1093045#M6046" target="_self"&gt;query&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;that, I need to enable some macros during project generation, but since my project is already generated, I couldn't regenerate it (&lt;/SPAN&gt;&lt;STRONG&gt;there are many untracked changes which will be lost if I rebuild again&lt;/STRONG&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, is there a way where I can modify in the source code, so that I can achieve this. (I tried enabling the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;PRINT_FLOAT_ENABLE&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;macro but yet it is not working)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the configuration, I currently have :&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;PRINT_FLOAT_ENABLE = 1&lt;BR /&gt;SDK_DEBUG_CONSOLE = 1&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 07:14:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Unable-to-print-float-values-using-PRINTF-in-i-MX93EVK/m-p/2078853#M2877</guid>
      <dc:creator>Vikas7Bal</dc:creator>
      <dc:date>2025-04-11T07:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to print float values using PRINTF() in i.MX93EVK</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Unable-to-print-float-values-using-PRINTF-in-i-MX93EVK/m-p/2079771#M2884</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;How did you modify your source code?&lt;/P&gt;
&lt;P&gt;Please try to define these flags before&amp;nbsp;fsl_debug_console.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;// main.c
#define PRINTF_FLOAT_ENABLE 1
#define SDK_DEBUGCONSOLE 1

#include "fsl_debug_console.h"
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not work, then try to&amp;nbsp; modify LDFLAGS&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;-Wl,-u,_printf_float
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 08:42:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Unable-to-print-float-values-using-PRINTF-in-i-MX93EVK/m-p/2079771#M2884</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-04-14T08:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to print float values using PRINTF() in i.MX93EVK</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Unable-to-print-float-values-using-PRINTF-in-i-MX93EVK/m-p/2083233#M2903</link>
      <description>Hi, Zhiming thanks for your quick response!&lt;BR /&gt;&lt;BR /&gt;I have tried defining those flags before fsl_debug_console.h, but still no luck with it&lt;BR /&gt;&lt;BR /&gt;However, I have tried -Wl,-u,_printf_float this linker flag and it started working!&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Fri, 18 Apr 2025 09:34:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Unable-to-print-float-values-using-PRINTF-in-i-MX93EVK/m-p/2083233#M2903</guid>
      <dc:creator>Vikas7Bal</dc:creator>
      <dc:date>2025-04-18T09:34:25Z</dc:date>
    </item>
  </channel>
</rss>

