<?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>LPCXpresso IDE中的主题 Re: LPCScrypt not working with dfu-util 0.10 on Linux</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCScrypt-not-working-with-dfu-util-0-10-on-Linux/m-p/1263479#M33296</link>
    <description>&lt;OL&gt;&lt;LI&gt;Latest LPCScrypt.&lt;/LI&gt;&lt;LI&gt;LPC-Link2 - I was trying to program it with debugger firmware&lt;/LI&gt;&lt;LI&gt;While it is not officially supported, easiest way would be using Arch or Manjaro Linux with the community/dfu-util package - after fixing the script (by removing that version check) it works. But any Linux with dfu-util version 0.10 would work. As of now I'm not aware of any point release distribution using it.&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Fri, 16 Apr 2021 10:11:24 GMT</pubDate>
    <dc:creator>jdj</dc:creator>
    <dc:date>2021-04-16T10:11:24Z</dc:date>
    <item>
      <title>LPCScrypt not working with dfu-util 0.10 on Linux</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCScrypt-not-working-with-dfu-util-0-10-on-Linux/m-p/1260710#M33294</link>
      <description>&lt;P&gt;Since there isn't a dedicated subforum for LPCScrypt, I'm posting here.&lt;/P&gt;&lt;P&gt;The script dfu_boot included in the package fails with dfu-util 0.10.&lt;/P&gt;&lt;P&gt;There is a bug in checking dfu-util version. What, presumably, was a check for version 0.1, checks only the first three characters. Depending on this check, different VID:PID formatting is (in this case incorrectly) used. This makes the script fail at find the correct device in the output of dfu-util -l.&lt;/P&gt;&lt;P&gt;Most likely this check can be dealt away with in it's entirety, since &lt;A href="http://dfu-util.sourceforge.net/releases/" target="_self"&gt;version 0.5 is dated at 2012&lt;/A&gt;. As &lt;A href="http://rpm.pbone.net/manpage_idpl_55724786_numer_1_nazwa_dfu-util.html" target="_self"&gt;seen here&lt;/A&gt; 0.1 did indeed use different formatting.&lt;/P&gt;&lt;P&gt;Below is a quick patch (which works for me) removing that test and the used variable entirely.&lt;/P&gt;&lt;P&gt;My version of dfu-util is 0.10, the current Manjaro community package.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;--- dfu_boot.bak 2021-04-12 19:44:12.055974951 +0200
+++ dfu_boot 2021-04-12 20:00:45.602209668 +0200
@@ -128,11 +128,6 @@
}
$LOGGING &amp;amp;&amp;amp; echo "Using dfu-util version $dfu_ver at `which $DFU_UTIL`"

-# establish what kind of prefix VID:PIDs have when listed in -l
-vp_hex=
-[ "${dfu_ver::3}" = "0.1" ] &amp;amp;&amp;amp; vp_hex="0x"
-# echo "DFU version $dfu_ver means we should use hex prefix '$vp_hex'"
-
if [ "_$DEVICE_VID_PID" != "_${DEVICE_VID_PID/:}" ]; then
# we have specified VID and PID in this argument
DEVICE_PID="${DEVICE_VID_PID//*:}"
@@ -164,7 +159,7 @@
fi
DEVICE_VID="${DEVICE_VID/0x}"
DEVICE_PID="${DEVICE_PID/0x}"
-DEVICE_VID_PID="${vp_hex}$DEVICE_VID:${vp_hex}$DEVICE_PID"
+DEVICE_VID_PID="$DEVICE_VID:$DEVICE_PID"
#DEVICE_VID_PID="\(0x\|\)$DEVICE_VID:\(0x\|\)$DEVICE_PID"

echo "Looking for DFU devices with VID $DEVICE_VID PID $DEVICE_PID ..."&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 10:14:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCScrypt-not-working-with-dfu-util-0-10-on-Linux/m-p/1260710#M33294</guid>
      <dc:creator>jdj</dc:creator>
      <dc:date>2021-04-16T10:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: LPCScrypt not working with dfu-util 0.10 on Linux</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCScrypt-not-working-with-dfu-util-0-10-on-Linux/m-p/1262514#M33295</link>
      <description>&lt;P&gt;Hj jdj,&lt;/P&gt;
&lt;P&gt;To check your issue, please answer me below questions:&lt;/P&gt;
&lt;P&gt;1. Which version of LPCScrypt do you work with? Please make sure you use the latest LPCScrypt v2.1.2 which can be downloaded from this url&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/microcontrollers-developer-resources/lpc-microcontroller-utilities/lpcscrypt-v2-1-2:LPCSCRYPT?tab=Design_Tools_Tab" target="_blank"&gt;https://www.nxp.com/design/microcontrollers-developer-resources/lpc-microcontroller-utilities/lpcscrypt-v2-1-2:LPCSCRYPT?tab=Design_Tools_Tab&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2. Do you use NXP demo board? if yes, which one? If your own PCB, which part do you use?&lt;/P&gt;
&lt;P&gt;3. steps of how to reproduce your issue?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 06:07:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCScrypt-not-working-with-dfu-util-0-10-on-Linux/m-p/1262514#M33295</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-04-15T06:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: LPCScrypt not working with dfu-util 0.10 on Linux</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCScrypt-not-working-with-dfu-util-0-10-on-Linux/m-p/1263479#M33296</link>
      <description>&lt;OL&gt;&lt;LI&gt;Latest LPCScrypt.&lt;/LI&gt;&lt;LI&gt;LPC-Link2 - I was trying to program it with debugger firmware&lt;/LI&gt;&lt;LI&gt;While it is not officially supported, easiest way would be using Arch or Manjaro Linux with the community/dfu-util package - after fixing the script (by removing that version check) it works. But any Linux with dfu-util version 0.10 would work. As of now I'm not aware of any point release distribution using it.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 16 Apr 2021 10:11:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCScrypt-not-working-with-dfu-util-0-10-on-Linux/m-p/1263479#M33296</guid>
      <dc:creator>jdj</dc:creator>
      <dc:date>2021-04-16T10:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: LPCScrypt not working with dfu-util 0.10 on Linux</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCScrypt-not-working-with-dfu-util-0-10-on-Linux/m-p/1264182#M33297</link>
      <description>&lt;P&gt;Thanks for the sharing.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 08:28:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCScrypt-not-working-with-dfu-util-0-10-on-Linux/m-p/1264182#M33297</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-04-19T08:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPCScrypt not working with dfu-util 0.10 on Linux</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCScrypt-not-working-with-dfu-util-0-10-on-Linux/m-p/1797727#M33457</link>
      <description>&lt;P&gt;I encountered this same problem with LPCScrypt 2.1.2 and dfu-util 0.11. LPCScrypt on Windows, since it includes its own dfu-util, is fine, but on Linux I had trouble flashing the Link2 probe on my LPCXpresso51U68. I just commented out the line in dfu_boot that sets vp_hex to '0x'. Equivalent sed command:&lt;BR /&gt;&lt;SPAN&gt;sudo sed -i 's/\[ \"\${dfu_ver/#[ "\${dfu_ver/' /usr/local/lpcscrypt/scripts/dfu_boot&lt;BR /&gt;&lt;BR /&gt;I think rather than querying the version and deciding how to parse vid/pid, it would be better to query the vid/pid itself.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 10:32:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCScrypt-not-working-with-dfu-util-0-10-on-Linux/m-p/1797727#M33457</guid>
      <dc:creator>ashley_c4</dc:creator>
      <dc:date>2024-01-30T10:32:02Z</dc:date>
    </item>
  </channel>
</rss>

