<?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: Floating Point I/O in SDK MQX</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-Point-I-O-in-SDK-MQX/m-p/394130#M13218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I basically did the same thing, but then I had stack size issues.&amp;nbsp; I have a large number of tasks running so I wasn't able to increase the stack size in all of the tasks using printf and scanf.&amp;nbsp; Enabling FP IO adds at least 400 bytes to the stack requirements.&lt;/P&gt;&lt;P&gt;Since I needed both printf and scanf, I made a copy of std_prv.h, deleted the STD_FP_IO define, made sure it was at the top of the include list and put a preprocessor define for STD_FP_IO 1 in my compiler settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This appears to be a bug in the SDK/MQX - they shouldn't be harcoding the define value in one of the distribution header files.&amp;nbsp; Should be controlled in one of the config files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the advice, at least it confirms I was on the correct path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Randy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Nov 2015 15:28:43 GMT</pubDate>
    <dc:creator>randyhermes</dc:creator>
    <dc:date>2015-11-11T15:28:43Z</dc:date>
    <item>
      <title>Floating Point I/O in SDK MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-Point-I-O-in-SDK-MQX/m-p/394128#M13216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to enable floating point I/O for printf and scanf in MQX that comes with SDK 1.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I set MQX_INCLUDE_FLOATING_POINT_IO 1 in mqx_cnfg.h.&amp;nbsp; Didn't seem to have any affect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dig some digging around and found that STD_FP_IO is used to control inclusion of FP code in print_prv.c and scan_prv.c.&lt;/P&gt;&lt;P&gt;This is hard coded as 0 in std_prv.c used by print_prv.c.&lt;/P&gt;&lt;P&gt;I copied std_prv.c, changed STD_FP_IO to 1, and added it as a preprocessor definition to all of the project settings for my libraries and application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First time I tried to run it crashed.&amp;nbsp; Looked like a stack size issue so I doubled the stack for all tasks but still had problems.&lt;/P&gt;&lt;P&gt;Looks like their may be an issue with the FP IO code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing something, some other define I need to set?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Succinct question - how can I enable FP IO?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Randy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Nov 2015 02:59:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-Point-I-O-in-SDK-MQX/m-p/394128#M13216</guid>
      <dc:creator>randyhermes</dc:creator>
      <dc:date>2015-11-07T02:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Floating Point I/O in SDK MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-Point-I-O-in-SDK-MQX/m-p/394129#M13217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Randy,&lt;/P&gt;&lt;P&gt;I did one thing to get floating point working on frdm-k64f using KDS_3.0 and KSDK_1.3.0:&lt;/P&gt;&lt;P&gt;Find C:\Freescale\KSDK_1.3.0\test_frdm-k64f_ksdk_mqx_pe_fp\SDK\rtos\mqx\mqx_stdlib\source\include\std_prv.h&lt;/P&gt;&lt;P&gt;@ line 33&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define STD_FP_IO 1&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;//DES was 0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Note each task you add using PE OS_Task Component also has a check box for "Floating point task" to enable context saving of the floating point registers if you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My project is attached.&lt;/P&gt;&lt;P&gt;&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, 10 Nov 2015 21:06:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-Point-I-O-in-SDK-MQX/m-p/394129#M13217</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-11-10T21:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Floating Point I/O in SDK MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-Point-I-O-in-SDK-MQX/m-p/394130#M13218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I basically did the same thing, but then I had stack size issues.&amp;nbsp; I have a large number of tasks running so I wasn't able to increase the stack size in all of the tasks using printf and scanf.&amp;nbsp; Enabling FP IO adds at least 400 bytes to the stack requirements.&lt;/P&gt;&lt;P&gt;Since I needed both printf and scanf, I made a copy of std_prv.h, deleted the STD_FP_IO define, made sure it was at the top of the include list and put a preprocessor define for STD_FP_IO 1 in my compiler settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This appears to be a bug in the SDK/MQX - they shouldn't be harcoding the define value in one of the distribution header files.&amp;nbsp; Should be controlled in one of the config files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the advice, at least it confirms I was on the correct path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Randy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2015 15:28:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-Point-I-O-in-SDK-MQX/m-p/394130#M13218</guid>
      <dc:creator>randyhermes</dc:creator>
      <dc:date>2015-11-11T15:28:43Z</dc:date>
    </item>
  </channel>
</rss>

