<?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: MQX, AR4100 and bool...</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-AR4100-and-bool/m-p/446328#M14953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yvan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According with the Getting Started with Freescale MQX™ RTOS document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Starting with the MQX RTOS version 4.1.0, the standard C99 integer and boolean types (from stdlib.h and stdbool.h) are&lt;/P&gt;&lt;P&gt;used instead of the proprietary MQX RTOS types. When porting the application to the MQX RTOS version 4.1.0,&lt;/P&gt;&lt;P&gt;compilation issues could occur. The psptypes_legacy.h header file is available and contains the definition of the MQX RTOS&lt;/P&gt;&lt;P&gt;legacy types. This file can be included in the MQX RTOS application to overcome most of the compilation problems caused&lt;/P&gt;&lt;P&gt;by the change of types. To avoid potential problems, adopt the C99 types in your application.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Aug 2015 22:55:33 GMT</pubDate>
    <dc:creator>soledad</dc:creator>
    <dc:date>2015-08-24T22:55:33Z</dc:date>
    <item>
      <title>MQX, AR4100 and bool...</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-AR4100-and-bool/m-p/446327#M14952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;CW10.6 / MQX 4.2 / K60d100m&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a general question, since I have a lot of unresolved crashes with UART in itty.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;From &lt;A href="https://community.nxp.com/message/439212"&gt;Re: Bug Report: In MQX 4.1 change of size of bool can cause stack corruption&lt;/A&gt;&amp;nbsp; :&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;&lt;EM&gt;In MQX 4.0.x a boolean type was an alias of an unsigned long&amp;nbsp; (32bits).&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;&lt;EM&gt;In MQX 4.1.x a bool is a C99 standard type, and is guaranteed to be 8 bits on all platforms.&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;With Atheros AR4100, we MUST use boolean as 32 bits : a_types.h :&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;/* NOTE: A_BOOL is a type that is used in various WMI commands and events.&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt; * as such it is a type that is shared between the wifi chipset and the host.&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt; * It is required for that reason that A_BOOL be treated as a 32-bit/4-byte type.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the same post, bool in 32 bits can provides stack problems even if I can read (from MQX 4.2 release) :&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;MQX-4406 Change of bool type size and casting return types can cause stack corruption. IOCTL bool param handling in _io_cdc_serial_ioctl() corrected. IOCTL bool param handling in NANDFLASH_IOCTL_WRITE_PROTECTED ioctl + minor changes in esai example have been made.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, how must be my bool type in stdbool.h to continue using AR4100 ??? unsigned char ? uint32 ? other ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Yvan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 10:02:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-AR4100-and-bool/m-p/446327#M14952</guid>
      <dc:creator>yb</dc:creator>
      <dc:date>2015-08-18T10:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: MQX, AR4100 and bool...</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-AR4100-and-bool/m-p/446328#M14953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yvan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According with the Getting Started with Freescale MQX™ RTOS document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Starting with the MQX RTOS version 4.1.0, the standard C99 integer and boolean types (from stdlib.h and stdbool.h) are&lt;/P&gt;&lt;P&gt;used instead of the proprietary MQX RTOS types. When porting the application to the MQX RTOS version 4.1.0,&lt;/P&gt;&lt;P&gt;compilation issues could occur. The psptypes_legacy.h header file is available and contains the definition of the MQX RTOS&lt;/P&gt;&lt;P&gt;legacy types. This file can be included in the MQX RTOS application to overcome most of the compilation problems caused&lt;/P&gt;&lt;P&gt;by the change of types. To avoid potential problems, adopt the C99 types in your application.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 22:55:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-AR4100-and-bool/m-p/446328#M14953</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2015-08-24T22:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: MQX, AR4100 and bool...</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-AR4100-and-bool/m-p/446329#M14954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soledad,&lt;/P&gt;&lt;P&gt;I can NOT use C99 in my app because your (FREESCALE / Atheros) code doesn't support it for boolean type. I had a look at the AR4100 driver, there are too more changes and tests to change the boolean type...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yvan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 08:22:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-AR4100-and-bool/m-p/446329#M14954</guid>
      <dc:creator>yb</dc:creator>
      <dc:date>2015-08-25T08:22:33Z</dc:date>
    </item>
  </channel>
</rss>

