<?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: How to make redlinkserv work in the command line? in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/714215#M1032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Con,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your answer, and already read the resources you linked before, but they're overly general, and lack detail. Unlike Segger J-Link, LPC-Link2 looks very command line unfriendly, and I cannot make it work based on these documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I don't call redlinkserv when using&amp;nbsp;crt_emu_cm_redlink, then I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Nc: Connecting to probe 0 core 0 - Ee(D1). Redlink server process restart&lt;BR /&gt;Nc: Server OK but no connection to probe 0 core 0 (after 3 attempts) - Ee(36). Could not connect to core.&lt;BR /&gt;Ed:02: Failed on connect: Ee(36). Could not connect to core.&lt;BR /&gt;Et:31: No connection to debug probe&lt;BR /&gt;Pc: (100) Target Connection Failed&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to run&amp;nbsp;crt_emu_cm_redlink without the ProbeHandle or CoreIndex arguments and nothing seemed to change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any further help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Laci&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Oct 2017 20:05:05 GMT</pubDate>
    <dc:creator>laszlomonda</dc:creator>
    <dc:date>2017-10-06T20:05:05Z</dc:date>
    <item>
      <title>How to make redlinkserv work in the command line?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/714213#M1030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to use my LPC-Link 2 probe on&amp;nbsp;the command line to program my boards and I cannot make it work this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First up, I launch "boot_link2" which works:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;laci@spark /usr/local/mcuxpressoide-10.0.0_344/ide/bin $ ./boot_link2&lt;BR /&gt;/usr/local/mcuxpressoide-10.0.0_344/ide/bin/dfu_boot -s ./boot_link2 -n LPC-Link2 -v 0x1fc9:0x000c -i /usr/local/mcuxpressoide-10.0.0_344/ide/bin/../bin/LPC432x_CMSIS_DAP_V5_182.bin.hdr&lt;BR /&gt;Looking for DFU devices with VID 1fc9 PID 000c ...&lt;BR /&gt;dfu-util -d 1fc9:000c -c 1 -i 0 -t 2048 -R -D /usr/local/mcuxpressoide-10.0.0_344/ide/bin/../bin/LPC432x_CMSIS_DAP_V5_182.bin.hdr&lt;BR /&gt;Booted LPC-Link2 (1fc9:000c) with /usr/local/mcuxpressoide-10.0.0_344/ide/bin/../bin/LPC432x_CMSIS_DAP_V5_182.bin.hdr&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second,&amp;nbsp;I launch "redlinkserv --telnetport=3025,3050" which starts up, but doesn't output anything and doesn't return. It also doesn't make the upcoming "crt_emu_cm_redlink" command work, and it hangs forever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Third, I launch "crt_emu_cm_redlink", which fails. I assume it's because redlinkserv failed.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;laci@spark&amp;nbsp; $&amp;nbsp;/usr/local/mcuxpressoide/ide/bin/crt_emu_cm_redlink --flash-load-exec "/home/laci/download/uhk-left.bin" -g --debug 2 --vendor NXP -p MKL03Z32xxx4 --load-base=0 -ProbeHandle=1 -CoreIndex=0 --reset vectreset -x /home/laci/mcuxpresso/.mcuxpressoide_packages_support/MKL03Z32xxx4_support --flash-dir /home/laci/mcuxpresso/.mcuxpressoide_packages_support/MKL03Z32xxx4_support/Flash&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ns: MCUXpresso RedlinkMulti Driver v10.0 (Mar 21 2017 01:36:19 - crt_emu_cm_redlink build 190)&lt;BR /&gt;Pc: ( 0) Reading remote configuration&lt;BR /&gt;Pc: ( 5) Remote configuration complete&lt;BR /&gt;Nc: Reconnected to existing redlink server (PID 4294967295)&lt;BR /&gt;Nc: Connecting to probe 1 core 0 (server PID unknown) gave 'Ee(38). Invalid probe index.'&lt;BR /&gt;Nc: Connecting to probe 1 core 0 (server PID unknown) gave 'Ee(38). Invalid probe index.'&lt;BR /&gt;Nc: Connecting to probe 1 core 0 (server PID unknown) gave 'Ee(38). Invalid probe index.'&lt;BR /&gt;Nc: Server OK but no connection to probe 1 core 0 (after 3 attempts) - Ee(38). Invalid probe index.&lt;BR /&gt;Ed:02: Failed on connect: Ee(38). Invalid probe index.&lt;BR /&gt;Et:31: No connection to debug probe&lt;BR /&gt;Pc: (100) Target Connection Failed&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"crt_emu_cm_redlink" works after I start up the Link Server GUI Flash programmer utility of MCUXpresso IDE, but as I said, I'd like to use LPC-Link 2 purely from the command line, so it's not an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your ultimate wisdom, guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Laci&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Sep 2017 14:19:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/714213#M1030</guid>
      <dc:creator>laszlomonda</dc:creator>
      <dc:date>2017-09-02T14:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to make redlinkserv work in the command line?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/714214#M1031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This link describes how to use the command line flash tool&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/630785"&gt;https://community.nxp.com/message/630785&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A couple of things to note:&lt;/P&gt;&lt;P&gt;- do not start redlinkserv. The tool automatically does this in the background&lt;/P&gt;&lt;P&gt;- if there is one probe connected to one mcu, do not use probehandle or coreindex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Sep 2017 19:59:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/714214#M1031</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2017-09-02T19:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to make redlinkserv work in the command line?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/714215#M1032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Con,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your answer, and already read the resources you linked before, but they're overly general, and lack detail. Unlike Segger J-Link, LPC-Link2 looks very command line unfriendly, and I cannot make it work based on these documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I don't call redlinkserv when using&amp;nbsp;crt_emu_cm_redlink, then I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Nc: Connecting to probe 0 core 0 - Ee(D1). Redlink server process restart&lt;BR /&gt;Nc: Server OK but no connection to probe 0 core 0 (after 3 attempts) - Ee(36). Could not connect to core.&lt;BR /&gt;Ed:02: Failed on connect: Ee(36). Could not connect to core.&lt;BR /&gt;Et:31: No connection to debug probe&lt;BR /&gt;Pc: (100) Target Connection Failed&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to run&amp;nbsp;crt_emu_cm_redlink without the ProbeHandle or CoreIndex arguments and nothing seemed to change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any further help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Laci&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 20:05:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/714215#M1032</guid>
      <dc:creator>laszlomonda</dc:creator>
      <dc:date>2017-10-06T20:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to make redlinkserv work in the command line?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/714216#M1033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi Laci&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I tried to run&amp;nbsp;crt_emu_cm_redlink without the ProbeHandle or CoreIndex arguments and nothing seemed to change.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;A very good idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;In the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;Nc: Connecting to probe 0 core 0 - Ee(D1). Redlink server process restart&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;Nc: Server OK but no connection to probe 0 core 0 (after 3 attempts) - Ee(36). Could not connect to core.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;we would expect a failure because zero is not a valid probe number.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Omitting both the --probehandle and the --coreindex options will normally work best if there is no instance of MCUXpresso IDE in use.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;The link server will be&amp;nbsp;run for you if necessary.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like you are trying to program the flash and are starting from the command line&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;/usr/local/mcuxpressoide/ide/bin/crt_emu_cm_redlink --flash-load-exec "/home/laci/download/uhk-left.bin" -g --debug 2 --vendor NXP -p MKL03Z32xxx4 --load-base=0 -ProbeHandle=1 -CoreIndex=0 --reset vectreset -x&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;which you probably derived from the command used inside the IDE.&amp;nbsp; Here are some points that might help&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;--flash-load-exec &lt;SPAN style="color: #3d3d3d; background-color: #ffffff;"&gt;"/home/laci/download/uhk-left.bin"&amp;nbsp;&lt;/SPAN&gt;will program the image into your device and then start it running using a reset.&amp;nbsp; The quotes around the file name are good practice but, unless the file name includes spaces or other strange characters, aren't strictly necessary.&lt;BR /&gt;Did&amp;nbsp;you want to execute the code as well as program it?&amp;nbsp; If you just needed to program the data use --flash-load instead of --flash-load-exec.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;-g is used by the IDE to get the program to report information it uses for a progress meter, if you are using the command on the command line you don't need it.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;--debug 2 sets a debug level that will dictate the amount of detail printed to the (standard error) output, there is nothing wrong with including it, but you don't need it.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;--vendor NXP was useful in old versions of LPCXpresso IDE, but now there are no other options for --vendor and 'NXP' is the default anyway, so you don't really need it.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;-p MKL03Z32xxx4 provides the name of your board or package and is absolutely necessary&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;--load-base 0 is required only because you are flashing a binary file (and binary files contain no internal detail of which target address they should be flashed to).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;--probehandle 1 identifies the debug probe you are using - in particular it selects the 'first' to be found (the link server can deal with simultaneous connections to many).&amp;nbsp; If you omit this the first probe is located automatically, so you probably don't require this.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;--coreindex 0 identifies the CPU on the board attached to the given probe that you wish to use (some boards have multiple cores).&amp;nbsp; Core 0 is the 'first' one located and is the default, so you probably don't require this either.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;--reset vectreset chooses the type of reset you use in order to execute the image once it has been written to flash (only required because you have used --flash-load-exec rather than --flash-load). There are two main options 'vectreset' (or 'system') and 'sysresetreq' (or 'core'). The former causes the image to run by doing the kind of reset that causes the Boot ROM to re-execute.&amp;nbsp; The latter just resets the core that you are connected to (but perhaps not other parts of the system and not including any initialization that the Boot ROM might have provided for you) and then jumps to the address embedded in the fist word of the image you booted.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;-x : this option should be followed by the name of a directory where XML information defining various details of the memory map, which memory areas are served by which flash drivers, and where peripherals can be found.&amp;nbsp; You might need this, particularly if you have updated details of flash location or where memory areas are in the IDE and you want to inherit that information.&amp;nbsp; The defaults should be OK if you haven't made such changes. -x on its own is incorrect - it is a bug in crt_emu_cm_redlink that it does not say so.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;If you don't need -x and you would like only to program the flash you could try:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN&gt;/usr/local/mcuxpressoide/ide/bin/crt_emu_cm_redlink --flash-load "/home/laci/download/uhk-left.bin" -p MKL03Z32xxx4 --load-base 0&amp;nbsp;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;The existing information about using the tool from the command line is poor and we are thinking of updating it.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;Meanwhile I hope the above will help.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;Note also that&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/local/mcuxpressoide/ide/bin/crt_emu_cm_redlink -h&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;will print out some limited, if cryptic, details of some of the other options.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Sincerely&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;LPCXpresso IDE Support&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 17:02:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/714216#M1033</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2017-10-10T17:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to make redlinkserv work in the command line?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/714217#M1034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp;LPCXpresso IDE Support,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the detailed description. I appreciate it very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on your description, I tried to strip down my command as much as possible, but unfortunately I get almost the same error messages as before:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;$ /usr/local/mcuxpressoide/ide/bin/crt_emu_cm_redlink --flash-load /home/laci/download/uhk-left.bin -p MKL03Z32xxx4 --load-base=0 -x /home/laci/mcuxpresso/.mcuxpressoide_packages_support/MKL03Z32xxx4_support&lt;BR /&gt;Ns: MCUXpresso RedlinkMulti Driver v10.0 (Jun 22 2017 23:34:07 - crt_emu_cm_redlink build 272)&lt;BR /&gt;Wc(03). No cache support.&lt;BR /&gt;Nc: Server OK but no connection to probe 0 core 0 (after 3 attempts) - Ee(36). Could not connect to core.&lt;BR /&gt;Ed:02: Failed on connect: Ee(36). Could not connect to core.&lt;BR /&gt;Et:31: No connection to chip's debug port&lt;BR /&gt;Nc: error closing down debug session - Em(02). MEM-AP is not selected.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any further ideas about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Laci&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 15:27:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/714217#M1034</guid>
      <dc:creator>laszlomonda</dc:creator>
      <dc:date>2017-10-16T15:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to make redlinkserv work in the command line?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/714218#M1035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error you are seeing is indistinguishable from that seen if there was no connection to a board/MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I think it is time to take a big step back and establish exactly what is working ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are debugging using an LPC-Link2 debug probe and trying to connect to a board containing a KL03 MCU?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a development board e.g. a Kinetis Freedom board or a user designed board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is the board being powered?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to debug this board from the IDE? If so, please can you paste the debug log for a successful debug session into this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To find the debug log please go to the IDE&amp;nbsp; Console -&amp;gt; From the Drop Down -&amp;gt; Debug messages&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yours,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MCUXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 12:51:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/714218#M1035</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2017-10-17T12:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to make redlinkserv work in the command line?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/714219#M1036</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;We&amp;nbsp;ran into a similar problem and found the solution. What worked for us was&amp;nbsp;removing the "-ProbeHandle=1" parameter from the "&lt;SPAN style="font-size: 11pt;"&gt;crt_emu_cm_redlink" command, so that the probe is detected automatically.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;I hope this helps :smileyhappy:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;Enrique&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 15:01:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/714219#M1036</guid>
      <dc:creator>mbomio</dc:creator>
      <dc:date>2018-03-27T15:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to make redlinkserv work in the command line?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/714220#M1037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Sorry to hi-jack this thread but my problem is related to the one above.&lt;/P&gt;&lt;P&gt;I'm writing a script to download the same firmware to three CPUs at the same time (to speed up production) using LPC-link 2's. Problem is that I can't get the script to work when using -&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;ProbeHandle=n. If I run the script without the &lt;SPAN style="color: #3d3d3d;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;ProbeHandle the CPU connected to the first LPC-Link 2 gets programmed three times. How do I get this to work?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Kind regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Jimmy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Ps. If i run&amp;nbsp;redlinkserv.exe --commandline and there do a probelist I see all the probes, indexed 1, 2 &amp;amp; 3. They are all running&amp;nbsp;LPC-Link-II CMSIS-DAP firmware (And strangely enough have the same serial:&amp;nbsp;A000000001).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;The probes both works fine from MCUXpresso&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;They are programmed with the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;LPC-Link-II CMSIS-DAP firmware and set in the NON-DFU mode with the JP1 jumper in place (So if I understand it correctly no bootloading should be needed)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 11:35:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/714220#M1037</guid>
      <dc:creator>jimmypedersen</dc:creator>
      <dc:date>2018-06-26T11:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to make redlinkserv work in the command line?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/1200618#M6491</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;This is&amp;nbsp; old thread, someone must have&amp;nbsp; a solution by now....&lt;/P&gt;&lt;P&gt;I am in the&amp;nbsp; same situation...&lt;/P&gt;&lt;P&gt;If I start the redlinkserver from the IDE by&amp;nbsp; clicking the Red Link, then I can flash my MCU from CMD using crt_emu_cm_redlink.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the server is not running&amp;nbsp; then it fails with the&amp;nbsp; following&amp;nbsp; error:&lt;/P&gt;&lt;P&gt;Ns: redlink server client - failed to connect to new server localhost port 3490&lt;BR /&gt;Nc: Could not connect to link server - status 255&lt;BR /&gt;Nc: Failed to connect a LinkServer process.&lt;BR /&gt;Ed:02: Failed on connect: Ee(D0). Could not connect to server&lt;BR /&gt;Et:31: No connection to chip's debug port&lt;/P&gt;&lt;P&gt;One thing that is different&amp;nbsp; here is&amp;nbsp; the&amp;nbsp; port number, when the server is started from IDE it&amp;nbsp; connects to port 3025.&lt;/P&gt;&lt;P&gt;How can I make this&amp;nbsp; work ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Satbir&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 19:10:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/1200618#M6491</guid>
      <dc:creator>satbir7</dc:creator>
      <dc:date>2020-12-16T19:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to make redlinkserv work in the command line?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/1200642#M6492</link>
      <description>&lt;P&gt;What is your command line that is failing?&lt;/P&gt;&lt;P&gt;have you checked firewall?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 19:41:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/1200642#M6492</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2020-12-16T19:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to make redlinkserv work in the command line?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/1200648#M6493</link>
      <description>&lt;P&gt;Thanks for the quick reply!!&lt;/P&gt;&lt;P&gt;Here is my cmd&amp;nbsp;&lt;/P&gt;&lt;P&gt;crt_emu_cm_redlink -pMKE02Z64xxx4 -ConnectScript ke0xconnect.scp --flash-driver= -x --flash-dir -x -vendor=NXP -flash-load "code.axf"&lt;/P&gt;&lt;P&gt;Ns: MCUXpresso IDE RedlinkMulti Driver v11.2 (Sep 22 2020 13:23:35 - crt_emu_cm_redlink build 19)&lt;BR /&gt;Wc(03). No cache support.&lt;BR /&gt;Nc: Found part description in XML file MKE02Z4_internal.xml&lt;BR /&gt;Ns: redlink server client - failed to connect to new server localhost port 3490&lt;BR /&gt;Nc: Could not connect to link server - status 255&lt;BR /&gt;Nc: Failed to connect a LinkServer process.&lt;BR /&gt;Ed:02: Failed on connect: Ee(D0). Could not connect to server&lt;BR /&gt;Et:31: No connection to chip's debug port&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nothing pops up in firewall, asking for access.&lt;/P&gt;&lt;P&gt;And it works if I first start the Link Server from IDE.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Satbir&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 19:47:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/1200648#M6493</guid>
      <dc:creator>satbir7</dc:creator>
      <dc:date>2020-12-16T19:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to make redlinkserv work in the command line?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/1201977#M6505</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/144226"&gt;@converse&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I was having issues with RedlinkServer crashing, but I figured it out today.&lt;/P&gt;&lt;P&gt;redlinkserve.exe was crashing, because I didn't&amp;nbsp; have&amp;nbsp; the&amp;nbsp; Scripts folder with the&amp;nbsp; .exe file.&lt;/P&gt;&lt;P&gt;Once I moved the&amp;nbsp; Scripts folder, it started working as expected.&lt;/P&gt;&lt;P&gt;Now, I have&amp;nbsp; a working standalone GUI which can Unsecure/Flash the MKE02Z MCU with LPC-Link2.&lt;/P&gt;&lt;P&gt;Thanks for the reply!!&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; another question though!&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Ns: MCUXpresso IDE RedlinkMulti Driver v11.2 (Sep 22 2020 13:23:35 - crt_emu_cm_redlink.exe build 19)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Wc(03). No cache support.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Nc: Found part description in XML file MKE02Z4_internal.xml&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Nc: Restarted LinkServer process (PID 51348).&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Wc: ============= SCRIPT: ke0xconnect.scp =============&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Wc: KE0X Connect Script&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Wc: Probe Handle 1 Open&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Wc: DpID = 0BC11477&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Wc: Assert NRESET&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Wc: Reset pin state: 00&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Wc: Power up Debug&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Wc: APID = 0x04770031&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Wc: MDM-AP APID: 0x001C0020&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Wc: Release NRESET&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Wc: Reset pin state: 01&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Wc: MDM-AP System Reset/Hold Reset/Debug Request&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Wc: MDM-AP Control: 0x00000008&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Wc: MDM-AP Status (Flash Ready) : 0x00000007&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Wc: Part is secured&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Wc: Mass Erase Required&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Wc: ============= END SCRIPT ==========================&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Nc: Probe Firmware: LPC-LINK2 CMSIS-DAP V5.361 (NXP Semiconductors)&lt;BR /&gt;Nc: Serial Number: BSEWGYEQ&lt;BR /&gt;Nc: VID:PID: 1FC9:0090&lt;BR /&gt;Nc: USB Path: \\?\hid#vid_1fc9&amp;amp;pid_0090&amp;amp;mi_00#7&amp;amp;f75d0ea&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}&lt;BR /&gt;Nc: Using memory from core 0 after searching for a good core&lt;BR /&gt;Ns: redlink server client - failed to receive response (to op 62) from server after 2000ms - Unknown error (rc 138)&lt;BR /&gt;Nc: connection failed - EE(47): Debug Mailbox Request Failed... Retrying&lt;BR /&gt;Nc: probe 1 TAP 0 gives zero TAP ID - is probe connected to a target?&lt;BR /&gt;Ns: redlink server client - warning - 28 bytes of unexpected data from the server&lt;BR /&gt;Nc: Using memory from core 0 after searching for a good core&lt;BR /&gt;Ns: redlink server client - failed to receive response (to op 62) from server after 2000ms - Unknown error (rc 138)&lt;BR /&gt;Ed:02: Failed on connect: EE(47): Debug Mailbox Request Failed.&lt;BR /&gt;Et: Probe(0): Connected&amp;amp;Reset. Was: NotConnected. DpID: 00000000. CpuID: 00000000. Info: &amp;lt;None&amp;gt;&lt;BR /&gt;Nc: Last stub error 0: OK&lt;BR /&gt;Nc: Last sticky error: 0x0 AIndex: 0&lt;BR /&gt;Nc: Debug bus selected: MemAp 0&lt;BR /&gt;Nc: DAP Speed test unexecuted or failed&lt;BR /&gt;Nc: Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.&lt;BR /&gt;Ns: redlink server client - warning - 28 bytes of unexpected data from the server&lt;BR /&gt;Nc: error closing down debug session - Nn(05). Wire ACK Fault in DAP access&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyway to just run the Script with crt_emu_cm_redlink.exe, such that only the "&lt;EM&gt;&lt;STRONG&gt;italicized&lt;/STRONG&gt;&lt;/EM&gt;" portion of the above log is observed?&lt;/P&gt;&lt;P&gt;Can the&amp;nbsp;crt_emu_cm_redlink.exe exit after running the Script?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Satbir&lt;/P&gt;</description>
      <pubDate>Sat, 19 Dec 2020 01:55:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/1201977#M6505</guid>
      <dc:creator>satbir7</dc:creator>
      <dc:date>2020-12-19T01:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to make redlinkserv work in the command line?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/1689573#M9094</link>
      <description>&lt;DIV class=""&gt;I'm also running into this issue. I've tried the suggested:&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;Made sure that the port is open on the firewall.&lt;/LI&gt;&lt;LI&gt;Not using probehandle or coreindex&lt;/LI&gt;&lt;LI&gt;Initially did not start redlinkserv, but realized that if i did start it from the command line in another terminal, that the process was able to connect. This is confusing as a NXP user said that we should not need to manually start it with crt_emu_cm_redlink. So at this point I've been trying to use python to open a redlinkserv process in the background before running crt_emu_cm_redlink.&lt;/LI&gt;&lt;LI&gt;I see the mention of Scripts folder which I have, and it mentions a specific exe that needs to be in this directory but not what that exe is.&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;My command (with paths shortened):&lt;BR /&gt;{crt_emu_cm_redlink} --flash-load-exec {firmware_file} -p PN7640 --ConnectScript {connect_scp_path} --ResetScript {reset_scp_path} --flash-driver= -x {sdk_path} --flash-dir {flash_dir_path} --flash-hashing --load-base=0x218000&lt;BR /&gt;&lt;BR /&gt;My Error:&lt;BR /&gt;Ns: MCUXpresso IDE RedlinkMulti Driver v11.7 (Mar 22 2023 09:52:55 - crt_emu_cm_redlink.exe build 13)&lt;BR /&gt;Wc(03). No cache support.&lt;BR /&gt;Nc: Found chip XML file in C:\Users\Developer\AppData\Roaming\Python\Python311\site-packages\eol\workspace\sdk\PN7640.xml&lt;BR /&gt;Ns: redlink server client - failed to connect to new server localhost port 3490&lt;BR /&gt;Nc: Could not connect to link server - status 255&lt;BR /&gt;Nc: Failed to connect a LinkServer process.&lt;BR /&gt;Ed:02: Failed on connect: Ee(D0). Could not connect to server&lt;BR /&gt;Et:31: No connection to chip's debug port&lt;BR /&gt;&lt;BR /&gt;My intent is to package up all the things needed to run this into a python package so that it's easy for our partners to install our firmware installation tool.&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Jul 2023 16:02:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/1689573#M9094</guid>
      <dc:creator>derek_pbolt</dc:creator>
      <dc:date>2023-07-20T16:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to make redlinkserv work in the command line?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/1689601#M9095</link>
      <description>&lt;P&gt;You should have a look a the 'LinkServer' (see &lt;A href="https://mcuoneclipse.com/2023/05/14/linkserver-for-microcontrollers/" target="_blank"&gt;https://mcuoneclipse.com/2023/05/14/linkserver-for-microcontrollers/&lt;/A&gt; &lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt; NXP has released what was formerly under the 'RedLink' as a gdb server package. LinkServer works fine on my side as command line tool, as it is like other gdb server implementations.&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 16:42:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-make-redlinkserv-work-in-the-command-line/m-p/1689601#M9095</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2023-07-20T16:42:26Z</dc:date>
    </item>
  </channel>
</rss>

