<?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: LPCXpresso, LPC-Link2  and RESET line in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613326#M32370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this additional information. Can you copy and paste the contents of &lt;A _jive_internal="true" href="https://community.nxp.com/thread/389146"&gt;The Debug Log&lt;/A&gt; here, and also&amp;nbsp;the MyConnect.scp? The other thing I'll recommend, it may be there is an orphaned redlinkserv.exe process in the background when you start up the debug session. If so, the IDE will try to use it and it's possible the server already has an open socket on the debug port. If you see this, kill the process in the Task Manager before starting the debug session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2017 18:36:46 GMT</pubDate>
    <dc:creator>lpcxpresso_supp</dc:creator>
    <dc:date>2017-01-18T18:36:46Z</dc:date>
    <item>
      <title>LPCXpresso, LPC-Link2  and RESET line</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613317#M32361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My board has a IC supervisor/Reset-button (for example, MAX6863UK29-T, TPS3838K33DBV) on its RESET line. RESET from LPC-Link2 has duration ~4ms and causes RESET signal from IC supervisor with duration 100..300ms which is further fed to target MCU. LPCXpresso seems not to be aware of this long RESET signal and tries to initialize JTAG-chain/SWD immediately after the end of short RESET – but JTAG-chain/SWD is under the long RESET right at this moment and therefore can't be initialized. Debug target MCU is LPC43xx in case it makes any difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to set a delay between the moment when RESET comes from LPC-Link2 is released and the initialization of JTAG-chain/SWD?&lt;BR /&gt;Is it possible to delay initialization of JTAG-chain/SWD until the moment when RESET on the target board won't be released?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 21:36:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613317#M32361</guid>
      <dc:creator>alexandertolchi</dc:creator>
      <dc:date>2017-01-12T21:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso, LPC-Link2  and RESET line</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613318#M32362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LPCXpresso, by default uses the VECTRESET signal to reset the LPC43xx parts. It does not toggle the RESET line unless you're explicitly doing so via a LinkServer connect script. A script would normally use one of the WIRETIMEDRESET, WIREHOLDRESET, or WIREISPRESET commands for this purpose. The script language presently does not support a DELAY primitive, but it's possible to use the TIME command (increments a counter at 10 ms intervals) within a script program loop to affect a delay of any reasonable length. The following example would need to be referenced from the LPCXpresso Project Debug Configuration as a connect script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;100 p% = PROBEFIRSTFOUND&lt;BR /&gt;110 REM Hold Reset for 10 ms&lt;BR /&gt;120 WIRETIMEDRESET p% 10&lt;BR /&gt;130 REM Initial timer value&lt;BR /&gt;140 t% = TIME&lt;BR /&gt;150 PRINT "Time:&amp;nbsp;&amp;nbsp;&amp;nbsp; "; t%&lt;BR /&gt;160 REM Current timer value&lt;BR /&gt;170 c% = 0&lt;BR /&gt;180 REPEAT&lt;BR /&gt;190&amp;nbsp;&amp;nbsp; REM Current timer value until 3 seconds elapsed&lt;BR /&gt;200&amp;nbsp;&amp;nbsp; c% = TIME&lt;BR /&gt;210&amp;nbsp;&amp;nbsp; e% = c% - t%&lt;BR /&gt;220 UNTIL e% &amp;gt;= 30000&lt;BR /&gt;230 PRINT "Elapsed: "; e%&lt;BR /&gt;240 END&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: I realize this implementation doesn't make sense waiting to count to 30000. The LinkServer TIME primitive shows it returns clock() * 10 in your release. This has to be a bug. To get the number of seconds, the output from clock() is divided by CLOCKS_PER_SEC (typically equal to 1000). 3000 milliseconds is 3 seconds. Since TIME returns clock() * 10, the count you're waiting for is 3000 * 10, or 30000. This will be fixed in a future release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 23:33:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613318#M32362</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2017-01-12T23:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso, LPC-Link2  and RESET line</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613319#M32363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You for replay.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Signal on RESET-Line appears, if I set option “Attach only = False” (in “Run/Debug Settings” of Project Properties). This RESET from LPC-Link2 has duration ~4ms. Next after 10ms LPCXpresso make initialization of JTAG-chain/SWD. It is necessary for me to change this 10ms to 300ms - delay must be longer of signal RESET from IC supervisor/Reset-button. How to do it?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If I set option “Attach only = True” signal RESET from LPC-Link2 is absent and initialization of JTAG-chain/SWD goes OK (but not each time). With this setting program doesn’t make stop on start and interrupts don’t work after switching to other project.&amp;nbsp;Only after "Restart" of program in LPCXpresso, I get "stop on start".&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I inserted your script in “Connect Script” option of “Run/Debug Settings” for Project Properties. Connect script isn’t activated – I don’t see messages from this script in console of RedlinkServer and I don’t see signal on RESET line. If I type these commands in console – they works: I see signal RESET and I see messages in console. Why “Connect Script” isn’t activated?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My question is the same… How to delay initialization of JTAG-chain/SWD after release of Signal RESET from LPC-Link2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2017 16:45:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613319#M32363</guid>
      <dc:creator>alexandertolchi</dc:creator>
      <dc:date>2017-01-16T16:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso, LPC-Link2  and RESET line</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613320#M32364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Attach configuration option allows the debugger to attach to a running system without disturbing it in any way. For Attach = true, any configured script is prevented from use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems clear enough what you're trying to do. You want to assert RESET (hard), then delay 300 ms before the debugger proceeds with the debug connection. If so, a programmed delay in the script example above will accomplish this. Simply edit the line &lt;STRONG&gt;220 UNTIL e% &amp;gt;= 30000&lt;/STRONG&gt; statement (see above)&amp;nbsp; to read &lt;STRONG&gt;220 UNTIL e% &amp;gt;= 3000&lt;/STRONG&gt;. In other words&lt;STRONG&gt;, &lt;/STRONG&gt;replace the 30000 value with 3000. This changes the program delay from 3.0 seconds to 0.30 seconds (300 ms). Then use the edited version of the script file as a connect script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 20:57:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613320#M32364</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2017-01-17T20:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso, LPC-Link2  and RESET line</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613321#M32365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;“Attach only = True” or “Attach only = False” – doesn't matter, “Connect script” isn’t activated at all! Why?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If I set “Attach only = False”, then LPCXpresso SELF forms hard RESET on output of LPC-Link2 - duration ~4ms. Next after 10ms LPCXpresso make initialization of JTAG-chain/SWD. But RESET from LPC-Link2 will be extended till 200ms – it does IC Supervisor/Reset-button on my board (MAX6863UK29-T, TPS3838K33DBV). Extended RESET doesn't allow to do initialization of JTAG-chain/SWD and LPCXpresso doesn't see “target” (LPC4330). It is necessary to delay initialization of JTAG-chain/SWD until end of extended RESET. How?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I think “Connect script” will not help me. You write, that for “Attach only = True”, any configured script is prevented from use. For “Attach only = False”, if “Connect script” works before hard RESET_4ms (from option “Attach only = False”), then it makes no difference. If after - JTAG-chain/SWD will be resetted from “Connect script” and connection with “target” will be lost.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 23:48:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613321#M32365</guid>
      <dc:creator>alexandertolchi</dc:creator>
      <dc:date>2017-01-17T23:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso, LPC-Link2  and RESET line</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613322#M32366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Connect/Reset scripts are used with LinkServer emulator connections, typically with LPC-Link2 CMSIS-DAP probes like you're using. Be certain to set the project Debug Configuration Debugger &amp;lt;tab&amp;gt; Emulator selection to LinkServer, or you'll not be allowed to enter a connect or reset script file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understood your supervisor circuit monitors the RESET state and latches the assert for 300 ms. Is this not the case? If not, please explain. If so, the connect script WIRETIMEDRESET command triggers the (assert/release) of the RESET line. So, programming a delay (using the example script above) after this command should provide the delay your supervisor circuit requires. I can assure you the debug utility does not configure the JTAG/SWD wire protocol until the script is finished executing. There are script commands which configure the wire, but you won't be using these.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 05:41:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613322#M32366</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2017-01-18T05:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso, LPC-Link2  and RESET line</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613323#M32367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, my setting for “Emulator selection” is “LinkServer”.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You write: “your supervisor circuit monitors the RESET state and latches the assert for 300 ms” – YES, You're right! This long RESET_300ms and initialization of JTAG from LPCXpresso are imposed at each other and go at the same time. The long RESET doesn't allow to go initialization of JTAG. It is necessary to solve this problem. How?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In my LPCXpresso (v8.2.2 [Build 650]) “Connect script” isn’t activated at all! You write, that for “Attach only = True”, it is right – “any configured script is prevented from use”. For “Attach only = False”, from you words, “Connect script” has to be go before initialization of JTAG - is so? If so, then LPCXpresso itself in case “Attach only = False” before initialization JTAG (and probably after “Connect script”) gives RESET which will be extended on my board up to 300 ms and initialization of JTAG won't take place again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 11:54:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613323#M32367</guid>
      <dc:creator>alexandertolchi</dc:creator>
      <dc:date>2017-01-18T11:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso, LPC-Link2  and RESET line</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613324#M32368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you attach a screenshot of your debug configuration which shows the connect script entry? Where have you placed the script file? The default script location is the Scripts subdirectory to your &amp;lt;install&amp;gt;\lpcxresso\bin folder. Otherwise, you have to use a full path name to the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second thing I'd like you to change is the name of the c% script variable (e.g. f%) to avoid a potential issue. a% - d% are typically reserved by the script engine for core registers PC, SP, xPSR, and VTOR, respectively. There should be &amp;nbsp;no usage conflict within a connect script, but it's better to not get into a bad habit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank and regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 14:18:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613324#M32368</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2017-01-18T14:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso, LPC-Link2  and RESET line</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613325#M32369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, bellow - my debug settings and place of "MyConnect.scp" (together with others scripts):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="DBG_settings.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14267iDFA81DFB737C01E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="DBG_settings.png" alt="DBG_settings.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Script_DIR.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14319i86D5A24848A9D21E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Script_DIR.png" alt="Script_DIR.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Text of "&lt;/SPAN&gt;&lt;SPAN&gt;MyConnect.scp" - the same&amp;nbsp;as above (i changed c% to f%).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;JTAG - don't works, messages from&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;“Connect script” in console of RedlinkServer is absent:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="EMU.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14366i9E3E706AC03F746D/image-size/large?v=v2&amp;amp;px=999" role="button" title="EMU.png" alt="EMU.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="JTAG.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14414iC0BF5A1F45C7BEC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="JTAG.png" alt="JTAG.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Console of RedlinkServer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-----------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;redlink&amp;gt;ProbeList&lt;BR /&gt;Index = 1&lt;BR /&gt;Manufacturer = NXP Semiconductors&lt;BR /&gt;Description = LPC-LINK2 CMSIS-DAP V5.173&lt;BR /&gt;Serial Number = LUCSPVCV&lt;BR /&gt;VID:PID = 1FC9:0090&lt;BR /&gt;Path = \\?\hid#vid_1fc9&amp;amp;pid_0090&amp;amp;mi_00#9&amp;amp;2c20669a&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}&lt;BR /&gt;redlink&amp;gt;ProbeStatus&lt;BR /&gt;Index = 1&lt;BR /&gt;Manufacturer = NXP Semiconductors&lt;BR /&gt;Description = LPC-LINK2 CMSIS-DAP V5.173&lt;BR /&gt;Serial Number = LUCSPVCV&lt;BR /&gt;VID:PID = 1FC9:0090&lt;BR /&gt;Path = \\?\hid#vid_1fc9&amp;amp;pid_0090&amp;amp;mi_00#9&amp;amp;2c20669a&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}&lt;BR /&gt;IsOpen = TRUE&lt;BR /&gt;WireInitialized = TRUE&lt;BR /&gt;WireProtocol = SWD&lt;BR /&gt;CoresConfigured = TRUE&lt;BR /&gt;PacketSize = 1024&lt;BR /&gt;Reference Count = 0&lt;BR /&gt;HasSWV = FALSE&lt;BR /&gt;HasETM = FALSE&lt;BR /&gt;HasJTAG = TRUE&lt;BR /&gt;HasSWD = TRUE&lt;BR /&gt;Probe Type = CMSIS-DAP&lt;BR /&gt;Probe Reference Count = 0&lt;BR /&gt;redlink&amp;gt;ProbeIsOpen 1&lt;BR /&gt;TRUE&lt;BR /&gt;redlink&amp;gt;WireIspReset 1&lt;BR /&gt;redlink&amp;gt;WireIsConnected 1&lt;BR /&gt;FALSE&lt;BR /&gt;redlink&amp;gt;WireJtagConnect 1&lt;BR /&gt;redlink&amp;gt;CoresConfigured 1&lt;BR /&gt;TRUE&lt;BR /&gt;redlink&amp;gt;CoreList 1&lt;BR /&gt;redlink&amp;gt;ProbeStatus&lt;BR /&gt;Index = 1&lt;BR /&gt;Manufacturer = NXP Semiconductors&lt;BR /&gt;Description = LPC-LINK2 CMSIS-DAP V5.173&lt;BR /&gt;Serial Number = LUCSPVCV&lt;BR /&gt;VID:PID = 1FC9:0090&lt;BR /&gt;Path = \\?\hid#vid_1fc9&amp;amp;pid_0090&amp;amp;mi_00#9&amp;amp;2c20669a&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}&lt;BR /&gt;IsOpen = TRUE&lt;BR /&gt;WireInitialized = TRUE&lt;BR /&gt;WireProtocol = SWD&lt;BR /&gt;CoresConfigured = TRUE&lt;BR /&gt;PacketSize = 1024&lt;BR /&gt;Reference Count = 0&lt;BR /&gt;HasSWV = FALSE&lt;BR /&gt;HasETM = FALSE&lt;BR /&gt;HasJTAG = TRUE&lt;BR /&gt;HasSWD = TRUE&lt;BR /&gt;Probe Type = CMSIS-DAP&lt;BR /&gt;Probe Reference Count = 0&lt;BR /&gt;redlink&amp;gt;quit&lt;BR /&gt;[Closed]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;---------------------------------------------------------&lt;/SPAN&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;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I set&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;“Attach only = &lt;STRONG&gt;True&lt;/STRONG&gt;”, than JTAG works:&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 class="lia-inline-image-display-wrapper" image-alt="JTAG-OK.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14455iCF22A3796402586A/image-size/large?v=v2&amp;amp;px=999" role="button" title="JTAG-OK.png" alt="JTAG-OK.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Console of RedlinkServer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-----------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;redlink&amp;gt;ProbeList&lt;BR /&gt;Index = 1&lt;BR /&gt;Manufacturer = NXP Semiconductors&lt;BR /&gt;Description = LPC-LINK2 CMSIS-DAP V5.173&lt;BR /&gt;Serial Number = LUCSPVCV&lt;BR /&gt;VID:PID = 1FC9:0090&lt;BR /&gt;Path = \\?\hid#vid_1fc9&amp;amp;pid_0090&amp;amp;mi_00#9&amp;amp;2c20669a&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}&lt;BR /&gt;redlink&amp;gt;ProbeStatus&lt;BR /&gt;Index = 1&lt;BR /&gt;Manufacturer = NXP Semiconductors&lt;BR /&gt;Description = LPC-LINK2 CMSIS-DAP V5.173&lt;BR /&gt;Serial Number = LUCSPVCV&lt;BR /&gt;VID:PID = 1FC9:0090&lt;BR /&gt;Path = \\?\hid#vid_1fc9&amp;amp;pid_0090&amp;amp;mi_00#9&amp;amp;2c20669a&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}&lt;BR /&gt;IsOpen = TRUE&lt;BR /&gt;WireInitialized = TRUE&lt;BR /&gt;WireProtocol = SWD&lt;BR /&gt;CoresConfigured = TRUE&lt;BR /&gt;PacketSize = 1024&lt;BR /&gt;Reference Count = 0&lt;BR /&gt;HasSWV = FALSE&lt;BR /&gt;HasETM = FALSE&lt;BR /&gt;HasJTAG = TRUE&lt;BR /&gt;HasSWD = TRUE&lt;BR /&gt;Probe Type = CMSIS-DAP&lt;BR /&gt;Probe Reference Count = 0&lt;BR /&gt;redlink&amp;gt;ProbeIsOpen 1&lt;BR /&gt;TRUE&lt;BR /&gt;redlink&amp;gt;WireIsConnected 1&lt;BR /&gt;TRUE&lt;BR /&gt;redlink&amp;gt;WireGetProtocol 1&lt;BR /&gt;SWD&lt;BR /&gt;redlink&amp;gt;WireJtagConnect 1&lt;BR /&gt;redlink&amp;gt;CoresConfigured 1&lt;BR /&gt;TRUE&lt;BR /&gt;redlink&amp;gt;CoreList 1&lt;BR /&gt;TAP 0: 4BA00477 Core 0: M4 APID: 24770011&lt;BR /&gt;TAP 1: 0BA01477 Core 0: M0 APID: 04770021&lt;BR /&gt;redlink&amp;gt;ProbeIsOpen 1&lt;BR /&gt;TRUE&lt;BR /&gt;redlink&amp;gt;WireIsConnected 1&lt;BR /&gt;TRUE&lt;BR /&gt;redlink&amp;gt;WireGetProtocol 1&lt;BR /&gt;SWD&lt;BR /&gt;redlink&amp;gt;WireJtagConnect 1&lt;BR /&gt;redlink&amp;gt;CoresConfigured 1&lt;BR /&gt;TRUE&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But with&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;“Attach only = &lt;/SPAN&gt;&lt;STRONG style="color: #51626f;"&gt;True&lt;/STRONG&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;” no stop on start and interupts don't works after switch to other project...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 16:04:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613325#M32369</guid>
      <dc:creator>alexandertolchi</dc:creator>
      <dc:date>2017-01-18T16:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso, LPC-Link2  and RESET line</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613326#M32370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this additional information. Can you copy and paste the contents of &lt;A _jive_internal="true" href="https://community.nxp.com/thread/389146"&gt;The Debug Log&lt;/A&gt; here, and also&amp;nbsp;the MyConnect.scp? The other thing I'll recommend, it may be there is an orphaned redlinkserv.exe process in the background when you start up the debug session. If so, the IDE will try to use it and it's possible the server already has an open socket on the debug port. If you see this, kill the process in the Task Manager before starting the debug session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 18:36:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613326#M32370</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2017-01-18T18:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso, LPC-Link2  and RESET line</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613327#M32371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Process "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;redlinkserv.exe (32 bits)&lt;/SPAN&gt;" is absent before starting of&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;LPCXpresso.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Console "Debug messages" f&lt;/SPAN&gt;or&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;“Attach only = &lt;STRONG style="border: 0px; font-weight: bold;"&gt;True&lt;/STRONG&gt;” (JTAG works):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;----------------------------------------------------------&lt;/P&gt;&lt;P&gt;LPCXpresso RedlinkMulti Driver v8.2 (Sep 5 2016 10:12:38 - crt_emu_cm_redlink build 725)&lt;BR /&gt;Found chip XML file in D:/LPC/CML/Prj-M4MC_1/Debug/LPC4330.xml&lt;BR /&gt;Probe Firmware: LPC-LINK2 CMSIS-DAP V5.173 (NXP Semiconductors)&lt;BR /&gt;Serial Number: LUCSPVCV&lt;BR /&gt;VID:PID: 1FC9:0090&lt;BR /&gt;USB Path: \\?\hid#vid_1fc9&amp;amp;pid_0090&amp;amp;mi_00#9&amp;amp;2c20669a&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}&lt;BR /&gt;Emu(0): Connected&amp;amp;Reset. DpID: 4BA00477. CpuID: 410FC240. Info: &amp;lt;None&amp;gt;&lt;BR /&gt;Debug protocol: JTAG. RTCK: Disabled. Vector catch: Disabled.&lt;BR /&gt;internal error - no information given to derive flash driver version from&lt;BR /&gt;internal error - no information given to derive flash driver version from&lt;BR /&gt;NXP: LPC4330 Part ID: 0x00000000&lt;BR /&gt;Connected: was_reset=false. was_stopped=false&lt;BR /&gt;LPCXpresso Free License - Download limit is 256K&lt;/P&gt;&lt;P&gt;----------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After command in IDE "Restart", programm stops on 1-st command in "main()" and I get additional strings in c&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;onsole "Debug messages":&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------&lt;BR /&gt;Stopped: Halt&lt;BR /&gt;============= SCRIPT: LPC18LPC43RamReset.scp =============&lt;BR /&gt;Vector table SP/PC is the reset context.&lt;BR /&gt;PC = 0x100004ED&lt;BR /&gt;SP = 0x10092000&lt;BR /&gt;XPSR = 0x21000000&lt;BR /&gt;============= END SCRIPT =================================&lt;BR /&gt;============= SCRIPT: LPC18LPC43RamReset.scp =============&lt;BR /&gt;Vector table SP/PC is the reset context.&lt;BR /&gt;PC = 0x100004ED&lt;BR /&gt;SP = 0x10092000&lt;BR /&gt;XPSR = 0x21000000&lt;BR /&gt;============= END SCRIPT =================================&lt;BR /&gt;Stopped: Breakpoint #1&lt;/P&gt;&lt;P&gt;------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;For “Attach only = &lt;STRONG style="border: 0px; font-weight: bold;"&gt;False&lt;/STRONG&gt;” (JTAG don't works) c&lt;SPAN&gt;onsole "Debug messages" is absent at all.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 00:15:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613327#M32371</guid>
      <dc:creator>alexandertolchi</dc:creator>
      <dc:date>2017-01-19T00:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso, LPC-Link2  and RESET line</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613328#M32372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I understand what's happening. The connect script is used by the debug utility (stub) which passes the information to the LinkServer at an appropriate time during the debug connection. In this case, the server program first attempts to establish a wire connection to show the available connections, but it's done without benefit of a script. The IDE issues an unsolicited WireIspReset command in an attempt to first boot the part into the ISP. This triggers your supervisor circuit, and the server cannot display the LPC4330 cores and exits. I haven't found a way to disable it yet, but I'm working on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 08:23:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613328#M32372</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2017-01-20T08:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso, LPC-Link2  and RESET line</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613329#M32373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an IDE option to control LPC-Link2 pulling ISP on reset:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Preferences -&amp;gt; LPCXpresso -&amp;gt; Redlink/LinkServer Options -&amp;gt; Pull ISP on reset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try unticking this option.&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;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 10:45:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613329#M32373</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2017-01-20T10:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso, LPC-Link2  and RESET line</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613330#M32374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You for attention.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With your setting all works (“Attach only = False”, MCU LPC4330 without flash):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Window&lt;/STRONG&gt; &amp;gt; Preferences -&amp;gt; LPCXpresso -&amp;gt; Redlink/LinkServer Options -&amp;gt; &lt;STRONG&gt;Pull ISP on reset&lt;/STRONG&gt; = &lt;STRONG&gt;NO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No “RESET” and “ISP_CTRL (pin 7)” from IDE, “Connect script” works and forms RESET, program stops on start.&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;&lt;SPAN&gt;Hard RESET absent at all without “Connect script”.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Console "Debug messages":&lt;/P&gt;&lt;P&gt;-------------------------------------------------&lt;/P&gt;&lt;P&gt;LPCXpresso RedlinkMulti Driver v8.2 (Sep&amp;nbsp; 5 2016 10:12:38 - crt_emu_cm_redlink build 725)&lt;/P&gt;&lt;P&gt;Found chip XML file in D:/LPC/CML/Prj-M4MC_1/Debug/LPC4330.xml&lt;/P&gt;&lt;P&gt;(&amp;nbsp; 5) Remote configuration complete&lt;/P&gt;&lt;P&gt;============= SCRIPT: MyConnect.scp =============&lt;/P&gt;&lt;P&gt;Reset pin state: 00&lt;/P&gt;&lt;P&gt;Time:&amp;nbsp;&amp;nbsp;&amp;nbsp; 75110&lt;/P&gt;&lt;P&gt;Elapsed: 2000&lt;/P&gt;&lt;P&gt;============= END SCRIPT ========================&lt;/P&gt;&lt;P&gt;Probe Firmware: LPC-LINK2 CMSIS-DAP V5.173 (NXP Semiconductors)&lt;/P&gt;&lt;P&gt;Serial Number:&amp;nbsp; LUCSPVCV&lt;/P&gt;&lt;P&gt;VID:PID:&amp;nbsp; 1FC9:0090&lt;/P&gt;&lt;P&gt;USB Path: \\?\hid#vid_1fc9&amp;amp;pid_0090&amp;amp;mi_00#9&amp;amp;2c20669a&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}&lt;/P&gt;&lt;P&gt;Emu(0): Connected&amp;amp;Reset. DpID: 4BA00477. CpuID: 410FC240. Info: &amp;lt;None&amp;gt;&lt;/P&gt;&lt;P&gt;Debug protocol: JTAG. RTCK: Disabled. Vector catch: Disabled.&lt;/P&gt;&lt;P&gt;internal error - no information given to derive flash driver version from&lt;/P&gt;&lt;P&gt;Flash started with bad or no driver - Ef(44): Flash driver version is unknown.&lt;/P&gt;&lt;P&gt;internal error - no information given to derive flash driver version from&lt;/P&gt;&lt;P&gt;NXP: LPC4330&amp;nbsp; Part ID: 0x00000000&lt;/P&gt;&lt;P&gt;Connected: was_reset=true. was_stopped=false&lt;/P&gt;&lt;P&gt;LPCXpresso Free License - Download limit is 256K&lt;/P&gt;&lt;P&gt;============= SCRIPT: LPC18LPC43RamReset.scp =============&lt;/P&gt;&lt;P&gt;Vector table SP/PC is the reset context.&lt;/P&gt;&lt;P&gt;PC = 0x100004ED&lt;/P&gt;&lt;P&gt;SP = 0x10092000&lt;/P&gt;&lt;P&gt;XPSR = 0x21000000&lt;/P&gt;&lt;P&gt;============= END SCRIPT =================================&lt;/P&gt;&lt;P&gt;Stopped: Breakpoint #1&lt;/P&gt;&lt;P&gt;----------------------------------------------------&lt;/P&gt;&lt;P&gt;I was set in “Connect script” delay 200ms=2000 and RESET=10ms (but on wire it is 12ms).&lt;/P&gt;&lt;P&gt;Below - oscillograms for “Pull ISP on reset” = NO and next YES:&lt;BR /&gt; 1(Y) – RESET (pin 10), 2(B) – TCK/SWCK (pin 4), 3(P) – ISP_CTRL (pin 7)&lt;BR /&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="imageFile.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12193iAA0A4953F49251D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="imageFile.png" alt="imageFile.png" /&gt;&lt;/span&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;&lt;span class="lia-inline-image-display-wrapper" image-alt="imageFile.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12215i9A8E33829F049E32/image-size/large?v=v2&amp;amp;px=999" role="button" title="imageFile.png" alt="imageFile.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 20:09:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-LPC-Link2-and-RESET-line/m-p/613330#M32374</guid>
      <dc:creator>alexandertolchi</dc:creator>
      <dc:date>2017-01-20T20:09:40Z</dc:date>
    </item>
  </channel>
</rss>

