<?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: How to access symbols in Component Development Environment driver code in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-access-symbols-in-Component-Development-Environment/m-p/479844#M12460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jerry,&lt;/P&gt;&lt;P&gt;- We only can configure the&amp;nbsp; CAN Bit Rate at the initialize mode (INITRQ = 1 and INITAK = 1).&lt;/P&gt;&lt;P&gt;- And you can refer to the calculation formula to writhe the SitBitRate() function, you can find it in&lt;/P&gt;&lt;P&gt;the Date Sheet of your chip.&lt;/P&gt;&lt;P&gt;-In the code of PE, it use these code to configure the BIT Rate:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/30868iED5BE0D582D7C43B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Apr 2016 08:47:00 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2016-04-11T08:47:00Z</dc:date>
    <item>
      <title>How to access symbols in Component Development Environment driver code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-access-symbols-in-Component-Development-Environment/m-p/479841#M12457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When floating the cursor over the Component Inspector properties, I can see the symbol names to access.&amp;nbsp; However, some properties have more symbols listed.&amp;nbsp; See attached picture.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get access to some Processor Expert symbols within the component driver code I am inheriting from FreescaleCAN component.&amp;nbsp; The symbols are specific settings on the Component Inspector view.&amp;nbsp; I know how to get access to the primary symbols for an actual property.&amp;nbsp; I use: @FreescaleCAN@Rate to get the bit rate for the CAN driver.&amp;nbsp; It returns "500 kbit/s".&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to know how I can access the symbols highlighted in the attachment?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My objective is to find the bus block rate before the CAN bit timing prescaler, so I can do some calculations to set the baud rate during runtime.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there is an easier way to get the S08 &lt;SPAN style="text-decoration: underline;"&gt;CANCLK&lt;/SPAN&gt; frequency (maybe from CPU component) then please let me know.&amp;nbsp; Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 21:29:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-access-symbols-in-Component-Development-Environment/m-p/479841#M12457</guid>
      <dc:creator>jerrygirard</dc:creator>
      <dc:date>2016-04-05T21:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to access symbols in Component Development Environment driver code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-access-symbols-in-Component-Development-Environment/m-p/479842#M12458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jerry,&lt;/P&gt;&lt;P&gt;After you configure the CAN bit rate ,you can check the Clock path :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4379iBB3F24A63AB445C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;About the configure code , after click the "generate code " button,&amp;nbsp; you can find the code in the function&lt;/P&gt;&lt;P&gt;of "void CAN1_Init(void) "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 02:26:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-access-symbols-in-Component-Development-Environment/m-p/479842#M12458</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-04-06T02:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to access symbols in Component Development Environment driver code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-access-symbols-in-Component-Development-Environment/m-p/479843#M12459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand your reply, but that is not what I am trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am extending the FreescaleCAN Processor Expert component and adding a SetBitRate() method to allow the bit rate to be changed during runtime.&amp;nbsp; If you know the FreescaleCAN component, the bit rate can only be defined statically through the Component Inspector properties.&amp;nbsp; In my application, I need the option of changing it during runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the method to be a intelligent and calculate the proper prescaler value for any given bit rate.&amp;nbsp; To do this, I need the reference point of the bus clock frequency.&amp;nbsp; This frequency will not change for the life of my project, so I can derive the constant I need from a CPU setting or some other Processor Expert symbol.&amp;nbsp; I just need to know which one to access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 04:38:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-access-symbols-in-Component-Development-Environment/m-p/479843#M12459</guid>
      <dc:creator>jerrygirard</dc:creator>
      <dc:date>2016-04-06T04:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to access symbols in Component Development Environment driver code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-access-symbols-in-Component-Development-Environment/m-p/479844#M12460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jerry,&lt;/P&gt;&lt;P&gt;- We only can configure the&amp;nbsp; CAN Bit Rate at the initialize mode (INITRQ = 1 and INITAK = 1).&lt;/P&gt;&lt;P&gt;- And you can refer to the calculation formula to writhe the SitBitRate() function, you can find it in&lt;/P&gt;&lt;P&gt;the Date Sheet of your chip.&lt;/P&gt;&lt;P&gt;-In the code of PE, it use these code to configure the BIT Rate:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/30868iED5BE0D582D7C43B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 08:47:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-access-symbols-in-Component-Development-Environment/m-p/479844#M12460</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-04-11T08:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to access symbols in Component Development Environment driver code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-access-symbols-in-Component-Development-Environment/m-p/479845#M12461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My solution was to pick up the value I needed from the 'Cpu.h' header file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;CPU_BUS_CLK_HZ&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x01312D00UL &lt;/SPAN&gt;&lt;EM style=": ; color: #c0c0c0; font-size: 10pt;"&gt;/* Initial value of the bus clock frequency in Hz */&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, the value was 20,000,000 decimal (20MHz), which is exactly what I needed for my formula to work correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 16:46:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-access-symbols-in-Component-Development-Environment/m-p/479845#M12461</guid>
      <dc:creator>jerrygirard</dc:creator>
      <dc:date>2016-04-11T16:46:32Z</dc:date>
    </item>
  </channel>
</rss>

