<?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>MQX Software SolutionsのトピックRe: how printf unsigned long long uint_64</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-printf-unsigned-long-long-uint-64/m-p/190712#M3663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RuiFaria,&lt;/P&gt;&lt;P&gt;I haven't tried this so am just suggesting one idea.&lt;/P&gt;&lt;P&gt;You might do something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;uint_64 var64=0xfeedbeefdefacbad;&lt;BR /&gt;&amp;nbsp;uint_32 tmp32h=var64&amp;gt;&amp;gt;32;&lt;BR /&gt;&amp;nbsp;uint_32 tmp32l=(var64&amp;lt;&amp;lt;32)&amp;gt;&amp;gt;32;&lt;/P&gt;&lt;P&gt;&amp;nbsp;printf("var60=0x%08X%08X\n", tmp32h, tmp32l);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this might work :smileyhappy:&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Mar 2011 06:19:31 GMT</pubDate>
    <dc:creator>DavidS</dc:creator>
    <dc:date>2011-03-15T06:19:31Z</dc:date>
    <item>
      <title>how printf unsigned long long uint_64</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-printf-unsigned-long-long-uint-64/m-p/190711#M3662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone knows how can i printf a unsigned long long (uint_64) variable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;uint_32 var32&amp;nbsp; = 0;&lt;/P&gt;&lt;P&gt;uint_64 var64 = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;printf("var32 = %lu \n", var32);&lt;/P&gt;&lt;P&gt;printf("var64 = %?? \n", var64);&amp;nbsp; // Question ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: %llu doesn't work for unsigned long long variables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using M52259Demo Board, MQX 3.6.2 and CodeWarrior Coldfire Classic 7.2.1 with C++ Compiler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2011 04:36:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-printf-unsigned-long-long-uint-64/m-p/190711#M3662</guid>
      <dc:creator>RuiFaria</dc:creator>
      <dc:date>2011-03-12T04:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: how printf unsigned long long uint_64</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-printf-unsigned-long-long-uint-64/m-p/190712#M3663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RuiFaria,&lt;/P&gt;&lt;P&gt;I haven't tried this so am just suggesting one idea.&lt;/P&gt;&lt;P&gt;You might do something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;uint_64 var64=0xfeedbeefdefacbad;&lt;BR /&gt;&amp;nbsp;uint_32 tmp32h=var64&amp;gt;&amp;gt;32;&lt;BR /&gt;&amp;nbsp;uint_32 tmp32l=(var64&amp;lt;&amp;lt;32)&amp;gt;&amp;gt;32;&lt;/P&gt;&lt;P&gt;&amp;nbsp;printf("var60=0x%08X%08X\n", tmp32h, tmp32l);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this might work :smileyhappy:&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 06:19:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-printf-unsigned-long-long-uint-64/m-p/190712#M3663</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2011-03-15T06:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: how printf unsigned long long uint_64</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-printf-unsigned-long-long-uint-64/m-p/190713#M3664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;uint_64 var64=0xfeedbeefdefacbad;&lt;BR /&gt;&amp;nbsp;uint_32 tmp32h=(uint_32)(var64&amp;gt;&amp;gt;32);&lt;BR /&gt;&amp;nbsp;uint_32 tmp32l=(uint_32)((var64&amp;lt;&amp;lt;32)&amp;gt;&amp;gt;32);&lt;/P&gt;&lt;P&gt;&amp;nbsp;printf("var64=0x%08X%08X\n", tmp32h, tmp32l);&lt;BR /&gt;&amp;nbsp;printf("var64=0x%08X%08X\n", (uint_32)(var64&amp;gt;&amp;gt;32), (uint_32)((var64&amp;lt;&amp;lt;32)&amp;gt;&amp;gt;32));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output looked like:&lt;/P&gt;&lt;P&gt;var64=0xFEEDBEEFDEFACBAD&lt;BR /&gt;var64=0xFEEDBEEFDEFACBAD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 21:29:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-printf-unsigned-long-long-uint-64/m-p/190713#M3664</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2011-03-15T21:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: how printf unsigned long long uint_64</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-printf-unsigned-long-long-uint-64/m-p/190714#M3665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is a good ideia but it is not exactly what i intend. &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I reported this subject to Support Center and the answer was:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"long long printf support is currently not supported by MQX printf function – we have it logged in our bug tracking system,&amp;nbsp; not sure if it will be solved for verson 3.7.0 which is launched in March 31, but definitely for 3.8.0."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your attention.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 17:50:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-printf-unsigned-long-long-uint-64/m-p/190714#M3665</guid>
      <dc:creator>RuiFaria</dc:creator>
      <dc:date>2011-03-23T17:50:30Z</dc:date>
    </item>
  </channel>
</rss>

