<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn&amp;#39;t found</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30422/jlink-serial-ttyacm0-over-usb-drops-out-usb-device-re-enumerates-but-ttyacm-isn-t-found</link><description>I&amp;#39;m using three nrf52840-dk&amp;#39;s, from an ubuntu 16.04 x64 host. 
 
 JLink v6.30b 
 nrfjprog v9.7.2 
 
 I can program and interact with two boards fine, with zero of the failures below. However, the third board is having problems. This may be the first time</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Nov 2018 15:26:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30422/jlink-serial-ttyacm0-over-usb-drops-out-usb-device-re-enumerates-but-ttyacm-isn-t-found" /><item><title>RE: JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn't found</title><link>https://devzone.nordicsemi.com/thread/155607?ContentTypeID=1</link><pubDate>Thu, 01 Nov 2018 15:26:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c288fb6-45a3-4497-93b0-6cc24579b219</guid><dc:creator>tralamazza</dc:creator><description>&lt;p&gt;&lt;span&gt;I found that the&amp;nbsp;PlatformIO udev rules were causing this exact problem for me.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn't found</title><link>https://devzone.nordicsemi.com/thread/121118?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 17:22:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f66c4b8d-601b-4b20-947d-3b02616a45ca</guid><dc:creator>sdpan</dc:creator><description>&lt;p&gt;The latest at that link is &amp;quot;J-Link...170724.bin&amp;quot;&amp;nbsp; That looks a lot like at datestamp of Jul 24 2017 (?)&lt;/p&gt;
&lt;p&gt;I tried copying it over several times.&amp;nbsp; One time, the device did reset.&amp;nbsp; I am not 100% sure which section of dmesg this was, so can&amp;#39;t tell 100% it did a full re-enumeration.&amp;nbsp; The other times (I tried 5 times, power cycling the device each time):&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;### unplug USB

[1528937.666008] usb 1-5.2: USB disconnect, device number 114

### plug it back in

[1528941.983432] usb 1-5.2: new high-speed USB device number 115 using xhci_hcd
[1528942.084148] usb 1-5.2: config 1 interface 1 altsetting 0 bulk endpoint 0x83 has invalid maxpacket 64
[1528942.084153] usb 1-5.2: config 1 interface 1 altsetting 0 bulk endpoint 0x4 has invalid maxpacket 64
[1528942.084642] usb 1-5.2: New USB device found, idVendor=1366, idProduct=1015
[1528942.084646] usb 1-5.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1528942.084649] usb 1-5.2: Product: J-Link
[1528942.084651] usb 1-5.2: Manufacturer: SEGGER
[1528942.084654] usb 1-5.2: SerialNumber: 000683350409
[1528942.087099] cdc_acm 1-5.2:1.0: ttyACM0: USB ACM device
[1528942.088279] usb-storage 1-5.2:1.3: USB Mass Storage device detected
[1528942.088501] scsi host6: usb-storage 1-5.2:1.3
[1528943.108201] scsi 6:0:0:0: Direct-Access     SEGGER   MSD Volume       1.00 PQ: 0 ANSI: 4
[1528943.109065] sd 6:0:0:0: Attached scsi generic sg1 type 0
[1528943.109240] sd 6:0:0:0: [sdb] 21829 512-byte logical blocks: (11.2 MB/10.7 MiB)
[1528943.109599] sd 6:0:0:0: [sdb] Write Protect is off
[1528943.109604] sd 6:0:0:0: [sdb] Mode Sense: 0b 00 00 08
[1528943.109898] sd 6:0:0:0: [sdb] No Caching mode page found
[1528943.109906] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[1528943.113960]  sdb:
[1528943.115242] sd 6:0:0:0: [sdb] Attached SCSI removable disk

### enumeration finished, ubuntu auto-mounts sdb
### copy the J-Link OB-SAM3U128-V2-NordicSemi 170724.bin over

[1528962.079410] usb 1-5.2: reset high-speed USB device number 115 using xhci_hcd
[1528962.180672] cdc_acm 1-5.2:1.0: ttyACM0: USB ACM device

### no other activity
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The one time the device auto-reset, /dev/sdb was disconnected (as would be expected) and eventually auto-mounted again after it re-enumerated.&amp;nbsp; With this case, the .bin file was no longer present in sdb&lt;/p&gt;
&lt;p&gt;The remainder of the times, which all had the exact dmesg above, sdb remained mounted, and the bin file remained until i power cycled via the usb cable.&lt;/p&gt;
&lt;p&gt;After this, firing up JLink again, i see the same result:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$JLinkExe -device nrf52840_xxaa -if swd -speed 1000
SEGGER J-Link Commander V6.30c (Compiled Feb  9 2018 17:22:34)
DLL version V6.30c, compiled Feb  9 2018 17:22:28

Connecting to J-Link via USB...Updating firmware:  J-Link OB-SAM3U128-V2-NordicSemi compiled Jan 12 2018 16:05:20
Replacing firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jul 24 2017 17:30:12
FAILED: Communication timed out - Can not execute firmware update
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn't found</title><link>https://devzone.nordicsemi.com/thread/121045?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 08:35:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5261d25-bddb-4143-bd6d-bc9b1cb8c38c</guid><dc:creator>ivansanchez</dc:creator><description>&lt;p&gt;No, look at the normal case. There are &lt;strong&gt;four &lt;/strong&gt;interface descriptors: two for USB-CDC-ACM (the serial port) with class/subclass 2/2 and 10/0; one for the mass storage with class/subclass 8/6, and one for the propietary jlink protocol with class/subclass 255/255. It&amp;#39;s perfectly legal for a USB device to have many interfaces. It&amp;#39;s also legal for a USB device to re-enumerate itself with different interfaces and different descriptors. (And yeah, it&amp;#39;s a PITA when those changes are not intended by an user)&lt;/p&gt;
&lt;p&gt;Keep in mind that you can enable/disable the mass storage interface and the USB-CDC-ACM interface as described in &lt;a href="http://docs.zephyrproject.org/tools/nordic_segger.html#disabling-the-mass-storage-device-functionality"&gt;this bit of documentation for the Zephyr project&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s weird that the mass storage and USB-CDC-ACM interfaces are disabled in a segger without an explicit request to disable them, though.&lt;/p&gt;
&lt;p&gt;I must suggest upgrading the segger firmware manually through the mass storage interface - get segger firmware files &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF52-Preview-DK/nRF5x-DK-J-Link-IF/49235"&gt;from here&lt;/a&gt; and copy them to the mass storage volume. The board should reset after that, and hopefully you will **not** see the string &amp;quot;J-Link OB-SAM3U128-V2-NordicSemi compiled Jul 24 2017 17:30:12&amp;quot; when running JLinkExe.&lt;/p&gt;
&lt;p&gt;I mean, it&amp;#39;s worth a try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn't found</title><link>https://devzone.nordicsemi.com/thread/121029?ContentTypeID=1</link><pubDate>Thu, 15 Feb 2018 23:20:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1b9fca7-aea5-4412-bb91-800e328b49c2</guid><dc:creator>sdpan</dc:creator><description>&lt;p&gt;Yes, the above post is BEFORE trying to touch the part via the nordic tools; Here is the same lsusb AFTER the device spontaneously re-enumerates (sans ttyACM).&amp;nbsp; The Interface descriptor appears to be 0xFF?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
Bus 001 Device 104: ID 1366:0101 SEGGER J-Link PLUS
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x1366 SEGGER
  idProduct          0x0101 J-Link PLUS
  bcdDevice            1.00
  iManufacturer           1 SEGGER
  iProduct                2 J-Link
  iSerial                 3 000683350409
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          4 Configuration
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              5 J-Link
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn't found</title><link>https://devzone.nordicsemi.com/thread/120940?ContentTypeID=1</link><pubDate>Thu, 15 Feb 2018 08:59:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e411bc19-7f95-4020-99be-272db1e85ed5</guid><dc:creator>ivansanchez</dc:creator><description>&lt;p&gt;This tiny bit here:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;      bFunctionClass          2 Communications
      bFunctionSubClass       2 Abstract (modem)
      bFunctionProtocol       0 None&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;tells me that, in fact, the USB device has a CDC ACM interface. The cdc_acm kernel driver should pick that up on re-enumeration, and create the /dev/ttyACM* node, and then let udev handle it (to create symlinks under /dev/serial/*).&lt;/p&gt;
&lt;p&gt;In those cases when the devkit reenumerates and /dev/ttyACM0 doesn&amp;#39;t appear, please run lsusb again, and check for the above lines in the interface descriptors. Also confirm that the cdc_acm kernel module is loaded (&amp;quot;lsmod&amp;quot;), and that it does **not** output &amp;quot;cdc_acm 1-1.4.3:1.0: ttyACM0: USB ACM device&amp;quot; on your syslog and on dmesg.&lt;/p&gt;
&lt;p&gt;I just want to be sure there are no inconsistencies in how Linux is handling this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn't found</title><link>https://devzone.nordicsemi.com/thread/120915?ContentTypeID=1</link><pubDate>Thu, 15 Feb 2018 03:40:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c13ed217-2556-4427-9e57-f15331c48551</guid><dc:creator>sdpan</dc:creator><description>&lt;p&gt;Since SES worked on Windows, i tried it on Linux.&amp;nbsp; I installed it in a docker container per usual&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;PITA as your installer does not support a text mode.&amp;nbsp; Can this please be submitted as a feature request?&amp;nbsp; All installers should support text mode.&lt;/li&gt;
&lt;li&gt;Note also, since it&amp;#39;s a gui program, X must be mapped in.&amp;nbsp; Obviously this doesn&amp;#39;t leverage anything &amp;#39;sandboxing&amp;#39; as in some container use cases - the reason we attempt to put tools in a container is, as mentioned earlier, repeatability, makes bringing new engineers/computers/test-nodes trivial&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Anyway, Both Board-A and Board-B flash and run find under SES Linux, in a container.&lt;/p&gt;
&lt;p&gt;What&amp;#39;s the difference between these two flows?&amp;nbsp; nrf-commandline-tools using JLink differently than SES?&amp;nbsp; Definitely seems like a problem outside my machine .. although I&amp;#39;m not so sure about how i can make a &amp;quot;bug-jar&amp;quot; for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn't found</title><link>https://devzone.nordicsemi.com/thread/120914?ContentTypeID=1</link><pubDate>Thu, 15 Feb 2018 02:36:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:777d3be2-edd4-40ac-9417-837b7c3a5772</guid><dc:creator>sdpan</dc:creator><description>&lt;p&gt;I tracked down a windows PC, and installed Segger Embedded Studio latest (3,34) along with SDK 14.2.0&lt;/p&gt;
&lt;p&gt;Flashing and running the example works on both board-A (I wasn&amp;#39;t having issues on linux with this board)&amp;nbsp; AND&amp;nbsp; on board-B.&lt;/p&gt;
&lt;p&gt;This made me curious if somehow the windows toolchain had put the board back into a good state ... so I tried both on linux again.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Board B: &lt;strong&gt;still fails, usb disconnect occurs, &lt;/strong&gt;device re-enumerates but ACM doesn&amp;#39;t come back without power cycle&lt;/li&gt;
&lt;li&gt;Board A: programs/run as normal (no change)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;unfortunately i just switch to Win; I&amp;#39;ll be using pc-ble-driver with a linux host plus other other Linux-specific work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn't found</title><link>https://devzone.nordicsemi.com/thread/120886?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 15:59:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4859d4a0-89c5-4943-ac24-7008ec0ee335</guid><dc:creator>sdpan</dc:creator><description>&lt;p&gt;pasting instead of attaching: &lt;pre class="ui-code" data-mode="text"&gt;
Bus 001 Device 085: ID 1366:1015 SEGGER 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2 ?
  bDeviceProtocol         1 Interface Association
  bMaxPacketSize0        64
  idVendor           0x1366 SEGGER
  idProduct          0x1015 
  bcdDevice            1.00
  iManufacturer           1 SEGGER
  iProduct                2 J-Link
  iSerial                 3 000683350409
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          121
    bNumInterfaces          4
    bConfigurationValue     1
    iConfiguration          4 Configuration
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass          2 Communications
      bFunctionSubClass       2 Abstract (modem)
      bFunctionProtocol       0 None
      iFunction               5 CDC
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      2 Abstract (modem)
      bInterfaceProtocol      1 AT-commands (v.25ter)
      iInterface              5 CDC
      CDC Header:
        bcdCDC               1.10
      CDC Call Management:
        bmCapabilities       0x03
          call management
          use DataInterface
        bDataInterface          1
      CDC ACM:
        bmCapabilities       0x06
          sends break
          line coding and serial state
      CDC Union:
        bMasterInterface        0
        bSlaveInterface         1 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x87  EP 7 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               8
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 
      iInterface              6 CDC DATA interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              7 BULK interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              8 MSD interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x85  EP 5 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x06  EP 6 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2 ?
  bDeviceProtocol         1 Interface Association
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn't found</title><link>https://devzone.nordicsemi.com/thread/120883?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 15:57:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8f172b5-92b7-4503-bd18-ee5dca2fad9f</guid><dc:creator>sdpan</dc:creator><description>&lt;p&gt;huh ... i posted a txt file of this dump here yesterday ... I don&amp;#39;t see it now?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn't found</title><link>https://devzone.nordicsemi.com/thread/120882?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 15:55:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44dac7da-21ef-4759-b4c4-512126b2d3ed</guid><dc:creator>sdpan</dc:creator><description>&lt;p&gt;I&amp;#39;ve tried native-linux, and in a docker container with the necessary devices and permissions mapped.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;FWIW, my normal workflow is from a docker container, as it makes tasks such as rolling new versions, sharing a consistent dev env amoung the team, and standing up automated test boxes trivial compared to local install.&amp;nbsp; From within a container, i&amp;#39;ve had no problem with other boards.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll look around for a box i can install windows on.&amp;nbsp; Is there a preferred version?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn't found</title><link>https://devzone.nordicsemi.com/thread/120802?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 10:19:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9390873b-f658-419b-8b88-1bd37c9fa390</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Are you running linux in a VM or native?&lt;/p&gt;
&lt;p&gt;Have you tried running JLinkExe as root, or updating the firmware on a windows PC?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn't found</title><link>https://devzone.nordicsemi.com/thread/120774?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2018 23:12:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01e89dae-eef8-46c5-8478-73ee87433dff</guid><dc:creator>sdpan</dc:creator><description>&lt;p&gt;Hi Hakon - Re-running with the profile you suggest has slightly different output, but the same end-result of the device dropping off / re-enumerating on USB.&amp;nbsp;&amp;nbsp; nrf52840_xxaa is recognized; connecting to it looks like it&amp;#39;s trying to flash segger bits automatically (presumably this is fw on the seggar part; i&amp;#39;m not familiar with any of that)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ JLinkExe -device nrf52840_xxaa -if swd -speed 1000

SEGGER J-Link Commander V6.30c (Compiled Feb  9 2018 17:22:34)
DLL version V6.30c, compiled Feb  9 2018 17:22:28

Connecting to J-Link via USB...Updating firmware:  J-Link OB-SAM3U128-V2-NordicSemi compiled Jan 12 2018 16:05:20
Replacing firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jul 24 2017 17:30:12
FAILED: Communication timed out - Can not execute firmware update
J-Link&amp;gt;
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn't found</title><link>https://devzone.nordicsemi.com/thread/120772?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2018 22:40:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ed19973-9006-4fda-8c02-6ead33d8d119</guid><dc:creator>sdpan</dc:creator><description>&lt;p&gt;typo, thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn't found</title><link>https://devzone.nordicsemi.com/thread/120689?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2018 09:54:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec12f152-580f-45f7-8c46-733e9c21ddc7</guid><dc:creator>ivansanchez</dc:creator><description>&lt;p&gt;Could you please post the result of running &amp;quot;lsusb -v -d 1366:&amp;quot;? That will display the USB descriptors for any Segger IMCUs connected through USB.&lt;/p&gt;
&lt;p&gt;Please note that a Segger IMCU can enable/disable mass storage and USB-CDC-ACM, as noted in &lt;a href="http://docs.zephyrproject.org/tools/nordic_segger.html#nordic-segger-msd"&gt;http://docs.zephyrproject.org/tools/nordic_segger.html#nordic-segger-msd&lt;/a&gt; . Also be aware that the USB Product ID (0x0101 in your case) changes as the IMCU is configured (as you can see from having a look at /etc/udev/rules.d/99-jlink.rules )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn't found</title><link>https://devzone.nordicsemi.com/thread/120683?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2018 09:48:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db6c765a-5031-415f-b736-0de057d5bc4a</guid><dc:creator>ivansanchez</dc:creator><description>&lt;p&gt;A quick note to the side: ACM doesn&amp;#39;t stand for &amp;quot;Abstract compute module&amp;quot;, it stands for &amp;quot;Abstract control model&amp;quot;, as per the USB specifications. See&amp;nbsp;&lt;a href="https://rfc1149.net/blog/2013/03/05/what-is-the-difference-between-devttyusbx-and-devttyacmx/"&gt;https://rfc1149.net/blog/2013/03/05/what-is-the-difference-between-devttyusbx-and-devttyacmx/&lt;/a&gt; for more info.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn't found</title><link>https://devzone.nordicsemi.com/thread/120656?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2018 07:08:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:806c47e4-1724-4101-a890-c8901e3cbe70</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Try connecting with device profile &amp;quot;nrf52840_xxaa&amp;quot;.&lt;/p&gt;
&lt;p&gt;It looks like your firmware has already been updated successfully:&lt;/p&gt;
&lt;p&gt;Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jan 12 2018 16:05:20&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can now write &amp;quot;?&amp;quot; for help, and use commands like &amp;quot;loadfile /path/to/hex.hex&amp;quot; to program the device and &amp;quot;erase&amp;quot; to erase the flash.&lt;/p&gt;
&lt;p&gt;I suspect that nrfjprog will also work now that the fw has been updated.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn't found</title><link>https://devzone.nordicsemi.com/thread/120641?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 22:31:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ecb0dd3-57b3-475e-81da-a14b13650fa7</guid><dc:creator>sdpan</dc:creator><description>&lt;p&gt;I had adapted the above JLinkExe command line from the script (I believe @Hakon) linked folks to in a different question, &lt;a href="https://github.com/ssfrr/nrfjprog.sh/blob/master/nrfjprog.sh"&gt;https://github.com/ssfrr/nrfjprog.sh/blob/master/nrfjprog.sh&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If i change the --device param from nrf52840 to just nrf52, the connect does work.&amp;nbsp; It appears that simple commands like reset do as well.&lt;/p&gt;
&lt;p&gt;What is the JLinkExe command to erase / re-flash the 52840?&lt;/p&gt;
&lt;p&gt;Thank you for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn't found</title><link>https://devzone.nordicsemi.com/thread/120639?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 22:25:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:042b38cf-16ab-4b9f-9f2b-d3b68620c889</guid><dc:creator>sdpan</dc:creator><description>&lt;p&gt;Also, I just noticed a new Segger version has been released; v6.30c (above is v6.30b). &lt;/p&gt;
&lt;p&gt;The error is identical with the new revC&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn't found</title><link>https://devzone.nordicsemi.com/thread/120638?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 22:20:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f35739f2-a02c-4fd5-82ea-71444a8ad4d3</guid><dc:creator>sdpan</dc:creator><description>&lt;p&gt;It doesn&amp;#39;t look like JLink knows about nrf52840 yet ??&lt;/p&gt;
&lt;p&gt;Side note - I have googled around several times for this, but cannot find any good/current docs/tutorials for the native Segger utilities.&amp;nbsp; I understand Nordic uses these under the hood .. but please if you need me to run them, pass me an appropriate command line.&amp;nbsp; Thank you!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ JLinkExe -device nrf52840 -if swd -speed 1000 
&amp;gt; connect

SEGGER J-Link Commander V6.30b (Compiled Feb  2 2018 18:38:58)
DLL version V6.30b, compiled Feb  2 2018 18:38:53

J-Link connection not established yet but required for command.
Connecting to J-Link via USB...O.K.
Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jan 12 2018 16:05:20
Hardware version: V1.00
S/N: 683889153
VTref = 3.300V
The selected device &amp;quot;NRF52840&amp;quot; is unknown to this version of the J-Link software.

Please make sure that at least the core J-Link shall connect to, is selected.
Proper device selection is required to use the J-Link internal flash loaders
for flash download or unlimited flash breakpoints.

For some devices which require a special handling, selection of the correct device is important.
No valid device has been selected.
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink serial (ttyACM0 over usb) drops out, usb device re-enumerates but ttyACM isn't found</title><link>https://devzone.nordicsemi.com/thread/120506?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 07:20:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d291bf1d-acdd-4737-9aad-a6a20b3f183a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I suspect this might be the reason for the stability issues you&amp;#39;re seeing:&lt;/p&gt;
[quote user=""]&lt;span style="font-family:courier new, courier;"&gt;Updating firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jan 12 2018 16:05:20&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;Replacing firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jul 24 2017 17:30:12&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;JLinkARM.dll OpenEx returned error &amp;#39;Communication timed out - Can not execute firmware update&amp;#39;.&lt;/span&gt;[/quote]
&lt;p&gt;Have you tried upgrading the fw using segger&amp;#39;s &amp;quot;JLinkExe&amp;quot; program? If you installed their .deb package, it should be in your $PATH.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>