<?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: Problem using PIT in PPC5748G in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Problem-using-PIT-in-PPC5748G/m-p/477274#M88</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ville,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry for delay, I was on the vacation last week. Unfortunately, we do not have another S32DS examples for MPC5748G. But I will try to port some examples from GreenHills IDE or create some new this year. S32DS is new IDE so I need some time for creating/porting examples. Please be patient.&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, 01 Feb 2016 07:28:18 GMT</pubDate>
    <dc:creator>martin_kovar</dc:creator>
    <dc:date>2016-02-01T07:28:18Z</dc:date>
    <item>
      <title>Problem using PIT in PPC5748G</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Problem-using-PIT-in-PPC5748G/m-p/477271#M85</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get the PIT going on a PPC5748G processor.&lt;/P&gt;&lt;P&gt;This is what I do:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Create a new S32DS C++ project using newlib.&lt;/P&gt;&lt;P&gt;2) Edit the main function so it looks like this:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Configure clocks to peripherals&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MC_ME.RUN_PC[0].R = 0x00000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MC_ME.RUN_PC[1].R = 0x000000FE;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // configuration 1, peripheral clock active for all RUN modes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MC_ME.PCTL[91].B.RUN_CFG = 0x1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // PIT: select peripheral clock configuration 1, RUN_PC[1]&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xcptn_xmpl ();&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; /* Configure and Enable Interrupts */&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Enable PIT module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIT.MCR.B.MDIS = 0;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; counterclass myccounter;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(;;) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; myccounter.increment();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; return 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Start a debug session.&lt;/P&gt;&lt;P&gt;4) Double-click on "EmbSys Registers/PIT/MCR": The value displayed is 0xFFF84000, which is actually the address of the register rather than the reset value 0x00000006 that I would expect.&lt;/P&gt;&lt;P&gt;5) Single step through the code.&lt;/P&gt;&lt;P&gt;6) After stepping into the line "PIT.MCR.B.MDIS = 0;" the session seems to hang. There is no indication of where execution is taking place, and it is no longer possible to read out register values.&lt;/P&gt;&lt;P&gt;7) Suspend execution: Execution stops at IVOR1_Vector() which I assume means that some sort of error has ocurred.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone tell what I'm doing wrong or how to proceed?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I notice that there is no code to setup clocks in the template project.&lt;/P&gt;&lt;P&gt;Maybe the PIT module is actually not clocked at all when I try to access it.&lt;/P&gt;&lt;P&gt;Is there an example project using PIT interrupts that I can try?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Ville&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 13:59:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Problem-using-PIT-in-PPC5748G/m-p/477271#M85</guid>
      <dc:creator>villevallinder</dc:creator>
      <dc:date>2016-01-08T13:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using PIT in PPC5748G</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Problem-using-PIT-in-PPC5748G/m-p/477272#M86</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ville,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mode entry module configuration and clocks configuration seems not to be correct. Also PIT is not configured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached project which shows, how to configure PLL as a system clock and how to configure clocks for peripherals. There is also PIT initialization and PIT interrupt handler which toggle user LED1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any question about the project, please feel free to write me back.&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, 11 Jan 2016 08:46:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Problem-using-PIT-in-PPC5748G/m-p/477272#M86</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-01-11T08:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using PIT in PPC5748G</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Problem-using-PIT-in-PPC5748G/m-p/477273#M87</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Martin, your project worked just fine!&lt;/P&gt;&lt;P&gt;Are there any other S32DS example projects available for this processor somewhere?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Ville&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 15:20:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Problem-using-PIT-in-PPC5748G/m-p/477273#M87</guid>
      <dc:creator>villevallinder</dc:creator>
      <dc:date>2016-01-25T15:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using PIT in PPC5748G</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Problem-using-PIT-in-PPC5748G/m-p/477274#M88</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ville,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry for delay, I was on the vacation last week. Unfortunately, we do not have another S32DS examples for MPC5748G. But I will try to port some examples from GreenHills IDE or create some new this year. S32DS is new IDE so I need some time for creating/porting examples. Please be patient.&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, 01 Feb 2016 07:28:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Problem-using-PIT-in-PPC5748G/m-p/477274#M88</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-02-01T07:28:18Z</dc:date>
    </item>
  </channel>
</rss>

