<?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 MQX 4.1 bool type conflict issues in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-bool-type-conflict-issues/m-p/300250#M9646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am/was working on a project I did with CW10.5 and MQX 4.0.1 starting from a BSP TWR-K60F120M.&amp;nbsp; The projects works fine so it's in final development part.&amp;nbsp; As I still have some work and that another board software to do with the same configuration I started to update to MQX4.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I installed MQX4.1 (new folder) and cloned it to my workspace to have a MQX copy with BSP from BSP TWR-K60F120M. (As I did for 2 projects now and works well)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some PE components that I created, as ADC; SPI; FTM; Flash, etc...&amp;nbsp;&amp;nbsp; I encounter the problem with bool type.&amp;nbsp; I read that in PE_Types.h I should add a "#ifndef bool", that fixes most of issues. (workaround)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I still have a type issue for 3 functions. I cannot find from where it comes, as bool is also used in some structure definitions, etc.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bool SPI_Eeprom_GetBlockReceivedStatus(LDD_TDeviceData *DeviceDataPtr)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;bool SPI_Eeprom_GetBlockSentStatus(LDD_TDeviceData *DeviceDataPtr)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;bool SPI1_Inc_GetBlockSentStatus(LDD_TDeviceData *DeviceDataPtr)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error: conflicting types for 'SPI1_Inc_GetBlockSentStatus'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help would be welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;-stéphan-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Mar 2014 13:26:25 GMT</pubDate>
    <dc:creator>aroste</dc:creator>
    <dc:date>2014-03-20T13:26:25Z</dc:date>
    <item>
      <title>MQX 4.1 bool type conflict issues</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-bool-type-conflict-issues/m-p/300250#M9646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am/was working on a project I did with CW10.5 and MQX 4.0.1 starting from a BSP TWR-K60F120M.&amp;nbsp; The projects works fine so it's in final development part.&amp;nbsp; As I still have some work and that another board software to do with the same configuration I started to update to MQX4.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I installed MQX4.1 (new folder) and cloned it to my workspace to have a MQX copy with BSP from BSP TWR-K60F120M. (As I did for 2 projects now and works well)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some PE components that I created, as ADC; SPI; FTM; Flash, etc...&amp;nbsp;&amp;nbsp; I encounter the problem with bool type.&amp;nbsp; I read that in PE_Types.h I should add a "#ifndef bool", that fixes most of issues. (workaround)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I still have a type issue for 3 functions. I cannot find from where it comes, as bool is also used in some structure definitions, etc.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bool SPI_Eeprom_GetBlockReceivedStatus(LDD_TDeviceData *DeviceDataPtr)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;bool SPI_Eeprom_GetBlockSentStatus(LDD_TDeviceData *DeviceDataPtr)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;bool SPI1_Inc_GetBlockSentStatus(LDD_TDeviceData *DeviceDataPtr)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error: conflicting types for 'SPI1_Inc_GetBlockSentStatus'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help would be welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;-stéphan-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 13:26:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-bool-type-conflict-issues/m-p/300250#M9646</guid>
      <dc:creator>aroste</dc:creator>
      <dc:date>2014-03-20T13:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.1 bool type conflict issues</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-bool-type-conflict-issues/m-p/300251#M9647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check MQX_Release_Notes.pdf, section: 5.19 Bool Type Conflict in Processor Expert BSPs and MQX Applications&lt;/P&gt;&lt;P&gt;perhaps it will help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 21:24:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-bool-type-conflict-issues/m-p/300251#M9647</guid>
      <dc:creator>Martin_</dc:creator>
      <dc:date>2014-03-20T21:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.1 bool type conflict issues</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-bool-type-conflict-issues/m-p/300252#M9648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer. Yes I read already that part, it's why I said that this workaround in the PE_Types.h has fixed most of error.&amp;nbsp; But I still have 3 remaining errors for the functions listed above generated by PE that I don't know how to fix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;-stéphan-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 07:21:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-bool-type-conflict-issues/m-p/300252#M9648</guid>
      <dc:creator>aroste</dc:creator>
      <dc:date>2014-03-21T07:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.1 bool type conflict issues</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-bool-type-conflict-issues/m-p/300253#M9649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi BR,&lt;/P&gt;&lt;P&gt;I had same issue several weeks ago so I just changed the return definition to "unsigned int" in all locations.&amp;nbsp; My assumption it is a PE issue that will get resolved so this is just a workaround.&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, 01 Apr 2014 20:34:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-bool-type-conflict-issues/m-p/300253#M9649</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2014-04-01T20:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.1 bool type conflict issues</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-bool-type-conflict-issues/m-p/300254#M9650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Define bool to always be an unsigned char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At line 32 in stdbool.h, just replace &lt;EM&gt;&lt;STRONG&gt;#define bool _Bool&lt;/STRONG&gt;&lt;/EM&gt; by &lt;EM&gt;&lt;STRONG&gt;#define bool unsigned char.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;You might want to make a copy of the file before because it comes with the distribution of CW. &lt;/P&gt;&lt;P&gt;The file is located here:&lt;STRONG&gt; "&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;CW MCU v10.6\MCU\ARM_GCC_Support\ewl\EWL_C\include\stdbool.h"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;- Luc&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 09:49:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-bool-type-conflict-issues/m-p/300254#M9650</guid>
      <dc:creator>lvw</dc:creator>
      <dc:date>2014-09-11T09:49:40Z</dc:date>
    </item>
  </channel>
</rss>

