<?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 Re: Compile time error with PE generated flexcan code in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Compile-time-error-with-PE-generated-flexcan-code/m-p/463825#M4916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using MK26FN2M0VMD18.&amp;nbsp; For the configuration, I think I am using all of the default settings for now. RxD is PTA13 and TxD is PTA12. I named the component CAN0. I am using both of the K26 modules, CAN0 and CAN1. I get the error in both header files. I named the CAN1 component CAN1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just getting the project started and just building frequently as I add components. I have not added much of my own code yet. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I was typing this it occurred to me what the problem might be. I thought maybe it could be the name I used for the CAN components in PE. I changed the names of the components in PE, re-generated the PE code, and built the project.&amp;nbsp; That fixed the problem. I changed the component names back to how I had them and the problem came back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem solved. Resolution: The component name field CAN NOT match the Device name on the properties tab of the CAN Component Inspector. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A nice improvement to PE would be to detect this issue when the component is named. :-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jan 2016 05:51:48 GMT</pubDate>
    <dc:creator>thomasolenik</dc:creator>
    <dc:date>2016-01-04T05:51:48Z</dc:date>
    <item>
      <title>Compile time error with PE generated flexcan code</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Compile-time-error-with-PE-generated-flexcan-code/m-p/463823#M4914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using KDS 3.1.0, KSDK 1.3, and Processor Expert 3.0.2.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting a compile time error in the PE generated code.The source of the error was line 82 of the the flexcan header files. Original code read "#define CAN0_IDX CAN0_IDX" The error generated was "'CAN0_IDX' undeclared (first use in this function)". By changing the line to "#define CAN0_IDX 0" I was then able to build the project, but have a warning that states ""CAN0_IDX" redefined [enabled by default]". &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not yet tried to pick through the generated code to see how this macro is used. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a bug or an oversight on my part?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jan 2016 21:53:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Compile-time-error-with-PE-generated-flexcan-code/m-p/463823#M4914</guid>
      <dc:creator>thomasolenik</dc:creator>
      <dc:date>2016-01-03T21:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Compile time error with PE generated flexcan code</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Compile-time-error-with-PE-generated-flexcan-code/m-p/463824#M4915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which chip do you use , and how do you configure the CAN component ?&lt;/P&gt;&lt;P&gt;Please tell me how can i reproduce your problem step by step, or you can aslo&lt;/P&gt;&lt;P&gt;send your project to me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 02:25:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Compile-time-error-with-PE-generated-flexcan-code/m-p/463824#M4915</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-01-04T02:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Compile time error with PE generated flexcan code</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Compile-time-error-with-PE-generated-flexcan-code/m-p/463825#M4916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using MK26FN2M0VMD18.&amp;nbsp; For the configuration, I think I am using all of the default settings for now. RxD is PTA13 and TxD is PTA12. I named the component CAN0. I am using both of the K26 modules, CAN0 and CAN1. I get the error in both header files. I named the CAN1 component CAN1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just getting the project started and just building frequently as I add components. I have not added much of my own code yet. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I was typing this it occurred to me what the problem might be. I thought maybe it could be the name I used for the CAN components in PE. I changed the names of the components in PE, re-generated the PE code, and built the project.&amp;nbsp; That fixed the problem. I changed the component names back to how I had them and the problem came back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem solved. Resolution: The component name field CAN NOT match the Device name on the properties tab of the CAN Component Inspector. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A nice improvement to PE would be to detect this issue when the component is named. :-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 05:51:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Compile-time-error-with-PE-generated-flexcan-code/m-p/463825#M4916</guid>
      <dc:creator>thomasolenik</dc:creator>
      <dc:date>2016-01-04T05:51:48Z</dc:date>
    </item>
  </channel>
</rss>

