<?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: MPC5748G SWT0 Issue in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5748G-SWT0-Issue/m-p/594794#M4322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;It works. I forgot the debugger's impact.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jul 2016 08:27:04 GMT</pubDate>
    <dc:creator>jinjingyang</dc:creator>
    <dc:date>2016-07-22T08:27:04Z</dc:date>
    <item>
      <title>MPC5748G SWT0 Issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5748G-SWT0-Issue/m-p/594792#M4320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code to init SWT0 on MPC5748G:&lt;/P&gt;&lt;P&gt;void vfnSwt0InitKey(uint32_t u32TimeoutTicks)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(SWT_0.CR.B.SLK)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; SWT_0.SR.R = 0xC520;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SWT_0.SR.R = 0xD928;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; SWT_0.TO.R = u32TimeoutTicks;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SWT_0.CR.R = 0xFF00030B; //Allow all master access, Timeout generate reset, FRZ=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SWT_0.CR.B.WEN = 1;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;The problem is that the SWT0 cannot be enabled by my code.&lt;/P&gt;&lt;P&gt;In the Lauterbach debugger, I can see that the SWT0_CR value is changed by my code. But just the SWT0_CR.WEN bit cannot be set to 1 by my code. I can change this WEN bit by Lauterbach debugger.&lt;/P&gt;&lt;P&gt;And I also tried this on SWT1. My code can config and enable SWT1 correctly.&lt;/P&gt;&lt;P&gt;Do you have any suggestions on this issue? &lt;/P&gt;&lt;P&gt;(I'm using S32DS to create MPC5748G project and compile.)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jason Yang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 05:34:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5748G-SWT0-Issue/m-p/594792#M4320</guid>
      <dc:creator>jinjingyang</dc:creator>
      <dc:date>2016-07-21T05:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5748G SWT0 Issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5748G-SWT0-Issue/m-p/594793#M4321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in Lauterbach debugger write the following command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System.Option.Watchdog ON&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it will work.&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>Thu, 21 Jul 2016 08:22:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5748G-SWT0-Issue/m-p/594793#M4321</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-07-21T08:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5748G SWT0 Issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5748G-SWT0-Issue/m-p/594794#M4322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;It works. I forgot the debugger's impact.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 08:27:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5748G-SWT0-Issue/m-p/594794#M4322</guid>
      <dc:creator>jinjingyang</dc:creator>
      <dc:date>2016-07-22T08:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5748G SWT0 Issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5748G-SWT0-Issue/m-p/594795#M4323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #333333; background-color: #f9f9f9;"&gt;I &lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #f9f9f9;"&gt;wonder where do I can&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;write the following command--&lt;SPAN&gt;System.Option.Watchdog ON.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;In my code,I 've successfully disabled SWT,but when I config the SWT it does not work as my configurations.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;After &lt;/SPAN&gt;&lt;SPAN style="background-color: #f9f9f9; color: #333333;"&gt;execute the following function--&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;void SWTInit(void)&lt;BR /&gt;{&lt;BR /&gt; /* Provide a Key to unlock SWT configuraiton registers */&lt;BR /&gt; SWT_0.SR.R = 0xC520;&lt;BR /&gt; SWT_0.SR.R = 0xD928;&lt;/P&gt;&lt;P&gt;/* Wait for solf-lock bit */&lt;BR /&gt; while (SWT_0.CR.B.SLK == 0x1);&lt;BR /&gt; /* Enable SWT_0 */&lt;BR /&gt; //SWT_0.CR.B.WEN = 0x1;&lt;BR /&gt; SWT_0.CR.R = 0xFF000101;//0xFF000315;//0xFF000101;&lt;BR /&gt; /* Set SWT timeout */&lt;BR /&gt; SWT_0.TO.R = 0xFFFFFFFF;&lt;BR /&gt; &lt;BR /&gt;}// end of SWTInit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just cannot understand why&amp;nbsp;&lt;SPAN&gt;SWT_0.CR is &amp;nbsp;0x ff00011b.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 07:56:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5748G-SWT0-Issue/m-p/594795#M4323</guid>
      <dc:creator>hyacinth</dc:creator>
      <dc:date>2017-10-30T07:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5748G SWT0 Issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5748G-SWT0-Issue/m-p/594796#M4324</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;this command is not related to C code, but it is related to Lauterbach debugger. This debugger uses Trace32 software which supports scripting language called Practise and this command is determined for Trace32.&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, 30 Oct 2017 08:51:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5748G-SWT0-Issue/m-p/594796#M4324</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2017-10-30T08:51:53Z</dc:date>
    </item>
  </channel>
</rss>

