<?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: MPC5777M standalone startup problem in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5777M-standalone-startup-problem/m-p/670982#M7735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is a list of which cuts are affected by the disable of SIUL by BAF available? &amp;nbsp;Are there additional errata documents available for the MPC5777M?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jul 2017 02:57:03 GMT</pubDate>
    <dc:creator>chrisgerlinsky</dc:creator>
    <dc:date>2017-07-25T02:57:03Z</dc:date>
    <item>
      <title>MPC5777M standalone startup problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777M-standalone-startup-problem/m-p/670975#M7728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the MPC5777M EVB motherboard and MPC5777M_416DS daughtercard, I am able to&amp;nbsp;run a test program from flash&amp;nbsp;when debugging using PEmicro Cyclone, but without the debugger running the software does not run.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first thing I do in main() is to set PA0 low, and even this does not occur unless the debugger is connected and running. &amp;nbsp;After resetting the MPC5777M, main() doesn't appear to run. &amp;nbsp;When I read flash, the boot header looks correct and&amp;nbsp;points to the program in flash (looks OK as far as I can tell).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The software is a simple UART test program (based on&amp;nbsp;Example-MPC5777M-LINFlex2-UART-echo-SWpoll-v1_0-GHS614.zip). &amp;nbsp;To create the software I made&amp;nbsp;a new project using S32 Design Studio and copied the&amp;nbsp;example code into main.c (code attached). &amp;nbsp;This is a simple program that runs on the&amp;nbsp;IOP CPU only.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help to identify what I'm missing that prevents the software starting in standalone mode on the MPC5777M EVB would be appreciated!&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-338416"&gt;testuart_MPC5777M.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jul 2017 05:46:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777M-standalone-startup-problem/m-p/670975#M7728</guid>
      <dc:creator>chrisgerlinsky</dc:creator>
      <dc:date>2017-07-16T05:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777M standalone startup problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777M-standalone-startup-problem/m-p/670976#M7729</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 have tested your example and it is running stand-alone with any issues.&lt;/P&gt;&lt;P&gt;After reset I always get in main,.. while loop.&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/26128i5A3E0C659D28D3E2/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 am using cut 0N50N.&lt;/P&gt;&lt;P&gt;Which one are you using?&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 08:53:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777M-standalone-startup-problem/m-p/670976#M7729</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2017-07-17T08:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777M standalone startup problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777M-standalone-startup-problem/m-p/670977#M7730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter, thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same problem when testing with PPC5777M2MVU8B ON50N and a SPC5777MMVU8 ON50N chips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the JTAG debugger connected and running, the software starts properly, PA0 goes low, and the "Hello World!" string is transmitted by UART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With nothing connected to JTAG, PA0 isn't pulled low and nothing is transmitted by UART. (the same for reset or power-on)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 18:35:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777M-standalone-startup-problem/m-p/670977#M7730</guid>
      <dc:creator>chrisgerlinsky</dc:creator>
      <dc:date>2017-07-17T18:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777M standalone startup problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777M-standalone-startup-problem/m-p/670978#M7731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, but when you run it in standalone mode and then do attach with debugger?&lt;/P&gt;&lt;P&gt;Are you in the loop as I am?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working also for you when you are connected with JTAG and you do a reset via debugger?&lt;/P&gt;&lt;P&gt;Or it is running only after code is loaded in flash and not after JTAG reset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 06:07:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777M-standalone-startup-problem/m-p/670978#M7731</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2017-07-18T06:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777M standalone startup problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777M-standalone-startup-problem/m-p/670979#M7732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I reset the EVB and then attach with debugger (with 'attach to running target' selected in the startup tab of the debug configuration), if I suspend the program it&amp;nbsp;is in the loop as you are.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, sending any data to the&amp;nbsp;UART doesn't break the loop. &amp;nbsp;(and no data was sent out the UART before entering that loop) &amp;nbsp;If I look in EmbSys Registers:&lt;/P&gt;&lt;P&gt;LinFlexD_2.LINCR1 = 0x00000090 (expected 0x00000080, set in LINFlexD_2_Init())&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LinFlexD_2.&lt;/SPAN&gt;UARTCR =&amp;nbsp;0x00000033 (as expected)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LinFlexD_2.&lt;/SPAN&gt;LINSR =&amp;nbsp;0x00002000&lt;/P&gt;&lt;P&gt;LINFBRR and LINIBRR are set as expected. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIUL2.MSCR_IO_62 =&amp;nbsp;0x00090000 (expected&amp;nbsp;0x32090002, set in SIUL2_Init())&lt;/P&gt;&lt;P&gt;SIUL2.MSCR_MUX_850 = 0x00000000 (expected&amp;nbsp;0x00000001, set in SIUL2_Init())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If&amp;nbsp;I try to change the value of SIUL2.MSCR_IO_62 or SIUL2.MSCR_MUX_850 in the EmbSys Registers view, it has no effect (value doesn't change).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, PA0 has not been pulled low. &amp;nbsp;Even when watching PA0 with logic analyzer, it is&amp;nbsp;not pulled low even momentarily after reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Viewing in EmbSys Registers when attached with debugger after standalone boot:&lt;/P&gt;&lt;P&gt;SIUL2.MSCR_IO_0 =&amp;nbsp;0x00090000 &amp;nbsp;(should be set to&amp;nbsp;0x12380000 in main())&lt;/P&gt;&lt;P&gt;GPDO0 =&amp;nbsp;0x00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help troubleshooting this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 08:03:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777M-standalone-startup-problem/m-p/670979#M7732</guid>
      <dc:creator>chrisgerlinsky</dc:creator>
      <dc:date>2017-07-18T08:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777M standalone startup problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777M-standalone-startup-problem/m-p/670980#M7733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;your ME_PCTL for SIUL2 is not active.&lt;/P&gt;&lt;P&gt;In other words there is no clock for SIUL2 module.&lt;/P&gt;&lt;P&gt;Configure ME correctly as this cut of device is disabling SIUL in BAF.&lt;/P&gt;&lt;P&gt;In you application you have to enable MC_ME_PCTL15 for target mode and do mode translation. Then it will work.&lt;/P&gt;&lt;P&gt;Otherwise the pins wont be active.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 08:12:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777M-standalone-startup-problem/m-p/670980#M7733</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2017-07-18T08:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777M standalone startup problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777M-standalone-startup-problem/m-p/670981#M7734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Setting MC_ME_PCTL15 solved the problem. &amp;nbsp;Thank you, Peter! &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added the line&amp;nbsp;MC_ME.PCTL15.R = 0; before the last mode transition to enter RUN0 mode in SysClk_Init() and it is working correctly. &amp;nbsp;(MC_ME.RUN_PC[0] was already set correctly in the software)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again Peter!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 22:58:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777M-standalone-startup-problem/m-p/670981#M7734</guid>
      <dc:creator>chrisgerlinsky</dc:creator>
      <dc:date>2017-07-18T22:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777M standalone startup problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777M-standalone-startup-problem/m-p/670982#M7735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is a list of which cuts are affected by the disable of SIUL by BAF available? &amp;nbsp;Are there additional errata documents available for the MPC5777M?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 02:57:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777M-standalone-startup-problem/m-p/670982#M7735</guid>
      <dc:creator>chrisgerlinsky</dc:creator>
      <dc:date>2017-07-25T02:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777M standalone startup problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777M-standalone-startup-problem/m-p/670983#M7736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No list is needed as this is only on cut 0N50N.&lt;/P&gt;&lt;P&gt;I don't think this is errata as this is no HW issue.&lt;/P&gt;&lt;P&gt;Anyway user has to configure SIUL and ME before he want to use it.&lt;/P&gt;&lt;P&gt;Your issue was that you run example code developed for older cut with different BAF.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 07:35:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777M-standalone-startup-problem/m-p/670983#M7736</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2017-07-25T07:35:02Z</dc:date>
    </item>
  </channel>
</rss>

