OpenNuvoton / NUC980_NuWriter_CMD

NUC980 NuWriter Linux command line tool
GNU General Public License v3.0
6 stars 9 forks source link

Device not found #5

Open pjeutr opened 4 years ago

pjeutr commented 4 years ago

Hi

I have a NuMaker-IIoT-NUC980 board and can make a serial connection using minicom -D /dev/ttyACM0 -b115200 But when trying ./nuwriter run.ini I am getting 'Device not found' Can you suggest something to make it work?

I'm using ubuntu

Linux version 5.3.0-40-generic (buildd@lcy01-amd64-024) (gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1))

with libusb-dev installed

$ dpkg -l | grep libusb-1.0-0-dev
ii  libusb-1.0-0-dev:amd64                     2:1.0.21-2                                       amd64        userspace USB programming library development files

This is in the syslog, it seems the board is recognised properly

Oct 25 10:54:22 ubu kernel: [280377.486361] usb 2-8: new full-speed USB device number 8 using ohci-pci
Oct 25 10:54:22 ubu kernel: [280377.721380] usb 2-8: New USB device found, idVendor=0416, idProduct=b002, bcdDevice= 3.00
Oct 25 10:54:22 ubu kernel: [280377.721384] usb 2-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 25 10:54:22 ubu kernel: [280377.721386] usb 2-8: Product: USB Virtual COM
Oct 25 10:54:22 ubu kernel: [280377.721389] usb 2-8: Manufacturer: Nuvoton
Oct 25 10:54:22 ubu kernel: [280377.721391] usb 2-8: SerialNumber: A02014090305
Oct 25 10:54:22 ubu kernel: [280377.724514] cdc_acm 2-8:1.0: ttyACM0: USB ACM device
Oct 25 10:54:22 ubu mtp-probe: checking bus 2, device 8: "/sys/devices/pci0000:00/0000:00:04.0/usb2/2-8"
Oct 25 10:54:22 ubu mtp-probe: bus: 2, device: 8 was not an MTP device
Oct 25 10:54:22 ubu snapd[2221]: hotplug.go:199: hotplug device add event ignored, enable experimental.hotplug
Oct 25 10:54:22 ubu upowerd[1509]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:04.0/usb2/2-8/2-8:1.0
Oct 25 10:54:22 ubu upowerd[1509]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:04.0/usb2/2-8/2-8:1.1
Oct 25 10:54:22 ubu upowerd[1509]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:04.0/usb2/2-8
Oct 25 10:54:26 ubu colord-sane: io/hpmud/pp.c 627: unable to read device-id ret=-1
yachen commented 4 years ago

Can you try "sudo ./nuwriter run.ini"?

pjeutr commented 4 years ago

Thanks, Just tried again, with the same result. Also tried -v, is there a way to get more information?

yachen commented 4 years ago

Which USB port on IoT board are you using? The port used for firmware download is different from the VCOM port. Please check the lsusb output. 0416:b002 is the VCOM port. Bus 001 Device 006: ID 0416:b002 Winbond Electronics Corp. USB Virtual COM The correct device ID for firmware download is 0416:5963 Bus 001 Device 006: ID 0416:5963 Winbond Electronics Corp.

pjeutr commented 4 years ago

I am so sorry, missed that completely... Did change both dipswitches to 1 It's working now! Thank you for your help!