<?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: KL02Z inconsistent SWD response in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02Z-inconsistent-SWD-response/m-p/405254#M22599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fang Li,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have connected the FRDM-KL02Z to another board (FRDM-KL02Z) and I am using the GPIO pins on my board to toggle the SWDIO and SWDCLK pins on the KL02Z.&lt;/P&gt;&lt;P&gt;As I mentioned, I was able to initialize the SWD connection and get communication running between the 2 boards. The problem is, after several SWD commands (which the KL02Z returns OK ACK) I am getting a faulty ACK (0x4) from the KL02Z and I must reinitialize the SWD connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell what might cause this inconsistency in the board’s response?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Haim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2015 15:30:59 GMT</pubDate>
    <dc:creator>haimf</dc:creator>
    <dc:date>2015-07-07T15:30:59Z</dc:date>
    <item>
      <title>KL02Z inconsistent SWD response</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02Z-inconsistent-SWD-response/m-p/405252#M22597</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 hoping for some guidance in regards to using SWD to access the FRDM-KL02Z board.&lt;/P&gt;&lt;P&gt;I connected 2 GPIO pins on my board to the SWDIO and SWDCLK pins on the board for SWD access to the FRDM-KL02Z board.&lt;/P&gt;&lt;P&gt;I was using the instructions on this forum discussion &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/350691"&gt;https://community.freescale.com/thread/350691&lt;/A&gt;&lt;/P&gt;&lt;P&gt;to configure the SWD initialization sequence, and I was able to read the IDCODE and get access to the access port.&lt;/P&gt;&lt;P&gt;The problem I encounter is inconsistency in the board response. I am able to recreate it as follows:&lt;/P&gt;&lt;P&gt;Initialization sequence:&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;SWDCLK is set to output.&lt;/LI&gt;&lt;LI&gt;Host turns SWDIO into an output and drives it high, SWDCLK is strobed from high to low 64 times.&lt;/LI&gt;&lt;LI&gt;0x9E is sent LSb First over SWDIO by the host &lt;/LI&gt;&lt;LI&gt;0xE7 is sent LSb First over SWDIO by the host &lt;/LI&gt;&lt;LI&gt;Host turns SWDIO into an output and drives it high, SWDCLK is again strobed from high to low 64 times&lt;/LI&gt;&lt;LI&gt;SWDIO is set low and the clock is strobed once &lt;/LI&gt;&lt;LI&gt;Header to read IDCODE is formed and sent, ACK OK received, 32 bits of Data recieved, 1 parity bit received, Data is 0x0BC11477&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I then, try to redo the last action- read the IDCODE many times.&lt;/P&gt;&lt;P&gt;After several retries (the amount of retries is inconsistent) of successful reads, I get a fault ACK- which can be 0x4 or 0x7 (which are illegal ACKs in debug port accesses), and I have to redo the init sequence in order to be able to read again.&lt;/P&gt;&lt;P&gt;This problem happens in all kind of read/write operations to the debug and the access ports. I used scope to get the signals coming from the board, and I see that the ACK signals are indeed faulty.&lt;/P&gt;&lt;P&gt;Do you have any idea, what might cause this inconsistency in the board’s response?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;BR /&gt;Haim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 15:35:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02Z-inconsistent-SWD-response/m-p/405252#M22597</guid>
      <dc:creator>haimf</dc:creator>
      <dc:date>2015-06-16T15:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: KL02Z inconsistent SWD response</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02Z-inconsistent-SWD-response/m-p/405253#M22598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Haim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Sorry for the late response. Regarding your issue, did you mean that you have used one FRDM-KL02Z to programming another FRDM-KL02Z? If I am understaning is correct, please let me know if you had effectively isolate the on-board MCU from the OpenSDA debug interface of the programmed FRDM-KL02Z? Please sent me the schematic for reivew if possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 06:32:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02Z-inconsistent-SWD-response/m-p/405253#M22598</guid>
      <dc:creator>miduo</dc:creator>
      <dc:date>2015-07-07T06:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: KL02Z inconsistent SWD response</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02Z-inconsistent-SWD-response/m-p/405254#M22599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fang Li,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have connected the FRDM-KL02Z to another board (FRDM-KL02Z) and I am using the GPIO pins on my board to toggle the SWDIO and SWDCLK pins on the KL02Z.&lt;/P&gt;&lt;P&gt;As I mentioned, I was able to initialize the SWD connection and get communication running between the 2 boards. The problem is, after several SWD commands (which the KL02Z returns OK ACK) I am getting a faulty ACK (0x4) from the KL02Z and I must reinitialize the SWD connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell what might cause this inconsistency in the board’s response?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Haim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 15:30:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02Z-inconsistent-SWD-response/m-p/405254#M22599</guid>
      <dc:creator>haimf</dc:creator>
      <dc:date>2015-07-07T15:30:59Z</dc:date>
    </item>
  </channel>
</rss>

