Cannot find USB device

Post here to get support
Post Reply
MBurdett
Beginner
Posts: 15
Joined: Mon Dec 18, 2017 8:52 pm

Cannot find USB device

Post by MBurdett »

Hi,

I have been trying to set-up the CrazyRadio to work with my Raspberry Pi, which is currently being used with a Pi-Top laptop. I followed the instructions on the following pages to set this up;

http://www.raspberrypi-spy.co.uk/2014/0 ... pberry-pi/

https://www.hackster.io/ataffanel/fixin ... 8&offset=3

I have followed these instructions and I am now having issues with my Pi recognising the USB drive. I set this up and get the correct output as;

Flash content:
02
78
00

However when I run code which uses the USB device I receive an error stating that it cannot find the USB device. The device is plugged in and the lights are on so everything is connected but I am not sure what is causing this.

I have included my console output below:

Code: Select all

pi@pi-top:~/crazyradio-firmware $ ls
CONTRIBUTING.md examples firmware fix_bootloader lib LICENSE.txt module.json nrfProg README.md tools usbtools
pi@pi-top:~/crazyradio-firmware $ cd crazyradio-firmware
bash: cd: crazyradio-firmware: No such file or directory
pi@pi-top:~/crazyradio-firmware $ cd fix_bootloader_raspi
bash: cd: fix_bootloader_raspi: No such file or directory
pi@pi-top:~/crazyradio-firmware $ cd fix_bootloader
pi@pi-top:~/crazyradio-firmware/fix_bootloader $ python fix_bootloader_raspi.py
Erasing page 0...
Writing 'JL 0x7800' instruction...
Flash content:
02
78
00
Fix written to flash. Disconnect the PROG wire, reconnect Crazyradio
and the bootloader should start!
pi@pi-top:~/crazyradio-firmware/fix_bootloader $ python ../usbtools/launchBootloader.py
Error!, cannot find the CrazyRadio USB dongle!
pi@pi-top:~/crazyradio-firmware/fix_bootloader $ python ../usbtools/nrfbootload.py flash bin/cradio.bin
Error: cannot found the nRF24LU1 bootloader!
pi@pi-top:~/crazyradio-firmware/fix_bootloader $ ls
crazyradio-firmware fix_bootloader_raspi.pyreadme.md
pi@pi-top:~/crazyradio-firmware/fix_bootloader $ cd . .
pi@pi-top:~/crazyradio-firmware/fix_bootloader $ cd ~
pi@pi-top:~ $ ls
3dslash crazyradio-firmware Desktop Documents Downloads Music Pictures Public py-spidev-master python_games Templates Videos
pi@pi-top:~ $ cd crazyradio-firmware
pi@pi-top:~/crazyradio-firmware $ python ../usbtools/nrfbootload.py flash bin/cradio.bin
python: can't open file '../usbtools/nrfbootload.py': [Errno 2] No such file or directory
pi@pi-top:~/crazyradio-firmware $ ls
CONTRIBUTING.md examples firmware fix_bootloader lib LICENSE.txt module.json nrfProg README.md tools usbtools
pi@pi-top:~/crazyradio-firmware $ python usbtools/nrfbootload.py flash bin/cradio.bin
Error: cannot found the nRF24LU1 bootloader!
pi@pi-top:~/crazyradio-firmware $ python ../usbtools/nrfbootload.py flash bin/cradio.bin
python: can't open file '../usbtools/nrfbootload.py': [Errno 2] No such file or directory
pi@pi-top:~/crazyradio-firmware $ ls
CONTRIBUTING.md examples firmware fix_bootloader lib LICENSE.txt module.json nrfProg README.md tools usbtools
pi@pi-top:~/crazyradio-firmware $ cd usbtools
pi@pi-top:~/crazyradio-firmware/usbtools $ python nrfbootload.py flash bin/cradio.bin
Error: cannot found the nRF24LU1 bootloader!
pi@pi-top:~/crazyradio-firmware/usbtools $ python NrfUsbBootload.py flash bin/cradio.bin
python: can't open file 'NrfUsbBootload.py': [Errno 2] No such file or directory
pi@pi-top:~/crazyradio-firmware/usbtools $ python nrfbootload.py flash bin/cradio.bin
Error: cannot found the nRF24LU1 bootloader!
pi@pi-top:~/crazyradio-firmware/usbtools $ 


My dmesg output is:

Code: Select all

pi@pi-top:~ $ dmesg
[    0.000000] Booting Linux on physical CPU 0x0

[    0.000000] Linux version 4.9.35-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #1014 SMP Fri Jun 30 14:47:43 BST 2017

[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d

[    0.000000] CPU: div instructions available: patching division code

[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

[    0.000000] OF: fdt:Machine model: Raspberry Pi 3 Model B Rev 1.2

[    0.000000] cma: Reserved 8 MiB at 0x2e400000

[    0.000000] Memory policy: Data cache writealloc

[    0.000000] On node 0 totalpages: 192512

[    0.000000] free_area_init_node: node 0, pgdat 80c6ee40, node_mem_map add64000

[    0.000000]   Normal zone: 1692 pages used for memmap

[    0.000000]   Normal zone: 0 pages reserved

[    0.000000]   Normal zone: 192512 pages, LIFO batch:31

[    0.000000] percpu: Embedded 14 pages/cpu @aefa7000 s25600 r8192 d23552 u57344

[    0.000000] pcpu-alloc: s25600 r8192 d23552 u57344 alloc=14*4096

[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 190820

[    0.000000] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=1366 bcm2708_fb.fbheight=768 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=ff4ff786-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)

[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)

[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)

[    0.000000] Memory: 741416K/770048K available (7168K kernel code, 484K rwdata, 2012K rodata, 1024K init, 778K bss, 20440K reserved, 8192K cma-reserved)

[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xaf800000 - 0xff800000   (1280 MB)
    lowmem  : 0x80000000 - 0xaf000000   ( 752 MB)
    modules : 0x7f000000 - 0x80000000   (  16 MB)
      .text : 0x80008000 - 0x80800000   (8160 kB)
      .init : 0x80b00000 - 0x80c00000   (1024 kB)
      .data : 0x80c00000 - 0x80c79014   ( 485 kB)
       .bss : 0x80c7b000 - 0x80d3da64   ( 779 kB)

[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1

[    0.000000] Hierarchical RCU implementation.

[    0.000000]     Build-time adjustment of leaf fanout to 32.

[    0.000000] NR_IRQS:16 nr_irqs:16 16

[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 19.20MHz (phys).

[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns

[    0.000008] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns

[    0.000025] Switching to timer-based delay loop, resolution 52ns

[    0.000338] Console: colour dummy device 80x30

[    0.001232] console [tty1] enabled

[    0.001281] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)

[    0.001350] pid_max: default: 32768 minimum: 301

[    0.001710] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)

[    0.001753] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)

[    0.002779] Disabling cpuset control group subsystem

[    0.002977] CPU: Testing write buffer coherency: ok

[    0.003048] ftrace: allocating 22390 entries in 66 pages

[    0.055736] CPU0: update cpu_capacity 1024

[    0.055805] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000

[    0.055905] Setting up static identity map for 0x100000 - 0x100034

[    0.058145] CPU1: update cpu_capacity 1024

[    0.058153] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001

[    0.058870] CPU2: update cpu_capacity 1024

[    0.058877] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002

[    0.059544] CPU3: update cpu_capacity 1024

[    0.059550] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003

[    0.059633] Brought up 4 CPUs

[    0.059806] SMP: Total of 4 processors activated (153.60 BogoMIPS).

[    0.059836] CPU: All CPU(s) started in HYP mode.

[    0.059862] CPU: Virtualization extensions available.

[    0.060651] devtmpfs: initialized

[    0.071705] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4

[    0.072025] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns

[    0.072087] futex hash table entries: 1024 (order: 4, 65536 bytes)

[    0.072648] pinctrl core: initialized pinctrl subsystem

[    0.073570] NET: Registered protocol family 16

[    0.075857] DMA: preallocated 1024 KiB pool for atomic coherent allocations

[    0.084756] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.

[    0.084805] hw-breakpoint: maximum watchpoint size is 8 bytes.

[    0.084983] Serial: AMBA PL011 UART driver

[    0.086879] bcm2835-mbox 3f00b880.mailbox: mailbox enabled

[    0.087426] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe

[    0.156320] bcm2835-dma 3f007000.dma: DMA legacy API manager at af80f000, dmachans=0x1

[    0.158188] SCSI subsystem initialized

[    0.158366] usbcore: registered new interface driver usbfs

[    0.158467] usbcore: registered new interface driver hub

[    0.158582] usbcore: registered new device driver usb

[    0.165279] raspberrypi-firmware soc:firmware: Attached to firmware from 2017-07-03 14:16

[    0.166696] clocksource: Switched to clocksource arch_sys_counter

[    0.213567] VFS: Disk quotas dquot_6.6.0

[    0.213678] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)

[    0.213905] FS-Cache: Loaded

[    0.214186] CacheFiles: Loaded

[    0.226355] NET: Registered protocol family 2

[    0.227296] TCP established hash table entries: 8192 (order: 3, 32768 bytes)

[    0.227434] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)

[    0.227644] TCP: Hash tables configured (established 8192 bind 8192)

[    0.227758] UDP hash table entries: 512 (order: 2, 16384 bytes)

[    0.227825] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

[    0.228058] NET: Registered protocol family 1

[    0.228490] RPC: Registered named UNIX socket transport module.

[    0.228523] RPC: Registered udp transport module.

[    0.228550] RPC: Registered tcp transport module.

[    0.228578] RPC: Registered tcp NFSv4.1 backchannel transport module.

[    0.229557] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available

[    0.231872] workingset: timestamp_bits=14 max_order=18 bucket_order=4

[    0.248020] FS-Cache: Netfs 'nfs' registered for caching

[    0.249023] NFS: Registering the id_resolver key type

[    0.249076] Key type id_resolver registered

[    0.249104] Key type id_legacy registered

[    0.251547] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)

[    0.251692] io scheduler noop registered

[    0.251722] io scheduler deadline registered (default)

[    0.252007] io scheduler cfq registered

[    0.257722] BCM2708FB: allocated DMA memory ee510000

[    0.257777] BCM2708FB: allocated DMA channel 0 @ af80f000

[    0.287994] Console: switching to colour frame buffer device 170x48

[    0.306538] bcm2835-rng 3f104000.rng: hwrng registered

[    0.306852] vc-cma: Videocore CMA driver

[    0.306971] vc-cma: vc_cma_base      = 0x00000000

[    0.307107] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)

[    0.307259] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)

[    0.307626] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB)

[    0.323202] brd: module loaded

[    0.332217] loop: module loaded

[    0.332342] Loading iSCSI transport class v2.0-870.

[    0.333020] usbcore: registered new interface driver smsc95xx

[    0.333198] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)

[    0.561421] Core Release: 2.80a

[    0.561528] Setting default values for core params

[    0.566469] Finished setting default values for core params

[    0.771763] Using Buffer DMA mode

[    0.776560] Periodic Transfer Interrupt Enhancement - disabled

[    0.781508] Multiprocessor Interrupt Enhancement - disabled

[    0.786467] OTG VER PARAM: 0, OTG VER FLAG: 0

[    0.791375] Dedicated Tx FIFOs mode

[    0.796545] WARN::dwc_otg_hcd_init:1032: FIQ DMA bounce buffers: virt = 0xae504000 dma = 0xee504000 len=9024

[    0.801658] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled

[    0.826282] dwc_otg: Microframe scheduler enabled

[    0.826327] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x8058ef90

[    0.831383] WARN::hcd_init_fiq:460: FIQ ASM at 0x8058f300 length 36

[    0.836437] WARN::hcd_init_fiq:486: MPHI regs_base at 0xaf87a000

[    0.841485] dwc_otg 3f980000.usb: DWC OTG Controller

[    0.846429] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1

[    0.851400] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000

[    0.856285] Init: Port Power? op_state=1

[    0.861123] Init: Power Port (0)

[    0.866087] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

[    0.871068] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    0.875983] usb usb1: Product: DWC OTG Controller

[    0.880828] usb usb1: Manufacturer: Linux 4.9.35-v7+ dwc_otg_hcd

[    0.885703] usb usb1: SerialNumber: 3f980000.usb

[    0.891418] hub 1-0:1.0: USB hub found

[    0.896314] hub 1-0:1.0: 1 port detected

[    0.901832] dwc_otg: FIQ enabled

[    0.901837] dwc_otg: NAK holdoff enabled

[    0.901841] dwc_otg: FIQ split-transaction FSM enabled

[    0.901856] Module dwc_common_port init

[    0.902099] usbcore: registered new interface driver usb-storage

[    0.907279] mousedev: PS/2 mouse device common for all mice

[    0.913163] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer

[    0.918415] bcm2835-cpufreq: min=600000 max=1200000

[    0.923726] sdhci: Secure Digital Host Controller Interface driver

[    0.928780] sdhci: Copyright(c) Pierre Ossman

[    0.934108] sdhost-bcm2835 3f202000.sdhost: could not get clk, deferring probe

[    0.941536] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe

[    0.946870] sdhci-pltfm: SDHCI platform and OF driver helper

[    0.954651] ledtrig-cpu: registered to indicate activity on CPUs

[    0.960082] hidraw: raw HID events driver (C) Jiri Kosina

[    0.965516] usbcore: registered new interface driver usbhid

[    0.970773] usbhid: USB HID core driver

[    0.976763] vchiq: vchiq_init_state: slot_zero = 0xae580000, is_master = 0

[    0.983812] Initializing XFRM netlink socket

[    0.989155] NET: Registered protocol family 17

[    0.994506] Key type dns_resolver registered

[    1.000133] Registering SWP/SWPB emulation handler

[    1.006047] registered taskstats version 1

[    1.011689] vc-sm: Videocore shared memory driver

[    1.016882] [vc_sm_connected_init]: start

[    1.022514] [vc_sm_connected_init]: end - returning 0

[    1.033480] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2

[    1.040180] sdhost: log_buf @ ae507000 (ee507000)

[    1.116727] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)

[    1.124096] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0

[    1.129334] mmc-bcm2835 3f300000.mmc: DMA channel allocated

[    1.155155] Indeed it is in host mode hprt0 = 00021501

[    1.246842] of_cfs_init

[    1.247599] random: fast init done

[    1.257275] of_cfs_init: OK

[    1.262792] Waiting for root device PARTUUID=ff4ff786-02...

[    1.265826] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)

[    1.267402] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)

[    1.268977] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)

[    1.271812] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)

[    1.326891] mmc0: host does not support reading read-only switch, assuming write-enable

[    1.334965] mmc0: new high speed SDHC card at address aaaa

[    1.340717] mmcblk0: mmc0:aaaa SB32G 29.7 GiB

[    1.350379]  mmcblk0: p1 p2

[    1.356737] usb 1-1: new high-speed USB device number 2 using dwc_otg

[    1.361909] Indeed it is in host mode hprt0 = 00001101

[    1.427161] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)

[    1.432401] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.

[    1.447847] devtmpfs: mounted

[    1.454766] Freeing unused kernel memory: 1024K (80b00000 - 80c00000)

[    1.456109] mmc1: new high speed SDIO card at address 0001

[    1.597057] usb 1-1: New USB device found, idVendor=0424, idProduct=9514

[    1.602415] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0

[    1.608585] hub 1-1:1.0: USB hub found

[    1.613824] hub 1-1:1.0: 5 ports detected

[    1.757642] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)

[    1.763489] systemd[1]: Detected architecture 'arm'.

[    1.895182] NET: Registered protocol family 10

[    1.901920] systemd[1]: Inserted module 'ipv6'

[    1.910813] systemd[1]: Set hostname to <pi-top>.

[    1.936755] usb 1-1.1: new high-speed USB device number 3 using dwc_otg

[    2.067049] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00

[    2.072555] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0

[    2.080986] smsc95xx v1.0.5

[    2.181724] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:c4:34:05

[    2.286792] usb 1-1.2: new full-speed USB device number 4 using dwc_otg

[    2.356588] systemd[1]: Cannot add dependency job for unit regenerate_ssh_host_keys.service, ignoring: Unit regenerate_ssh_host_keys.service failed to load: No such file or directory.

[    2.372313] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.

[    2.378931] systemd[1]: Started Forward Password Requests to Wall Directory Watch.

[    2.385248] systemd[1]: Starting Remote File Systems (Pre).

[    2.398624] systemd[1]: Reached target Remote File Systems (Pre).

[    2.405041] systemd[1]: Starting Encrypted Volumes.

[    2.437903] usb 1-1.2: New USB device found, idVendor=1c40, idProduct=04d4

[    2.437912] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0

[    2.458248] input: HID 1c40:04d4 as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:1C40:04D4.0001/input/input0

[    2.527853] hid-generic 0003:1C40:04D4.0001: input,hidraw0: USB HID v1.11 Keyboard [HID 1c40:04d4] on usb-3f980000.usb-1.2/input0

[    2.556160] input: HID 1c40:04d4 as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:1C40:04D4.0002/input/input1

[    2.564462] hid-generic 0003:1C40:04D4.0002: input,hidraw1: USB HID v1.11 Mouse [HID 1c40:04d4] on usb-3f980000.usb-1.2/input1

[    2.580909] input: HID 1c40:04d4 as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.2/0003:1C40:04D4.0003/input/input2

[    2.658375] hid-generic 0003:1C40:04D4.0003: input,hidraw2: USB HID v1.11 Device [HID 1c40:04d4] on usb-3f980000.usb-1.2/input2

[    2.712458] fuse init (API version 7.26)

[    2.749172] i2c /dev entries driver

[    2.756807] usb 1-1.5: new high-speed USB device number 5 using dwc_otg

[    2.893045] usb 1-1.5: New USB device found, idVendor=26bd, idProduct=9917

[    2.899926] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[    2.906656] usb 1-1.5: Product: USB DISK 2.0

[    2.913278] usb 1-1.5: Manufacturer:         

[    2.919798] usb 1-1.5: SerialNumber: 070B52757122B340

[    2.927316] usb-storage 1-1.5:1.0: USB Mass Storage device detected

[    2.934235] scsi host0: usb-storage 1-1.5:1.0

[    3.200715] systemd-udevd[149]: starting version 215

[    3.813435] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

[    3.897606] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000

[    4.032818] scsi 0:0:0:0: Direct-Access              USB DISK 2.0     PMAP PQ: 0 ANSI: 4

[    4.080500] sd 0:0:0:0: Attached scsi generic sg0 type 0

[    4.153509] usbcore: registered new interface driver brcmfmac

[    4.276964] brcmfmac: Firmware version = wl0: Aug  7 2017 00:46:29 version 7.45.41.46 (r666254 CY) FWID 01-f8a78378

[    5.008723] systemd-journald[147]: Received request to flush runtime journal from PID 1

[    5.578220] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

[    5.578234] brcmfmac: power management disabled

[    5.935060] sd 0:0:0:0: [sda] 30299520 512-byte logical blocks: (15.5 GB/14.4 GiB)

[    5.935279] sd 0:0:0:0: [sda] Write Protect is off

[    5.935292] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00

[    5.935502] sd 0:0:0:0: [sda] No Caching mode page found

[    5.935513] sd 0:0:0:0: [sda] Assuming drive cache: write through

[    5.961505]  sda: sda1

[    5.968834] sd 0:0:0:0: [sda] Attached SCSI removable disk

[    6.078393] random: crng init done

[    6.486004] uart-pl011 3f201000.serial: no DMA platform data

[    6.889166] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

[    7.549151] Adding 102396k swap on /var/swap.  Priority:-1 extents:3 across:118784k SSFS

[    7.879053] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup

[    7.879298] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

[   11.040648] Bluetooth: Core ver 2.22

[   11.040713] NET: Registered protocol family 31

[   11.040717] Bluetooth: HCI device and connection manager initialized

[   11.040738] Bluetooth: HCI socket layer initialized

[   11.040747] Bluetooth: L2CAP socket layer initialized

[   11.040768] Bluetooth: SCO socket layer initialized

[   11.046327] Bluetooth: HCI UART driver ver 2.3

[   11.046337] Bluetooth: HCI UART protocol H4 registered

[   11.046339] Bluetooth: HCI UART protocol Three-wire (H5) registered

[   11.046437] Bluetooth: HCI UART protocol Broadcom registered

[   11.159647] Bluetooth: BNEP (Ethernet Emulation) ver 1.3

[   11.159653] Bluetooth: BNEP filters: protocol multicast

[   11.159667] Bluetooth: BNEP socket layer initialized

[   11.876812] systemd[1]: opensnap.service holdoff time over, scheduling restart.

[   17.332917] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
pi@pi-top:~ $ 
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Cannot find USB device

Post by arnaud »

Hi,

to help you it would be useful to have some background information: why did you run the fix script? Have you flashed any firmware to the Crazyradio that disabled the bootloader?

Is the Crazyradio working on a laptop or PC?

The normal boot for Crazyradio is to light-up both LED until the USB connection is initialized by the OS and then both LED goes OFF. It means that if everything is working as it should you should see both LED blink when you insert the Crazyradio in your Raspberry pi.
MBurdett
Beginner
Posts: 15
Joined: Mon Dec 18, 2017 8:52 pm

Re: Cannot find USB device

Post by MBurdett »

Hi,

Thank you for the reply, I have not flashed or uploaded anything onto the radio. I was following the procedure in the follow pages as a means to help connect the radio to my Pi:

https://www.hackster.io/ataffanel/fixin ... 8&offset=3

https://github.com/bitcraze/crazyradio-firmware

http://www.raspberrypi-spy.co.uk/2014/0 ... pberry-pi/

There seems to have been some confusion as to if this was necessary to do this in full to get this working after discussing this with you previously for how to program the radio using a Raspberry PI with an SPI interface. However it is likely that this error was on my part.

When I plug the radio into my Pi or my Windows 10 PC, I get a single constant red LED light. To interface with the radio I have been using a Raspberry Pi in my Pi-Top laptop. Do you know what the red LED means? From your last post it seems I may have done something wrong here. >_<
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Cannot find USB device

Post by arnaud »

Hi, there was no need to follow this doc if all you want is to use the Crazyradio on a Raspberry Pi. The Raspberry Pi is "just" a linux computer so the radio works on it the same way it will work on a Linux computer, just plug it and use it. You may have to configure some udev rules files to be able to use it form your own user but that is all.

If all you have followed is the fix doc and nothing else, you should still have the bootloader in the pi so it should be easy to recover the situation.

Does the red LED is lit even if the radio is completly disconnected from the pi? What should happen is that you disconnect the PROG pin from the Crazyradio, disconnect and reconnect it, and the boorloader should be detected by the computer. Dmesg should show something like that:

Code: Select all

[21358.406250] usb 3-2: new full-speed USB device number 40 using xhci_hcd
[21358.547899] usb 3-2: New USB device found, idVendor=1915, idProduct=0101
[21358.547904] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[21358.547907] usb 3-2: Product: nRF24LU1P-F32 BOOT LDR
[21358.547909] usb 3-2: Manufacturer: Nordic Semiconductor
If that is happening, you will be able to flash the firmware by following the hackster documentation. If not, it is most likely that the bootloader is not there anymore, the script that write the bootloader fix by SPI can be changed so that it re-write the bootloader. If you need to re-write the bootloader I can guide you with the script modification or I can modify it (in about 2 weeks when I am back from a trip).
MBurdett
Beginner
Posts: 15
Joined: Mon Dec 18, 2017 8:52 pm

Re: Cannot find USB device

Post by MBurdett »

Thank you for the reply, I have tried this again and when I plugged the device into my Pi using both the GPIO and USB connections, I had a constant green LED and a flashing red LED on display. When running the bootloader script both LEDs were flashing, and I am left with no LEDs afterwards, and after removing the programming wire I had a constant red LED.

When I then reconnected the device using the USB port, I was left again with just a constant red LED light. When I run dmesg I cannot see any reference to Manufacturer: Nordic Semiconductor, even when using different USB ports.

I am not sure if maybe I have something wrong with the pins I am using. I have used the physical addressing for the pins as per the instructions for connecting the radio to my PI using these pins. However they look slightly different to the photographs in the hackster article. I have included a diagram below to show what set-up I am using, just to see if this helps shed any light on the matter (yes the image does look a bit of a mess but it was hastily done using paint).
Raspberry-Pi-GPIO and Radio schematic.png
On a side note, is there a way to program this device using my own scripts, but using a Windows 10 PC and just the USB port?
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Cannot find USB device

Post by arnaud »

Hi,

That most likely means that the bootloader has been removed too, which is strange.

To be clear: does the RED LED light up even when you remove all the wires, not only the prog wire?

I am looking at making a script to write back a bootloader, I am going to update the thread when I am done. I found a minimalist nrf24lu1 bootloader that I am planning to write with a very similar script to what exists now for writing the 'jump to bootloader' instructions: https://github.com/ahtn/nrf24lu1p-512-bootloader/.
MBurdett
Beginner
Posts: 15
Joined: Mon Dec 18, 2017 8:52 pm

Re: Cannot find USB device

Post by MBurdett »

Hi Arnaud,

Thanks you, the red light stays on afterwards but it I remove the cables and only have the USB connection then the light goes out completely.
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Cannot find USB device

Post by arnaud »

Hi,

This is the expected behavior, I observe that the RED led is also lit when connected to the Raspberry pi if the firmware is not driving the LED (for example in bootloader mode).

I hacked a script that is able to flash a full bootloader back to a Crazyradio using the same raspberry pi SPI cabling: https://gist.github.com/ataffanel/03b45 ... dc9051d003

With that you should be able to recover your Crazyradio. For reference I can reflash completly my Crazyradio with these commands: https://asciinema.org/a/0Ad47fHHjCoS74mVqwVf0vc8i :

Code: Select all

pi@raspberrypi:~/crazyradio-firmware/fix_bootloader $ python3 write_bootloader_raspi.py ~/bootloader_512_7800.bin                                       
Erasing page 0...                                                                                                                                       
Writing 'JL 0x7800' instruction on page 0...                                                                                                            
Erasing page 60...                                                                                                                                      
Writing bootloader on page 60 ...                                                                                                                       
Verifying page 0...                                                                                                                                     
OK!                                                                                                                                                     
Verifying page 60...                                                                                                                                    
OK!                                                                                                                                                     
Bootloader programmed. Disconnect the PROG wire, reconnect Crazyradio                                                                                   
and the bootloader should start!                                                                                                                        
pi@raspberrypi:~/crazyradio-firmware/fix_bootloader $ # Removing PROG pin ...                                                                           
pi@raspberrypi:~/crazyradio-firmware/fix_bootloader $ dmesg | tail                                                                                      
[19892.114256] usb 1-1.4: device descriptor read/64, error -32                                                                                          
[19892.334273] usb 1-1.4: device descriptor read/64, error -32                                                                                          
[19892.554267] usb 1-1.4: new full-speed USB device number 38 using dwc_otg                                                                             
[19892.994284] usb 1-1.4: device not accepting address 38, error -32                                                                                    
[19893.094284] usb 1-1.4: new full-speed USB device number 39 using dwc_otg                                                                             
[19893.534357] usb 1-1.4: device not accepting address 39, error -32                                                                                    
[19893.534471] usb 1-1-port4: unable to enumerate USB device                                                                                            
[19903.754391] usb 1-1.4: new full-speed USB device number 40 using dwc_otg                                                                             
[19903.885526] usb 1-1.4: New USB device found, idVendor=1915, idProduct=0101                                                                           
[19903.885539] usb 1-1.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0                                                                      
pi@raspberrypi:~/crazyradio-firmware/fix_bootloader $ sudo ~/crazyradio-firmware/usbtools/nrfbootload.py flash ~/cradio-pa-0.53.bin                     
('Found nRF24LU1 bootloader version', '1.1')                                                                                                            
Flashing:                                                                                                                                               
  Flashing 5810 bytes...                                                                                                                                
Flashing done!                                                                                                                                          
Verifying:                                                                                                                                              
  Reading /home/pi/cradio-pa-0.53.bin...                                                                                                                
  Reading 5810 bytes from the flash...                                                                                                                  
Verification succeded!                                                                                                                                  
pi@raspberrypi:~/crazyradio-firmware/fix_bootloader $ # Removing and re-inserting Crazyradio                                                            
pi@raspberrypi:~/crazyradio-firmware/fix_bootloader $   dmesg | tail                                                                                      
[19903.754391] usb 1-1.4: new full-speed USB device number 40 using dwc_otg                                                                             
[19903.885526] usb 1-1.4: New USB device found, idVendor=1915, idProduct=0101                                                                           
[19903.885539] usb 1-1.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0                                                                      
[19942.014141] usb 1-1.4: USB disconnect, device number 40                                                                                              
[19943.334790] usb 1-1.4: new full-speed USB device number 41 using dwc_otg                                                                             
[19943.475643] usb 1-1.4: New USB device found, idVendor=1915, idProduct=7777                                                                           
[19943.475657] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=29                                                                     
[19943.475665] usb 1-1.4: Product: Crazyradio PA USB Dongle                                                                                             
[19943.475673] usb 1-1.4: Manufacturer: Bitcraze                                                                                                        
[19943.475681] usb 1-1.4: SerialNumber: AA4859519D                                                                                                      
Note that the output of dmesg for this bootloader is a bit different than with the original nordic bootloader, what is important is that a USB device with VID/PID 1915/0101 appears.
MBurdett
Beginner
Posts: 15
Joined: Mon Dec 18, 2017 8:52 pm

Re: Cannot find USB device

Post by MBurdett »

Hi,

Thank you so much, the video step by step was a great help as I was able to copy and paste the commands to help prevent any error from typing. I placed the files where they were needed and started running the commands. It does the first part OK and it is verified, however when I run dmsg | tail I get the following output:

Code: Select all


[   11.039388] Bluetooth: L2CAP socket layer initialized
[   11.039405] Bluetooth: SCO socket layer initialized
[   11.045209] Bluetooth: HCI UART driver ver 2.3
[   11.045219] Bluetooth: HCI UART protocol H4 registered
[   11.045222] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   11.045343] Bluetooth: HCI UART protocol Broadcom registered
[   11.163908] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   11.163916] Bluetooth: BNEP filters: protocol multicast
[   11.163929] Bluetooth: BNEP socket layer initialized

I am not sure why it is saying anything about Bluetooth I must admit. I have a Respberry Pi 3 and currently have no Bluetooth adapter installed either, do you know what this could be?
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Cannot find USB device

Post by arnaud »

Is the Crazyradio connected to the raspberry pi usb port? If so, I am now convinced that there is something wrong with your Crazyradio. It should appear as a USB device and it does not.

If you drop us a mail on our contact email (contact at bitcraze dot io), I will arrange a replacement board.
Post Reply