<?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: OpenOCD configuration for FRDM-MCXN947 board in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/OpenOCD-configuration-for-FRDM-MCXN947-board/m-p/1895183#M513</link>
    <description>&lt;P&gt;Hi, and thanks for the response.&amp;nbsp; The warning:&lt;/P&gt;&lt;PRE&gt;Warn : gdb services need one or more targets defined&lt;/PRE&gt;&lt;P&gt;...is only about `gdb` services, which are not being used here (the GDB port is deliberately disabled).&amp;nbsp; OpenOCD needs to reset the target before it can do anything and that is the part that is failing. It is following the `reset_config` instruction given on the command-line to determine how to reset the target but I can't determine what reset configuration is meant to be used, meant to succeed, with the `FRDM-MCXN947` board.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2024 13:14:17 GMT</pubDate>
    <dc:creator>robmeades</dc:creator>
    <dc:date>2024-06-27T13:14:17Z</dc:date>
    <item>
      <title>OpenOCD configuration for FRDM-MCXN947 board</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/OpenOCD-configuration-for-FRDM-MCXN947-board/m-p/1890481#M488</link>
      <description>&lt;P&gt;I need to use OpenOCD to program/debug my FRDM-MCXN947 board.&amp;nbsp; I have updated the debug chip on the board to use CMSIS-DAP and have been able to connect OpenOCD however OpenOCD always bombs out with the error&amp;nbsp;&lt;FONT face="courier new,courier"&gt;embedded:startup.tcl:1524: Error: ** Unable to reset target **&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;I have tried setting the OpenOCD&amp;nbsp;&lt;FONT face="courier new,courier"&gt;reset_config&lt;/FONT&gt; to &lt;FONT face="courier new,courier"&gt;none&lt;/FONT&gt;&amp;nbsp;and to&amp;nbsp;&lt;FONT face="courier new,courier"&gt;srst_only&lt;/FONT&gt; but neither has helped.&amp;nbsp; Can anyone suggest a working OpenOCD configuration for this board?&lt;/P&gt;&lt;P&gt;FYI, here is the full output:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;openocd -f ../openocd/scripts/interface/cmsis-dap.cfg -c "transport select swd" -c "reset_config srst_only" -c "gdb_port disabled" -c "tcl_port disabled" -c "telnet_port disabled" -c "adapter speed 1000" -c "program /TEMP/test_main reset"

xPack Open On-Chip Debugger 0.12.0+dev-01312-g18281b0c4-dirty (2023-09-04-22:32)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
swd
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
adapter speed: 1000 kHz
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: JTAG supported
Info : CMSIS-DAP: Atomic commands supported
Info : CMSIS-DAP: FW Version = 1.10
Info : CMSIS-DAP: Serial# = KBEE1LS3QWE4M
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 1000 kHz
Warn : gdb services need one or more targets defined
embedded:startup.tcl:1524: Error: ** Unable to reset target **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 1561
at file "embedded:startup.tcl", line 1524&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 14:35:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/OpenOCD-configuration-for-FRDM-MCXN947-board/m-p/1890481#M488</guid>
      <dc:creator>robmeades</dc:creator>
      <dc:date>2024-06-19T14:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: OpenOCD configuration for FRDM-MCXN947 board</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/OpenOCD-configuration-for-FRDM-MCXN947-board/m-p/1893508#M503</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The openocd is third party tools, from the message, it appears that the startup.tcl script has issue, have you checked the file?&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Xiangjun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 09:22:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/OpenOCD-configuration-for-FRDM-MCXN947-board/m-p/1893508#M503</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-06-25T09:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: OpenOCD configuration for FRDM-MCXN947 board</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/OpenOCD-configuration-for-FRDM-MCXN947-board/m-p/1895183#M513</link>
      <description>&lt;P&gt;Hi, and thanks for the response.&amp;nbsp; The warning:&lt;/P&gt;&lt;PRE&gt;Warn : gdb services need one or more targets defined&lt;/PRE&gt;&lt;P&gt;...is only about `gdb` services, which are not being used here (the GDB port is deliberately disabled).&amp;nbsp; OpenOCD needs to reset the target before it can do anything and that is the part that is failing. It is following the `reset_config` instruction given on the command-line to determine how to reset the target but I can't determine what reset configuration is meant to be used, meant to succeed, with the `FRDM-MCXN947` board.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 13:14:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/OpenOCD-configuration-for-FRDM-MCXN947-board/m-p/1895183#M513</guid>
      <dc:creator>robmeades</dc:creator>
      <dc:date>2024-06-27T13:14:17Z</dc:date>
    </item>
  </channel>
</rss>

