<?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: HVPKV58F PEMicro JTAG Debugging Issue in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/HVPKV58F-PEMicro-JTAG-Debugging-Issue/m-p/969208#M55210</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;HVP has on board openSDA debug port. Can you try to use it to debug? I wonder the openSDA's SWD signal may conflict with your PE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Sep 2019 07:51:48 GMT</pubDate>
    <dc:creator>jingpan</dc:creator>
    <dc:date>2019-09-26T07:51:48Z</dc:date>
    <item>
      <title>HVPKV58F PEMicro JTAG Debugging Issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/HVPKV58F-PEMicro-JTAG-Debugging-Issue/m-p/969205#M55207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Error Messages&lt;/P&gt;&lt;P&gt;semihost ==&amp;gt; Could not connect to semihosting port ...&lt;/P&gt;&lt;P&gt;debugging console ==&amp;gt; monitor command not supported by this target&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I bringing up the HVPKV58F board to try out some baremetal code that I developed on the twkv58f220m.&lt;/P&gt;&lt;P&gt;I am using MCUExpresso v10.31.1&amp;nbsp; (build 2233)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the HVPKV58F Expresso SDK install and I just trying to run hello world example.&lt;/P&gt;&lt;P&gt;My debugger is a PE Micro Multilink Universal FX. &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I launch the debugger it tries to debug but it gets to point (61% and dies)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Semihost console says&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV style="color: #222222; font-family: Arial,Helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&amp;lt;terminated&amp;gt; - hpvkv58f_hellow_world PE Debug [GDB PEMicro Interface Debugging] Semihost Console&lt;/DIV&gt;&lt;DIV style="color: #222222; font-family: Arial,Helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Could not connect to semihosting port due to connection timeout. Please check that the correct port number is configured.&lt;/DIV&gt;&lt;DIV style="color: #222222; font-family: Arial,Helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; font-family: Arial,Helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;STRONG&gt;Debugger Console says&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; font-family: Arial,Helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;GNU gdb (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 8.1.0.20180315-git&lt;BR /&gt;Copyright (C) 2018 Free Software Foundation, Inc.&lt;BR /&gt;License GPLv3+: GNU GPL version 3 or later &amp;lt;&lt;A data-saferedirecturl="https://www.google.com/url?q=http://gnu.org/licenses/gpl.html&amp;amp;source=gmail&amp;amp;ust=1569443728052000&amp;amp;usg=AFQjCNFcRvVZaVUOP-LfnkLSsP7FgrhU2g" href="http://gnu.org/licenses/gpl.html" style="color: #1155cc;" target="_blank"&gt;http://gnu.org/licenses/gpl.html&lt;/A&gt;&amp;gt;&lt;BR /&gt;This is free software: you are free to change and redistribute it.&lt;BR /&gt;There is NO WARRANTY, to the extent permitted by law.&amp;nbsp; Type "show copying"&lt;BR /&gt;and "show warranty" for details.&lt;BR /&gt;This GDB was configured as "--host=i686-w64-mingw32 --target=arm-none-eabi".&lt;BR /&gt;Type "show configuration" for configuration details.&lt;BR /&gt;For bug reporting instructions, please see:&lt;BR /&gt;&amp;lt;&lt;A data-saferedirecturl="https://www.google.com/url?q=http://www.gnu.org/software/gdb/bugs/&amp;amp;source=gmail&amp;amp;ust=1569443728052000&amp;amp;usg=AFQjCNF1ddsxTvNq-sbCIg1hL-di6AhnyQ" href="http://www.gnu.org/software/gdb/bugs/" style="color: #1155cc;" target="_blank"&gt;http://www.gnu.org/software/gdb/bugs/&lt;/A&gt;&amp;gt;.&lt;BR /&gt;Find the GDB manual and other documentation resources online at:&lt;BR /&gt;&amp;lt;&lt;A data-saferedirecturl="https://www.google.com/url?q=http://www.gnu.org/software/gdb/documentation/&amp;amp;source=gmail&amp;amp;ust=1569443728052000&amp;amp;usg=AFQjCNFpVIAug44iWKx9ri676EQaYIZpQw" href="http://www.gnu.org/software/gdb/documentation/" style="color: #1155cc;" target="_blank"&gt;http://www.gnu.org/software/gdb/documentation/&lt;/A&gt;&amp;gt;.&lt;BR /&gt;For help, type "help".&lt;BR /&gt;Type "apropos word" to search for commands related to "word".&lt;P&gt;&lt;/P&gt;monitor selectcore 0&lt;BR /&gt;"monitor" command not supported by this target.&lt;BR /&gt;continue&lt;BR /&gt;The program is not being run.&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(few more details)&lt;/P&gt;&lt;P&gt;Powering up HPV through USB 5V only not data lines&amp;nbsp;&lt;/P&gt;&lt;P&gt;Powering debugger through J10 header&lt;/P&gt;&lt;P&gt;Normally debugging with 20 pin PE Micro Universal cable this target uses 10 pin cable.&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debugger seems happy both the blue and yellow lights are lit. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2019 22:01:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/HVPKV58F-PEMicro-JTAG-Debugging-Issue/m-p/969205#M55207</guid>
      <dc:creator>JeffMichalski</dc:creator>
      <dc:date>2019-09-24T22:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: HVPKV58F PEMicro JTAG Debugging Issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/HVPKV58F-PEMicro-JTAG-Debugging-Issue/m-p/969206#M55208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;Please download HVP-KV58 SDK from &lt;A class="" href="https://mcuxpresso.nxp.com" title="https://mcuxpresso.nxp.com"&gt;Welcome | MCUXpresso SDK Builder&lt;/A&gt;&amp;nbsp; and try again.&lt;/P&gt;&lt;P&gt;Semihost use UART port. In HVP-KV58, openSDA connect to UART1. But in TWR-KV58, openSDA connect to UART0. So, semihost connection can't establish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2019 08:21:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/HVPKV58F-PEMicro-JTAG-Debugging-Issue/m-p/969206#M55208</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-09-25T08:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: HVPKV58F PEMicro JTAG Debugging Issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/HVPKV58F-PEMicro-JTAG-Debugging-Issue/m-p/969207#M55209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jing,&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;gt;&amp;gt;Please download HVP-KV58 SDK from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fmcuxpresso.nxp.com" rel="nofollow" style="color: #3d9ce7; background-color: #ffffff; border: 0px; text-decoration: none; font-size: 14px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;Welcome | MCUXpresso SDK Builder&lt;/A&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; and try again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am importing hello_world application from the &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;HVP-KV58 SDK v2.6 on MCUExpresso 11.0.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Base on&amp;nbsp; you suggestions this what I tried.&amp;nbsp; &amp;nbsp; See screen dumps and code.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK here was what I tried this morning.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="HPV58KV_Hello_World_SDK_2.6_UART Build.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/85087i0358A3D8CDF94E2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="HPV58KV_Hello_World_SDK_2.6_UART Build.PNG" alt="HPV58KV_Hello_World_SDK_2.6_UART Build.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="HPV58KV_Hello_World_SDK_2.6_UART Build_Link_Location.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/85127i9491149BF465AF6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="HPV58KV_Hello_World_SDK_2.6_UART Build_Link_Location.PNG" alt="HPV58KV_Hello_World_SDK_2.6_UART Build_Link_Location.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;#ifndef _BOARD_H_&lt;BR /&gt;#define _BOARD_H_&lt;/P&gt;&lt;P&gt;#include "clock_config.h"&lt;BR /&gt;#include "fsl_gpio.h"&lt;/P&gt;&lt;P&gt;/*******************************************************************************&lt;BR /&gt; * Definitions&lt;BR /&gt; ******************************************************************************/&lt;BR /&gt;/*! @brief The board name */&lt;BR /&gt;#define BOARD_NAME "HVP-KV58F"&lt;/P&gt;&lt;P&gt;/*! @brief The UART to use for debug messages. */&lt;BR /&gt;#define BOARD_USE_UART&lt;BR /&gt;#define BOARD_DEBUG_UART_TYPE kSerialPort_Uart&lt;BR /&gt;#define BOARD_DEBUG_UART_BASEADDR (uint32_t) &lt;STRONG&gt;UART1&lt;/STRONG&gt;&lt;BR /&gt;#define BOARD_DEBUG_UART_INSTANCE &lt;STRONG&gt;1U&lt;/STRONG&gt;&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to comment out the console.&amp;nbsp; &amp;nbsp;Just see if I could step through main.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void BOARD_InitDebugConsole(void)&lt;BR /&gt;{&lt;BR /&gt; uint32_t uartClkSrcFreq = BOARD_DEBUG_UART_CLK_FREQ;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/// \note JCM&lt;/STRONG&gt; DbgConsole_Init(BOARD_DEBUG_UART_INSTANCE, BOARD_DEBUG_UART_BAUDRATE, BOARD_DEBUG_UART_TYPE, uartClkSrcFreq);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similar results at the :&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;GDB CONSOLE&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;687,364 &amp;amp;"The program is not being run.\n"&lt;BR /&gt;687,364 ^error,msg="The program is not being run."&lt;BR /&gt;687,364 (gdb) &lt;BR /&gt;687,364 35^error,msg="Invalid thread id: 1"&lt;BR /&gt;687,364 (gdb) &lt;BR /&gt;687,365 36-stack-info-depth --thread 1&lt;BR /&gt;687,372 37-data-disassemble --thread 1 -s 4294967294 -e 4294967338 -- 3&lt;BR /&gt;687,372 38-thread-info 1&lt;BR /&gt;687,373 39-list-thread-groups&lt;BR /&gt;687,375 36^error,msg="Invalid thread id: 1"&lt;BR /&gt;687,375 (gdb) &lt;BR /&gt;687,375 37^error,msg="Invalid thread id: 1"&lt;BR /&gt;687,375 (gdb) &lt;BR /&gt;687,375 38^done,threads=[]&lt;BR /&gt;687,375 (gdb) &lt;BR /&gt;687,375 39^done,groups=[{id="i1",type="process"}]&lt;BR /&gt;687,375 40-stack-list-frames --thread 1&lt;BR /&gt;687,376 (gdb) &lt;BR /&gt;687,384 41-data-disassemble --thread 1 -s 4294967295 -e 4294967347 -- 3&lt;BR /&gt;687,386 40^error,msg="Invalid thread id: 1"&lt;BR /&gt;687,386 (gdb) &lt;BR /&gt;687,386 41^error,msg="Invalid thread id: 1"&lt;BR /&gt;687,386 (gdb) &lt;BR /&gt;687,398 42-data-disassemble --thread 1 -s 4294967296 -e 4294967348 -- 3&lt;BR /&gt;687,408 42^error,msg="Invalid thread id: 1"&lt;BR /&gt;687,408 (gdb) &lt;BR /&gt;687,789 43-gdb-exit&lt;BR /&gt;687,791 43^exit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this time I got the following error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_10.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86093iEF497F3D78FBE600/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_10.png" alt="pastedImage_10.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However,&amp;nbsp; &amp;nbsp;I think I may have narrowed in this&amp;nbsp;issue to be a FLASH write error.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;PEGDBSERVER_CONSOLE OUTPUT&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Loading programming algorithm ... &lt;BR /&gt;Done.&lt;BR /&gt;Programming sequency is : erase, blank check, program, and verify {default} &lt;BR /&gt;CMD&amp;gt;VC&lt;BR /&gt;Command is inactive for this .ARP file. &lt;BR /&gt;VC is not implemented, falling back to VM &lt;BR /&gt; &lt;BR /&gt;CMD&amp;gt;VM&lt;BR /&gt; &lt;BR /&gt;Verifying.&lt;BR /&gt;Verify error at address $10000002. &lt;BR /&gt;Byte in module is $00 and should be $02. &lt;BR /&gt;Current content of flash does not match application to be programmed &lt;BR /&gt;CMD&amp;gt;EM&lt;BR /&gt;Command is inactive for this .ARP file. &lt;BR /&gt;Error Erasing flash of device &lt;BR /&gt;Error occured during Flash programming. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is why.&amp;nbsp; &amp;nbsp;Is the algorithm, the location or a issue with the hardware?&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is where I am at.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Mich&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2019 17:57:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/HVPKV58F-PEMicro-JTAG-Debugging-Issue/m-p/969207#M55209</guid>
      <dc:creator>JeffMichalski</dc:creator>
      <dc:date>2019-09-25T17:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: HVPKV58F PEMicro JTAG Debugging Issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/HVPKV58F-PEMicro-JTAG-Debugging-Issue/m-p/969208#M55210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;HVP has on board openSDA debug port. Can you try to use it to debug? I wonder the openSDA's SWD signal may conflict with your PE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2019 07:51:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/HVPKV58F-PEMicro-JTAG-Debugging-Issue/m-p/969208#M55210</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-09-26T07:51:48Z</dc:date>
    </item>
  </channel>
</rss>

