<?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: PIT Build Error on DEVKIT-5744P('TIMER_LED_IN_A' undeclared (first use in this function)) in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PIT-Build-Error-on-DEVKIT-5744P-TIMER-LED-IN-A-undeclared-first/m-p/801696#M2332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/fortunely"&gt;fortunely&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to be a problem with the fact that the #define TIMER_LED_IN_A is in the &amp;lt;model_name&amp;gt;.c and used in&amp;nbsp; pit_ch1_isr.c. This last file does not include the #defines from any .c file. There is a quick fix for you to force the TIMER_LED_IN_A not to be used in pit_ch1_isr.c file. You'll have to:&lt;/P&gt;&lt;P&gt;&amp;nbsp; - right click on the chart from Function-Call Subsystem 1, go to &lt;STRONG&gt;Block_Parameters&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; - from there, please go to &lt;STRONG&gt;Code Generation tab&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; - and select &lt;STRONG&gt;Nonreusable function&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way, Simulink Coder will generate a function call in pit_ch1_isr.c (something like TIMER_LED_Chart() ), that function being defined in &amp;lt;model_name&amp;gt;.c file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jul 2018 08:04:01 GMT</pubDate>
    <dc:creator>constantinrazva</dc:creator>
    <dc:date>2018-07-24T08:04:01Z</dc:date>
    <item>
      <title>PIT Build Error on DEVKIT-5744P('TIMER_LED_IN_A' undeclared (first use in this function))</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PIT-Build-Error-on-DEVKIT-5744P-TIMER-LED-IN-A-undeclared-first/m-p/801695#M2331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does any one can help me?&lt;/P&gt;&lt;P&gt;I want to make a demo on DEVKIT-5744P, which a led's state can &amp;nbsp;toggle at 1s(1s light on, and then 1s light off) . But it can not &amp;nbsp;build successfully. It seems that my state A is not known by PIT ISR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;0.Error message&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;pit_ch1_isr.c: In function 'PIT_Ch1_ISR': &lt;BR /&gt;pit_ch1_isr.c:24:38: error: 'TIMER_LED_IN_A' undeclared (first use in this function) &lt;BR /&gt; TIMER_LED_DW.is_c1_TIMER_LED = TIMER_LED_IN_A; &lt;BR /&gt; ^ &lt;BR /&gt;pit_ch1_isr.c:24:38: note: each undeclared identifier is reported only once for each function it appears in &lt;BR /&gt;pit_ch1_isr.c:29:40: error: 'TIMER_LED_IN_A1' undeclared (first use in this function) &lt;BR /&gt; TIMER_LED_DW.is_c1_TIMER_LED = TIMER_LED_IN_A1; &lt;BR /&gt; ^ &lt;BR /&gt;gmake: *** [pit_ch1_isr.o] Error 1&lt;BR /&gt;### Creating HTML report file TIMER_LED_codegen_rpt.html&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_12.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/65375i9BE143E5B2CE3DD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_12.png" alt="pastedImage_12.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.Environment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;EVB: DEVKIT-5744P&lt;/P&gt;&lt;P&gt;Reference demo :&amp;nbsp;mbdtbx_MPC574xP\mbdtbx_pnt\Examples\&lt;STRONG&gt;eTimer_QD_pnt.mdl&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.Settings&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Figure1 System diagram&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/65376i23EFCAC1A26C03BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Figure2 PIT's Function Call Subsystem1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/65377i8F507B7BEF0FFAB0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Figure3 State flow A and A1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_8.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/65378i02D4F85A0037AF93/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 11:17:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PIT-Build-Error-on-DEVKIT-5744P-TIMER-LED-IN-A-undeclared-first/m-p/801695#M2331</guid>
      <dc:creator>fortunely</dc:creator>
      <dc:date>2018-07-11T11:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: PIT Build Error on DEVKIT-5744P('TIMER_LED_IN_A' undeclared (first use in this function))</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PIT-Build-Error-on-DEVKIT-5744P-TIMER-LED-IN-A-undeclared-first/m-p/801696#M2332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/fortunely"&gt;fortunely&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to be a problem with the fact that the #define TIMER_LED_IN_A is in the &amp;lt;model_name&amp;gt;.c and used in&amp;nbsp; pit_ch1_isr.c. This last file does not include the #defines from any .c file. There is a quick fix for you to force the TIMER_LED_IN_A not to be used in pit_ch1_isr.c file. You'll have to:&lt;/P&gt;&lt;P&gt;&amp;nbsp; - right click on the chart from Function-Call Subsystem 1, go to &lt;STRONG&gt;Block_Parameters&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; - from there, please go to &lt;STRONG&gt;Code Generation tab&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; - and select &lt;STRONG&gt;Nonreusable function&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way, Simulink Coder will generate a function call in pit_ch1_isr.c (something like TIMER_LED_Chart() ), that function being defined in &amp;lt;model_name&amp;gt;.c file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 08:04:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PIT-Build-Error-on-DEVKIT-5744P-TIMER-LED-IN-A-undeclared-first/m-p/801696#M2332</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2018-07-24T08:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: PIT Build Error on DEVKIT-5744P('TIMER_LED_IN_A' undeclared (first use in this function))</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PIT-Build-Error-on-DEVKIT-5744P-TIMER-LED-IN-A-undeclared-first/m-p/801697#M2333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the option I was talking about above^ . You can leave the rest options set to their default values, or even better, select 'Use subsystem name' for Function name options, so that the code generated is easier to read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66207iC7D6FC586183EFAD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 08:07:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PIT-Build-Error-on-DEVKIT-5744P-TIMER-LED-IN-A-undeclared-first/m-p/801697#M2333</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2018-07-24T08:07:48Z</dc:date>
    </item>
  </channel>
</rss>

