<?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>MCUXpresso IDEのトピックRe: How to print 64-bit data type (to UART console)?</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693899#M780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I am not going to debug your project for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 May 2017 17:20:39 GMT</pubDate>
    <dc:creator>converse</dc:creator>
    <dc:date>2017-05-31T17:20:39Z</dc:date>
    <item>
      <title>How to print 64-bit data type (to UART console)?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693889#M770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In MCUXpresso-IDE, when I use CMSIS-DSP function: arm_dot_prod_q15() :&lt;/P&gt;&lt;P&gt;* I got a "q63_t" type data: result = 5 (I debug with break-point)&lt;/P&gt;&lt;P&gt;* But when I print with:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PRINTF("data: %X \r\n", result); &amp;nbsp;===&amp;gt; &amp;nbsp;data: 430C0000 &amp;nbsp; &amp;nbsp; &amp;nbsp; (It should be: data: 5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what is wrong, how to deal with "q63_t" data type?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 15:43:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693889#M770</guid>
      <dc:creator>jerrylian</dc:creator>
      <dc:date>2017-05-26T15:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to print "q63_t" data type?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693890#M771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your PRINTF being vectored onto the SDK DEBUGCONSOLE output (typically output via UART), or the C library's printf function (typically output via semihosting) ? See section 11.5 "Use of printf" of the MCUXpresso IDE v10.0.0 User Guide for more background on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might be useful to see your actual project (use Quickstart Panel -&amp;gt; Export option), or at least see the content of your build console after doing a clean build.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2017 19:59:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693890#M771</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2017-05-28T19:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to print "q63_t" data type?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693891#M772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am somewhat confused by so many print functions.&lt;/P&gt;&lt;P&gt;But now I have more observations: (I am printing via UART, and just using templates from demo projects)&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;uint64_t v1=12;&lt;/P&gt;&lt;P&gt;uint32_t v2=34;&lt;/P&gt;&lt;P&gt;uint16_t v3=56;&lt;/P&gt;&lt;P&gt;PRINTF("values: %d %d %d \r\n", v2, v2, v3); &amp;nbsp; &amp;nbsp; ===&amp;gt; &amp;nbsp;values: 34 34 56&lt;BR /&gt; PRINTF("values: %d %d %d \r\n", v1, v2, v3); &amp;nbsp; &amp;nbsp; ===&amp;gt; &amp;nbsp;values: 536935956 12 0&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So obviously (by the way, I am testing on board TWR-K60D100M):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;* Printing 64-bit values messes up everything!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how to fix this bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 14:58:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693891#M772</guid>
      <dc:creator>jerrylian</dc:creator>
      <dc:date>2017-05-30T14:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to print "q63_t" data type?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693892#M773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The bug is in your code... %d is trying to print a 32 bit value only. To tell printf that is is a 64-bit value, you need to use %lld. Suggest you read about printf formatting codes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 15:57:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693892#M773</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2017-05-30T15:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to print "q63_t" data type?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693893#M774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but I tried both "%ld" and "%lld", all seem to be wrong code, it just print:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;PRINTF("values: %lld %d %d \r\n", v1, v2, v3); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ===&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;values: lld 536935956 12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;So what is the correct format code for 64-bit value?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 16:12:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693893#M774</guid>
      <dc:creator>jerrylian</dc:creator>
      <dc:date>2017-05-30T16:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to print 64-bit data type?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693894#M775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is PRINTF? what is wrong with using just printf?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 20:20:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693894#M775</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2017-05-30T20:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to print 64-bit data type?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693895#M776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have just run this code&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #006141;"&gt;uint64_t&lt;/SPAN&gt; v1=12;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN style="color: #006141;"&gt;uint32_t&lt;/SPAN&gt; v2=34;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN style="color: #006141;"&gt;uint16_t&lt;/SPAN&gt; v3=56;&lt;/P&gt;&lt;P style="color: #3933ff; font-size: 11px;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #793d93;"&gt;printf&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;"values: %&lt;SPAN style="text-decoration: underline;"&gt;lld&lt;/SPAN&gt; %d %d \r\n"&lt;SPAN style="color: #000000;"&gt;, v1, v2, v3);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3933ff; font-size: 11px;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #793d93;"&gt;printf&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;"values: %d %d %&lt;SPAN style="text-decoration: underline;"&gt;lld&lt;/SPAN&gt; \r\n"&lt;SPAN style="color: #000000;"&gt;, v3, v2, v1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;which gives this output&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;values: 12 34 56&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;values: 56 34 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. it works as expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 20:30:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693895#M776</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2017-05-30T20:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to print 64-bit data type?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693896#M777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;* what IDE did you use?&lt;/P&gt;&lt;P&gt;* And did you print inside IDE? I use PRINTF to print to UART (SDK DEBUG CONSOLE).&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;(I guess PRINTF == printf if you print inside IDE. BUT it seems that &lt;STRONG&gt;printf can't print to UART!&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 20:51:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693896#M777</guid>
      <dc:creator>jerrylian</dc:creator>
      <dc:date>2017-05-30T20:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to print 64-bit data type (to UART console)?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693897#M778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used MCUXpresso IDE. Yes, I printed to the console. Suggest you try the same to track down the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your previous post was interesting. You said the output was&lt;/P&gt;&lt;P style="color: #51626f; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;PRINTF("values: %lld %d %d \r\n", v1, v2, v3); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ===&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;values: &lt;STRONG&gt;lld&lt;/STRONG&gt; 536935956 12&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;i.e. the (underlying) printf you are using does not understand %lld formatting, which implies that it is incapable of printing 64 bit values. So, try using standard printf to print to the console, then gradually change other things until you find the issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 07:31:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693897#M778</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2017-05-31T07:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to print "q63_t" data type?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693898#M779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, LPCX support:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I export and upload my project (base on "demo hello world" project).&lt;/P&gt;&lt;P&gt;Please check why I can't print 64-bit values to UART console.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 16:05:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693898#M779</guid>
      <dc:creator>jerrylian</dc:creator>
      <dc:date>2017-05-31T16:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to print 64-bit data type (to UART console)?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693899#M780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I am not going to debug your project for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 17:20:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693899#M780</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2017-05-31T17:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to print 64-bit data type (to UART console)?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693900#M781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no worries. I am providing the project upon the request of the guy "LPCX support", he seems to be NXP staff.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 17:38:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693900#M781</guid>
      <dc:creator>jerrylian</dc:creator>
      <dc:date>2017-05-31T17:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to print 64-bit data type (to UART console)?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693901#M782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need&amp;nbsp;to define&amp;nbsp;symbol&lt;/P&gt;&lt;P&gt;PRINTF_ADVANCED_ENABLE=1&lt;/P&gt;&lt;P&gt;in your build settings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 15:06:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693901#M782</guid>
      <dc:creator>Ray_V</dc:creator>
      <dc:date>2017-06-01T15:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to print 64-bit data type (to UART console)?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693902#M783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Raymundo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answer works for me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 14:16:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-print-64-bit-data-type-to-UART-console/m-p/693902#M783</guid>
      <dc:creator>jerrylian</dc:creator>
      <dc:date>2017-06-02T14:16:04Z</dc:date>
    </item>
  </channel>
</rss>

