<?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: Problems of PIT Interrupt in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617393#M5282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bruce,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ported my example for S32DS version 1.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the attachment in this post and let me know, if it works on your side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Mar 2017 11:54:25 GMT</pubDate>
    <dc:creator>martin_kovar</dc:creator>
    <dc:date>2017-03-28T11:54:25Z</dc:date>
    <item>
      <title>Problems of PIT Interrupt</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617390#M5279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I debugged the .elf from example "MPC5744P-HardwareVectoreMode-S32DS" using S32DS 1.1&amp;nbsp;,then it runs well and achieve the ideal output. However ,when building a new project and coping &amp;nbsp;all the source code of MPC5744P-HardwareVectoreMode-S32DS.c file ，adding " exceptions.s"、、"HW_Vector.c" and replacing “Vector.c”、"MPC57xx__Interrupt_Init.c" to this new project ,&amp;nbsp;errors occurred :&lt;/P&gt;&lt;P&gt;when pit0 generate an interrupt&amp;nbsp;, it will jump into the page like below :&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122957iB6208E0F003CF22C/image-size/large?v=v2&amp;amp;px=999" title="180096_180096.png" alt="180096_180096.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15689i5B00B46E682BC24C/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Do you know &amp;nbsp;if it is because I lost some file which is necessary or I miss to configure&amp;nbsp;something ? My project is upload below. &amp;nbsp;Please give me some advise.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338350"&gt;PIT_0-blind-LED-and-PIN-interrupt.rar&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Mar 2017 09:33:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617390#M5279</guid>
      <dc:creator>bruceye</dc:creator>
      <dc:date>2017-03-25T09:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problems of PIT Interrupt</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617391#M5280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at first, I was not able to compile your project because S32DS v1.1 uses different linker files. Also your project generates IVOR6 exception from some kind of reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to create project in S32DS v1.1, create new project and and add exceptions.s, handlers_vle.s and HW_vector.c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About files, which must be modified, please do not remove these files from new project, but change the content of the files (some files does not exist in new project - mem.ld and sections.ld are replaced by 57xx_flash.ld).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exclude intc_sw_handlers.S and intc_SW_mode_isr_vectors_MPC5744P.c from compilation and linking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 08:07:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617391#M5280</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2017-03-27T08:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problems of PIT Interrupt</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617392#M5281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Martin,&lt;/P&gt;&lt;P&gt;Thank you for your reply .I followed your tips ,but problems still exist:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file "MPC57xx__Interrupt_Init" &amp;nbsp;has statements like below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if defined(MPC574xP)&lt;BR /&gt; INTC.BCR.R = 0; /* Software vector mode */&lt;BR /&gt;#elif defined(MPC5777C)&lt;BR /&gt; INTC.MCR.R &amp;amp;= ~(INTC_BCR_HVEN( coreId )); /* Software vector mode */&lt;BR /&gt;#else&lt;BR /&gt; INTC.BCR.R &amp;amp;= ~(INTC_BCR_HVEN( coreId )); /* Software vector mode */&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I run the project ,it will cause the error that "intc_sw_handlers.S" and "intc_SW_mode_isr_vectors_MPC5744P.c" files were not found .However ,if I change the 0 to 1 in the sentense "INTC.BCR.R = 0" , error still accur ,showing that .elf file can not be found .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me some hints .&lt;/P&gt;&lt;P&gt;Thank you again .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yours,&lt;BR /&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 09:28:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617392#M5281</guid>
      <dc:creator>bruceye</dc:creator>
      <dc:date>2017-03-28T09:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problems of PIT Interrupt</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617393#M5282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bruce,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ported my example for S32DS version 1.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the attachment in this post and let me know, if it works on your side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 11:54:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617393#M5282</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2017-03-28T11:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problems of PIT Interrupt</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617394#M5283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply. Your project is worked if opened directly.&lt;/P&gt;&lt;P&gt;However , when building a new project of my own ,adding "handlers_vle.s"，"HW_Vector.c"，"exceptions.s" from your project and replacing the file "MPC57xx__Interrupt_Init.c，Vector.c" , it will get in the circuit when running :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16663i6D02FCA56A58F614/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no idea where I was wrong , looking forward to your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 02:53:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617394#M5283</guid>
      <dc:creator>bruceye</dc:creator>
      <dc:date>2017-03-29T02:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problems of PIT Interrupt</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617395#M5284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bruce,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have some error in your project, which causes IVOR1 exception. Please read IVOR1 description in e200z4 core reference manual (see link below).&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cache.nxp.com/assets/documents/data/en/reference-manuals/e200z4RM.pdf?fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1" title="http://cache.nxp.com/assets/documents/data/en/reference-manuals/e200z4RM.pdf?fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1"&gt;http://cache.nxp.com/assets/documents/data/en/reference-manuals/e200z4RM.pdf?fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can check the difference between the project I sent you and the project you have created. It is out of my time possibilities to check every line of your code. Please focus your attention to linker file. It looks like some misalignment of interrupt vector table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 11:03:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617395#M5284</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2017-03-31T11:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problems of PIT Interrupt</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617396#M5285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Martin，&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &amp;nbsp;for your advice, after such a long time ,I finally solved the problem following your tips .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2017 07:11:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617396#M5285</guid>
      <dc:creator>bruceye</dc:creator>
      <dc:date>2017-04-14T07:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problems of PIT Interrupt</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617397#M5286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have another problem: I tried to&amp;nbsp;configure another interrupt but failed ,the new interrupt can not work together with the former&amp;nbsp;previous one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me how to configure multiple interrupt or give me some&amp;nbsp;materials to learn ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;sincerely.&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2017 07:44:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617397#M5286</guid>
      <dc:creator>bruceye</dc:creator>
      <dc:date>2017-04-14T07:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problems of PIT Interrupt</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617398#M5287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Brice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which interrupt did you try to implement? Have you correctly add interrupt handler in handlers_vle.s file? Have you installed the handler into vector interrupt table in HW_Vector.c file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last please check, if you have configured appropriate INTC PSR register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 13:06:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617398#M5287</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2017-04-19T13:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problems of PIT Interrupt</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617399#M5288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;Martin,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I&amp;nbsp;followed&amp;nbsp;your&amp;nbsp;advice,&amp;nbsp;adding&amp;nbsp;a&amp;nbsp;&amp;nbsp;PIT&amp;nbsp;interrupt&amp;nbsp;to&amp;nbsp;the&amp;nbsp;former&amp;nbsp;program,&amp;nbsp;then&amp;nbsp;the&amp;nbsp;program&amp;nbsp;run as&amp;nbsp;expect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="line-height: 25.95px;"&gt;In&amp;nbsp;the&amp;nbsp;next&amp;nbsp;move&amp;nbsp;,h&lt;/SPAN&gt;&lt;SPAN&gt;owever,I&amp;nbsp;tried&amp;nbsp;to&amp;nbsp;adding&amp;nbsp;a&amp;nbsp;SPI's&amp;nbsp;Transfer&amp;nbsp;Complete&amp;nbsp;interrupt&amp;nbsp;,aiming&amp;nbsp;to&amp;nbsp;use&amp;nbsp;this&amp;nbsp;interrupt&amp;nbsp;to&amp;nbsp;flicker&amp;nbsp;an&amp;nbsp;LED&amp;nbsp;diode&amp;nbsp;，the&amp;nbsp;interrupt&amp;nbsp;did&amp;nbsp;not&amp;nbsp;occur after&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;TCF&amp;nbsp;bit was set .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Following&amp;nbsp;is&amp;nbsp;my&amp;nbsp;file&amp;nbsp;,I will be really &lt;/SPAN&gt;&lt;SPAN&gt;appreciate if you could give me some advice again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank&amp;nbsp;you&amp;nbsp;sincerely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bruce&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 03:13:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617399#M5288</guid>
      <dc:creator>bruceye</dc:creator>
      <dc:date>2017-04-21T03:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problems of PIT Interrupt</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617400#M5289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bruce,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after quick analysis of your code I do not like this line:&lt;/P&gt;&lt;P&gt;INTC_0.PSR[260].R = 0x8001;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to MPC5744P Reference manual rev.6 vector 260 enables interrupt for DSPI_SR[EOQF], but you want to enable interrupt for DSPI_SR[TCF] and it has vector 262.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/13947i44464040D1ADC3EB/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try and let me know if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2017 12:53:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Problems-of-PIT-Interrupt/m-p/617400#M5289</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2017-04-24T12:53:28Z</dc:date>
    </item>
  </channel>
</rss>

