<?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: CodeWarrior project does not reach main, stuck in hardware initialization in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-project-does-not-reach-main-stuck-in-hardware/m-p/614973#M13522</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;I tested your project and it works correct on my side. I tested in MPC5643L switched to LSM mode. Could you please write me back more detail, where your program get stuck?&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 12:59:30 GMT</pubDate>
    <dc:creator>martin_kovar</dc:creator>
    <dc:date>2017-04-19T12:59:30Z</dc:date>
    <item>
      <title>CodeWarrior project does not reach main, stuck in hardware initialization</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-project-does-not-reach-main-stuck-in-hardware/m-p/614972#M13521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get a simple example (update counter value in loop) example working on my TRK-USB-MPC5643L board. I was able to successfully debug this program once, however now I am running into some issues. When running in debug mode the program never enters the main loop, it is stuck in the initialization code. A few things I observed - even though the project is configured for LSM mode, when I step into the code, the branches for DPM &amp;nbsp;get executed. I tried to use the ICDPPNEXUS tool from PEMIcro but the code seems to enter some kind of an infinite loop in the hardware init phase and there too and the main is never hit. How do I proceed from here?&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-338519"&gt;MPC5643L_INTC-SW-VLE-LSM.7z.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 16:30:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-project-does-not-reach-main-stuck-in-hardware/m-p/614972#M13521</guid>
      <dc:creator>tanmayeesapre</dc:creator>
      <dc:date>2017-04-17T16:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior project does not reach main, stuck in hardware initialization</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-project-does-not-reach-main-stuck-in-hardware/m-p/614973#M13522</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;I tested your project and it works correct on my side. I tested in MPC5643L switched to LSM mode. Could you please write me back more detail, where your program get stuck?&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 12:59:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-project-does-not-reach-main-stuck-in-hardware/m-p/614973#M13522</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2017-04-19T12:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior project does not reach main, stuck in hardware initialization</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-project-does-not-reach-main-stuck-in-hardware/m-p/614974#M13523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Martin. One issue was that I was building a ROM project but using it to flash the chip. I corrected this and now I am able to build but when I do Debug (Download configuration) with Stop on startup at user specified main, the program never enters the main loop. I am sure I have some build/debug setting incorrectly set but am unable to trace which one it is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 18:15:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-project-does-not-reach-main-stuck-in-hardware/m-p/614974#M13523</guid>
      <dc:creator>tanmayeesapre</dc:creator>
      <dc:date>2017-04-19T18:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior project does not reach main, stuck in hardware initialization</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-project-does-not-reach-main-stuck-in-hardware/m-p/614975#M13524</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;from your description I have no idea, what is wrong on your side. I do not understand your sentence &lt;STRONG&gt;"with Stop on startup at user specified main, the program never enters the main loop."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you load code into the flash, are you able to debug the code? If you step the code, where in the code you get stuck? What happen, If you write &lt;STRONG&gt;gotil main&lt;/STRONG&gt; in ICDPPNEXUS?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please post here some screens of your problem?&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, 20 Apr 2017 13:12:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-project-does-not-reach-main-stuck-in-hardware/m-p/614975#M13524</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2017-04-20T13:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior project does not reach main, stuck in hardware initialization</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-project-does-not-reach-main-stuck-in-hardware/m-p/614976#M13525</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;I ran into the same problem as Tanmayee, but I found a solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When running a debug from RAM, the project would work correctly, but if the target was FLASH, the TRK would get stuck in an infinite loop, specifically the init_12sram_loop in MPC5643L_HWInit.c. It was because LOCKSTEP_MODE (which is what we're running) isn't defined anywhere, so HWInit.c was defaulting to DPM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding the line&amp;nbsp;#define LOCKSTEP_MODE in&amp;nbsp;&lt;SPAN&gt;MPC5643L_HWInit.h fixed it for me, and the TRK runs the project from FLASH properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you know of a better (or proper place) to put the LOCKSTEP_MODE flag besides the header file, please let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps someone out there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 21:41:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-project-does-not-reach-main-stuck-in-hardware/m-p/614976#M13525</guid>
      <dc:creator>jjacp</dc:creator>
      <dc:date>2017-08-07T21:41:26Z</dc:date>
    </item>
  </channel>
</rss>

