<?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: KL81 SWD access timeout in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL81-SWD-access-timeout/m-p/597524#M35005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another update, I made a silly mistake: didn't disable interrupt during Flash operation. Now all the Flash operations work fine after I disable the interrupts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Mar 2017 22:30:51 GMT</pubDate>
    <dc:creator>daweiy</dc:creator>
    <dc:date>2017-03-20T22:30:51Z</dc:date>
    <item>
      <title>KL81 SWD access timeout</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL81-SWD-access-timeout/m-p/597522#M35003</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;I have a board with KL81 amounted on it. I use IAR and J-link to debug it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything was fine, until I started Flash programming test, I have killed 3 boards! The test I have done is just following the flash driver example in SDK’s driver examples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I found is if I erase one sector, the software resets. The reset is caused in one of the lines in function&lt;SPAN style="color: black;"&gt; FlashCommandSequence()(I have put this function into RAM). If I trace this function one line by one line, there is no reset. So I added a delay after CCIF bit is set and the erasing seems fine. But when the code try to write something into this sector, reset happens again. Is there any configration I need to double check? Please advise!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;After I tried few tests, suddenly my IAR IDE cannot connect to my board through the J-Link. The error message is: "Communication timed out: Requested 20 bytes, received 0 bytes! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Could not read hardware status!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Abort Debug session?"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;I tried to use J-Link Commander, same results.I am pretty sure this J-Link is working because I can use it to connect to STM32 mcu. Below is the screen shot of the J-Link Commander&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="tt.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16462i5C54FA2893FE0B65/image-size/large?v=v2&amp;amp;px=999" role="button" title="tt.jpg" alt="tt.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 03:33:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL81-SWD-access-timeout/m-p/597522#M35003</guid>
      <dc:creator>daweiy</dc:creator>
      <dc:date>2017-03-20T03:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: KL81 SWD access timeout</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL81-SWD-access-timeout/m-p/597523#M35004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a quick update: I connected SWD nRESET pin to MCU's RESET_b pin and SWD NC(pin 9) to ground, my J_Link can connect to KL81.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my first question, Flash sector erasing can cause system reset, is still unsolved, please advise, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 05:28:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL81-SWD-access-timeout/m-p/597523#M35004</guid>
      <dc:creator>daweiy</dc:creator>
      <dc:date>2017-03-20T05:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: KL81 SWD access timeout</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL81-SWD-access-timeout/m-p/597524#M35005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another update, I made a silly mistake: didn't disable interrupt during Flash operation. Now all the Flash operations work fine after I disable the interrupts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 22:30:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL81-SWD-access-timeout/m-p/597524#M35005</guid>
      <dc:creator>daweiy</dc:creator>
      <dc:date>2017-03-20T22:30:51Z</dc:date>
    </item>
  </channel>
</rss>

