<?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>Kinetis MicrocontrollersのトピックRe: TWRK60F120M :  cpu runs only in debug mode</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWRK60F120M-cpu-runs-only-in-debug-mode/m-p/443204#M26076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angelo,&lt;/P&gt;&lt;P&gt;some users met similar problem because they download the code in RAM but not FLASH. Please check this point on your side also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also suggest you connect the board with "Attach".this will connect the board without erasing flash. then check flash memory if code is correctly programmed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2015-04-29_17-27-04.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/49452i46D93B75A5D7C1D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2015-04-29_17-27-04.png" alt="2015-04-29_17-27-04.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Apr 2015 09:32:09 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2015-04-29T09:32:09Z</dc:date>
    <item>
      <title>TWRK60F120M :  cpu runs only in debug mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWRK60F120M-cpu-runs-only-in-debug-mode/m-p/443203#M26075</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'm working with TWRK60F120M. I'm using eclipse IDE, with gcc compiler, GDB + openocd for debugging.&lt;/P&gt;&lt;P&gt;My debug interface is osbdm.&lt;/P&gt;&lt;P&gt;I wrote a simple code&amp;nbsp; and I flash it into the device. The code runs perfectly.&lt;/P&gt;&lt;P&gt;After that I powered off the device e re -powerd it on. The code doesn't run.&lt;/P&gt;&lt;P&gt;I saw with the oscilloscope the reset-b signal and it is floating between 400mV and 1.88V&lt;/P&gt;&lt;P&gt;I think that the watchdog resets the cpu (because it is enabled by default ). My code disables watchdog at startup, but&lt;/P&gt;&lt;P&gt;I think that after a poweron it fails to execute wdog disable because it is resetted before.&lt;/P&gt;&lt;P&gt;I read a lot of discussion about this problem, that can be caused by&amp;nbsp; &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;several reasons &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;I saw with the oscilloscope the EZP_CS signal and it is high (the device doesn't enter in EzPort mode).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Do you have any suggestions?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 15:36:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWRK60F120M-cpu-runs-only-in-debug-mode/m-p/443203#M26075</guid>
      <dc:creator>angelodattilo</dc:creator>
      <dc:date>2015-04-24T15:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: TWRK60F120M :  cpu runs only in debug mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWRK60F120M-cpu-runs-only-in-debug-mode/m-p/443204#M26076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angelo,&lt;/P&gt;&lt;P&gt;some users met similar problem because they download the code in RAM but not FLASH. Please check this point on your side also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also suggest you connect the board with "Attach".this will connect the board without erasing flash. then check flash memory if code is correctly programmed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2015-04-29_17-27-04.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/49452i46D93B75A5D7C1D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2015-04-29_17-27-04.png" alt="2015-04-29_17-27-04.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 09:32:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWRK60F120M-cpu-runs-only-in-debug-mode/m-p/443204#M26076</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-04-29T09:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: TWRK60F120M :  cpu runs only in debug mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWRK60F120M-cpu-runs-only-in-debug-mode/m-p/443205#M26077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jennie&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;I had already&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;tried the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;attempt&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;that&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;you suggested&lt;/SPAN&gt;&lt;SPAN class="hps"&gt; ( using OPENOCD for flash memory dump)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;The code has been downlaoded in flash, and after poweron, I have noticed that flash is programmed , but the code doesn't run.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Maybe there are some problems with my compiler options (This is my compiler string :arm-none-eabi-gcc -std=c99 -O0 -g -c -fmessage-length=0&amp;nbsp; -mcpu=cortex-m4&amp;nbsp;&amp;nbsp; -mthumb&amp;nbsp; -ffunction-sections -fdata-sections -ewl_noio).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;I have also noticed that I can't read flash memory from address 0x100_0000(MDM-AP Status Register) ,but I don't know if this is &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;a&lt;/SPAN&gt; normal work, because this is the first time I work with Freescale devices.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Executing flash memory dump I have also noticed that device is not locked (addrees 0x40c =0xFE)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Do you &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;you have any further suggestion ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Thanks for supporting me&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Angelo&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 07:15:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWRK60F120M-cpu-runs-only-in-debug-mode/m-p/443205#M26077</guid>
      <dc:creator>angelodattilo</dc:creator>
      <dc:date>2015-04-30T07:15:39Z</dc:date>
    </item>
  </channel>
</rss>

