<?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 Report dfu boot problem to LPC Link2 with lpscrypt under Linux in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Report-dfu-boot-problem-to-LPC-Link2-with-lpscrypt-under-Linux/m-p/1924098#M56578</link>
    <description>&lt;P&gt;There is a problem in dfu_boot script in lpcscrypt under linux. the version is installed via LinkServer_1.6.133.x86_64.deb.bin&lt;/P&gt;&lt;P&gt;My installed dfu-util is 0.11&lt;/P&gt;&lt;P&gt;whose output is following&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;dfu-util 0.11

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Found DFU: [1fc9:000c] ver=0100, devnum=115, cfg=1, intf=0, path="3-1", alt=0, name="DFU", serial="ABCD"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but vp_hex generated is not corrected:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sprhawk_1-1722609817329.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/291743i73C63A22A2294AB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sprhawk_1-1722609817329.png" alt="sprhawk_1-1722609817329.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;cause here DEVICE_VID_PID is 0x1f9c:0x000c&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sprhawk_0-1722609793109.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/291742iC3C0054FFA45D8F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sprhawk_0-1722609793109.png" alt="sprhawk_0-1722609793109.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Which prevents from detecting dfu mode&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2024 14:44:51 GMT</pubDate>
    <dc:creator>sprhawk</dc:creator>
    <dc:date>2024-08-02T14:44:51Z</dc:date>
    <item>
      <title>Report dfu boot problem to LPC Link2 with lpscrypt under Linux</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Report-dfu-boot-problem-to-LPC-Link2-with-lpscrypt-under-Linux/m-p/1924098#M56578</link>
      <description>&lt;P&gt;There is a problem in dfu_boot script in lpcscrypt under linux. the version is installed via LinkServer_1.6.133.x86_64.deb.bin&lt;/P&gt;&lt;P&gt;My installed dfu-util is 0.11&lt;/P&gt;&lt;P&gt;whose output is following&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;dfu-util 0.11

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Found DFU: [1fc9:000c] ver=0100, devnum=115, cfg=1, intf=0, path="3-1", alt=0, name="DFU", serial="ABCD"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but vp_hex generated is not corrected:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sprhawk_1-1722609817329.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/291743i73C63A22A2294AB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sprhawk_1-1722609817329.png" alt="sprhawk_1-1722609817329.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;cause here DEVICE_VID_PID is 0x1f9c:0x000c&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sprhawk_0-1722609793109.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/291742iC3C0054FFA45D8F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sprhawk_0-1722609793109.png" alt="sprhawk_0-1722609793109.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Which prevents from detecting dfu mode&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 14:44:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Report-dfu-boot-problem-to-LPC-Link2-with-lpscrypt-under-Linux/m-p/1924098#M56578</guid>
      <dc:creator>sprhawk</dc:creator>
      <dc:date>2024-08-02T14:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Report dfu boot problem to LPC Link2 with lpscrypt under Linux</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Report-dfu-boot-problem-to-LPC-Link2-with-lpscrypt-under-Linux/m-p/1926284#M56595</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/233915"&gt;@sprhawk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like the script is not correctly parsing the dfu-util version and as a result, the vp_hex variable is not being set properly. Your output indicates dfu-util version 0.11, but the script is not handling this correctly.&lt;BR /&gt;Here’s a fix for the script to correctly handle dfu-util version 0.11:&lt;BR /&gt;1. Adjust the script to correctly parse the dfu-util version.&lt;BR /&gt;2. Set the vp_hex variable based on the version detected.&lt;BR /&gt;# Establish what kind of prefix VID:PIDs have when listed in -l&lt;BR /&gt;vp_hex=""&lt;BR /&gt;# Extract major and minor versions&lt;BR /&gt;dfu_major_ver=$(echo "$dfu_ver" | cut -d '.' -f 1)&lt;BR /&gt;dfu_minor_ver=$(echo "$dfu_ver" | cut -d '.' -f 2)&lt;BR /&gt;# Check if dfu_major_ver is 0 and dfu_minor_ver is 11&lt;BR /&gt;if [ "$dfu_major_ver" -eq 0 ] &amp;amp;&amp;amp; [ "$dfu_minor_ver" -eq 11 ]; then&lt;BR /&gt;vp_hex="0x"&lt;BR /&gt;fi&lt;BR /&gt;# echo "DFU version $dfu_ver means we should use hex prefix '$vp_hex'"&lt;BR /&gt;DEVICE_VID_PID="${vp_hex}${DEVICE_VID}:${vp_hex}${DEVICE_PID}"&lt;BR /&gt;# DEVICE_VID_PID="\(0x\|\)$DEVICE_VID:\(0x\|\)$DEVICE_PID"&lt;BR /&gt;This script correctly checks for the major and minor version of dfu-util and sets the vp_hex variable accordingly. It should resolve the issue of incorrectly setting the DEVICE_VID_PID variable.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Hang&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 10:31:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Report-dfu-boot-problem-to-LPC-Link2-with-lpscrypt-under-Linux/m-p/1926284#M56595</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2024-08-06T10:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Report dfu boot problem to LPC Link2 with lpscrypt under Linux</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Report-dfu-boot-problem-to-LPC-Link2-with-lpscrypt-under-Linux/m-p/1926808#M56598</link>
      <description>Thanks. I have made my own fixes.&lt;BR /&gt;Just hope next release will have a more general fixes for it.</description>
      <pubDate>Wed, 07 Aug 2024 01:40:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Report-dfu-boot-problem-to-LPC-Link2-with-lpscrypt-under-Linux/m-p/1926808#M56598</guid>
      <dc:creator>sprhawk</dc:creator>
      <dc:date>2024-08-07T01:40:00Z</dc:date>
    </item>
  </channel>
</rss>

