<?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 CW10.0 - MQX3.6 - MCF51JM128 device doesn't run without ML-Universal adapter connected in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/CW10-0-MQX3-6-MCF51JM128-device-doesn-t-run-without-ML-Universal/m-p/202776#M4701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I'm using a P&amp;amp;E Micro USB Multilink Universal programmer and I have no issues flashing, debugging, and running the program as long as the programmer is connected, but the program doesn't run otherwise if I use any _time_delay calls.&amp;nbsp; If I get the code running and then disconnect the programmer it continues running, but if cycle power or reset it, the program stops.&amp;nbsp; I have 10k pull-ups on the BKGD and RESET lines, and the oscillator runs normally, but as I found out, whenever it reaches a _time_delay() function call, it stalls.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; What I have is a custom board based on the EVB51JM128 reference design, and I created a new MQX3.6 project using that EVB in CW10.0.&amp;nbsp; I rebuilt the BSP and PSP but it didn't help.&amp;nbsp; I don't see any MQX or compiler options that would seem to me to affect this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Are there any suggestions as to what I might try here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS.&amp;nbsp; I originally posted about this in the Coldfire forum as I thought it was a hardware issue, but I beleive now it's related to MQX.&amp;nbsp; Here's my original post:&amp;nbsp; &lt;A __default_attr="83762" class="jive_macro jive_macro_thread default_title" href="https://community.freescale.com/thread/83762" jivemacro="thread" title="https://community.freescale.com/thread/83762"&gt;https://community.freescale.com/thread/83762&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2011 07:29:30 GMT</pubDate>
    <dc:creator>ARQuattr</dc:creator>
    <dc:date>2011-05-03T07:29:30Z</dc:date>
    <item>
      <title>CW10.0 - MQX3.6 - MCF51JM128 device doesn't run without ML-Universal adapter connected</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/CW10-0-MQX3-6-MCF51JM128-device-doesn-t-run-without-ML-Universal/m-p/202776#M4701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I'm using a P&amp;amp;E Micro USB Multilink Universal programmer and I have no issues flashing, debugging, and running the program as long as the programmer is connected, but the program doesn't run otherwise if I use any _time_delay calls.&amp;nbsp; If I get the code running and then disconnect the programmer it continues running, but if cycle power or reset it, the program stops.&amp;nbsp; I have 10k pull-ups on the BKGD and RESET lines, and the oscillator runs normally, but as I found out, whenever it reaches a _time_delay() function call, it stalls.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; What I have is a custom board based on the EVB51JM128 reference design, and I created a new MQX3.6 project using that EVB in CW10.0.&amp;nbsp; I rebuilt the BSP and PSP but it didn't help.&amp;nbsp; I don't see any MQX or compiler options that would seem to me to affect this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Are there any suggestions as to what I might try here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS.&amp;nbsp; I originally posted about this in the Coldfire forum as I thought it was a hardware issue, but I beleive now it's related to MQX.&amp;nbsp; Here's my original post:&amp;nbsp; &lt;A __default_attr="83762" class="jive_macro jive_macro_thread default_title" href="https://community.freescale.com/thread/83762" jivemacro="thread" title="https://community.freescale.com/thread/83762"&gt;https://community.freescale.com/thread/83762&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 07:29:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/CW10-0-MQX3-6-MCF51JM128-device-doesn-t-run-without-ML-Universal/m-p/202776#M4701</guid>
      <dc:creator>ARQuattr</dc:creator>
      <dc:date>2011-05-03T07:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: CW10.0 - MQX3.6 - MCF51JM128 device doesn't run without ML-Universal adapter connected</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/CW10-0-MQX3-6-MCF51JM128-device-doesn-t-run-without-ML-Universal/m-p/202777#M4702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;FONT size="2"&gt;This bug was fixed in 3.6.1 release. The issue was caused by incorrect settings of INTC.WCR register which differs from other CFV1 platforms. Replace&amp;nbsp;mcf51JMxx_init() function in "mqx/source/bsp/m51jmevb/bsp_init.c" by the following one and it should work.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;FONT face="'courier new', courier" size="2"&gt;void mcf51JMxx_init&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="'courier new', courier" size="2"&gt;&amp;nbsp;&amp;nbsp; (&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="'courier new', courier" size="2"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;void&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="'courier new', courier" size="2"&gt;&amp;nbsp;&amp;nbsp; )&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="'courier new', courier" size="2"&gt;{&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="'courier new', courier" size="2"&gt;&amp;nbsp;&amp;nbsp;VMCF51JM_STRUCT_PTR reg_ptr = (VMCF51JM_STRUCT_PTR)BSP_IPSBAR;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="'courier new', courier" size="2"&gt;&amp;nbsp;&amp;nbsp;reg_ptr-&amp;gt;SIM.SOPT1 = MCF51XX_SOPT1_STOPE_MASK | MCF51XX_SOPT1_WAITE_MASK;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="'courier new', courier" size="2"&gt;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="'courier new', courier" size="2"&gt;&amp;nbsp;&amp;nbsp;reg_ptr-&amp;gt;SIM.SOPT2 = 0;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="'courier new', courier" size="2"&gt;&amp;nbsp;&amp;nbsp;reg_ptr-&amp;gt;PMC.SPMSC1 = 0x40;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="'courier new', courier" size="2"&gt;&amp;nbsp;&amp;nbsp;reg_ptr-&amp;gt;PMC.SPMSC2 = 0;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="'courier new', courier" size="2"&gt;&amp;nbsp;&amp;nbsp;/* INTC_WCR: ENB=1,MASK=0 */&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="'courier new', courier" size="2"&gt;&amp;nbsp;&amp;nbsp;reg_ptr-&amp;gt;INTC.WCR = 0x80;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="'courier new', courier" size="2"&gt;&amp;nbsp;&amp;nbsp;_mqx_clock_init_12MHz(); &amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="'courier new', courier" size="2"&gt;}&lt;/FONT&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 19:43:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/CW10-0-MQX3-6-MCF51JM128-device-doesn-t-run-without-ML-Universal/m-p/202777#M4702</guid>
      <dc:creator>petr_uhlir</dc:creator>
      <dc:date>2011-05-03T19:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: CW10.0 - MQX3.6 - MCF51JM128 device doesn't run without ML-Universal adapter connected</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/CW10-0-MQX3-6-MCF51JM128-device-doesn-t-run-without-ML-Universal/m-p/202778#M4703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Thank you for this information.&amp;nbsp; It wasn't quite that simple; I needed to install the full 3.6.2, which was painful, but that fixed it.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;I first added the&lt;/FONT&gt; &lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;FONT face="courier new,courier"&gt;reg_ptr-&amp;gt;INTC.WCR = 0x80;&lt;/FONT&gt; line, but the INTC struct wasn't defined in mcf51JM.h.&amp;nbsp; So I tried updating that file, but it still wasn't working.&amp;nbsp; I installed 3.6.2 and rebuilt the new bsp and psp projects, then the application project, but that was worse (the debugger kept stalling in &lt;FONT face="courier new,courier"&gt;_int_kernel_isr&lt;/FONT&gt; in dispatch.s).&amp;nbsp; So I created a new MQX project and imported the source files and finally I got it all to work as expected.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;I'm not sure if this is normal (that I can't rebuild a project started with an older version of MQX after upgrading).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;I also noticed that the bsp shows several files that are missing from the original (3.6.0) locations including maximum_config.h, small_ram_config.h, smallest_config.h, etc.&amp;nbsp; In the 3.6.0 directory structure they appeared in ...\mqx\build folder, but they are not in the new structure (as reported by CW).&amp;nbsp; They do still appear in the lib folders for the respective platforms.&amp;nbsp; Is this normal that these files are included in the bsp project but aren't actually there?&amp;nbsp; Should I just remove them or do I need to do something else?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Thanks again for your help.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="'courier new', courier" size="2"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2011 08:06:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/CW10-0-MQX3-6-MCF51JM128-device-doesn-t-run-without-ML-Universal/m-p/202778#M4703</guid>
      <dc:creator>ARQuattr</dc:creator>
      <dc:date>2011-05-04T08:06:28Z</dc:date>
    </item>
  </channel>
</rss>

