<?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: TWR-KV58F220M Debug with Segger J-Link problems in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-KV58F220M-Debug-with-Segger-J-Link-problems/m-p/699128#M42982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN&gt;Apparently it's a J-Link problem.&lt;/SPAN&gt; &lt;SPAN&gt;Installing the drivers and firmware 6.20e resolves the problem.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN&gt;I can not explain why this flaw does not happen if I connect J-Link directly to the MCU on the lab card.&lt;/SPAN&gt; &lt;SPAN&gt;However with software 6.20e it returns to work all the time even with the TWR-KV58F220M.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Oct 2017 08:08:35 GMT</pubDate>
    <dc:creator>andreacanepa</dc:creator>
    <dc:date>2017-10-09T08:08:35Z</dc:date>
    <item>
      <title>TWR-KV58F220M Debug with Segger J-Link problems</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-KV58F220M-Debug-with-Segger-J-Link-problems/m-p/699127#M42981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;The TWR-KV58F220M card works well in debugging using its USB port with PE Micro OpenSDA&lt;/SPAN&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN&gt;I connect the J-Link interface to the demo board connector (J13) after removing the jumpers (J19 and J20) to send firmware to the board.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="" lang="en"&gt;&lt;SPAN&gt;I can not communicate J-Link with MKV58 installed on the demo board.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If I use J-Flash Lite, press ERASE button, after a few seconds I get the following:&lt;BR /&gt; &lt;IMG alt="" class="" src="https://i.imgur.com/dVvCefV.png" /&gt; &lt;BR /&gt; &lt;BR /&gt; If I use J-Link Commander, I can connect to the MKV58 without errors:&lt;BR /&gt; &lt;A href="https://i.imgur.com/IYVGUg0.png"&gt;&lt;IMG alt="" class="" height="439" src="https://i.imgur.com/IYVGUg0.png" width="530" /&gt;&lt;/A&gt; &lt;BR /&gt; &lt;BR /&gt; But if I try to reset the microcontroller, I get an error:&lt;BR /&gt; &lt;A href="https://i.imgur.com/BiwkutI.png"&gt;&lt;IMG alt="" class="" height="83" src="https://i.imgur.com/BiwkutI.png" width="530" /&gt;&lt;/A&gt; &lt;BR /&gt; I have also tried to select other reset modes (RSetType) but the result is always the same.&lt;BR /&gt; &lt;BR /&gt; The HALT and GO commands work fine, in fact, the CPU stops and then restarts without errors:&lt;BR /&gt; &lt;A href="https://i.imgur.com/5jD8J94.png"&gt;&lt;IMG alt="" class="" height="127" src="https://i.imgur.com/5jD8J94.png" width="530" /&gt;&lt;/A&gt; &lt;BR /&gt; &lt;BR /&gt; The ERASE command (from J-Link Commander), work fine and after the memory is erased:&lt;BR /&gt; &lt;A href="https://i.imgur.com/cNVolXy.png"&gt;&lt;IMG alt="" class="" height="51" src="https://i.imgur.com/cNVolXy.png" width="530" /&gt;&lt;/A&gt; &lt;BR /&gt; &lt;BR /&gt; If I send my file ".bin" to the CPU with the "loadfile" command I get this warning:&lt;BR /&gt; &lt;IMG alt="" class="" src="https://i.imgur.com/3Rnct9c.png" /&gt; &lt;BR /&gt; but in fact nothing has been loaded inside the CPU, in fact my program does not work.&lt;BR /&gt; &lt;BR /&gt; Perhaps this problem can be caused by the protection to flash writing / reading?&lt;BR /&gt; So I use the "unLock Kinetis" command to unlock my cpu, and everything is done correctly:&lt;BR /&gt; &lt;IMG alt="" class="" src="https://i.imgur.com/eYsIHU2.png" /&gt; &lt;BR /&gt; &lt;BR /&gt; If I send my file ".bin" to the CPU with the "loadfile" now the messages are:&lt;BR /&gt; &lt;A href="https://i.imgur.com/YBkvKl2.png"&gt;&lt;IMG alt="" class="" height="407" src="https://i.imgur.com/YBkvKl2.png" width="530" /&gt;&lt;/A&gt; &lt;BR /&gt; Obviously the program has not been loaded into CPU memory, in fact it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN&gt;I also connected the J-Link directly to a microprocessor MKV58 welded on other lab card and I was able to communicate using SWD, so I do not think the problem is in J-Link. The only difference between the two tests is that when I connect J-Link to the TWR card I have to use the "Cortex-M 19 pin adapter", instead for connecting to the direct MKV58 I used the standard 20-pin flat cable without adapter.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;If anyone has had experience of using J-Link with this demo board and can give me some advice I'm grateful to.&lt;BR /&gt; &lt;BR /&gt; Best regards&lt;BR /&gt; Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 18:06:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-KV58F220M-Debug-with-Segger-J-Link-problems/m-p/699127#M42981</guid>
      <dc:creator>andreacanepa</dc:creator>
      <dc:date>2017-10-04T18:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-KV58F220M Debug with Segger J-Link problems</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-KV58F220M-Debug-with-Segger-J-Link-problems/m-p/699128#M42982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN&gt;Apparently it's a J-Link problem.&lt;/SPAN&gt; &lt;SPAN&gt;Installing the drivers and firmware 6.20e resolves the problem.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN&gt;I can not explain why this flaw does not happen if I connect J-Link directly to the MCU on the lab card.&lt;/SPAN&gt; &lt;SPAN&gt;However with software 6.20e it returns to work all the time even with the TWR-KV58F220M.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 08:08:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-KV58F220M-Debug-with-Segger-J-Link-problems/m-p/699128#M42982</guid>
      <dc:creator>andreacanepa</dc:creator>
      <dc:date>2017-10-09T08:08:35Z</dc:date>
    </item>
  </channel>
</rss>

