Dfu-util can't list address

Hi all,

My OS is ubuntu 13.10. I have build .bin file and put the core into DFU mode.
I use dfu-util can’t list address…

Here is my system message
[2945790.480093] usb 3-1: new full-speed USB device number 4 using uhci_hcd
[2945790.647113] usb 3-1: New USB device found, idVendor=1d50, idProduct=607f
[2945790.647123] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[2945790.647127] usb 3-1: Product: CORE DFU
[2945790.647131] usb 3-1: Manufacturer: Spark Devices

Here is dfu-util -l
Found Runtime: [0b05:1712] devnum=0, cfg=1, intf=2, alt=0, name="UNDEFINED"
Found DFU: [1d50:607f] devnum=0, cfg=1, intf=0, alt=0, name="UNDEFINED"
Found DFU: [1d50:607f] devnum=0, cfg=1, intf=0, alt=1, name=“UNDEFINED”

I can’t get the address likes “0x08005000” on github document.

thanks.

Hey @liming,

Try this:

sudo dfu-util -l

@Dave & @liming I am having trouble as well with dfu-util.
dfu-util -l and sudo dfu-util -l gives me the following output:
dfu-util 0.5

© 2005-2008 by Weston Schmidt, Harald Welte and OpenMoko Inc.
© 2010-2011 Tormod Volden (DfuSe support)
This program is Free Software and has ABSOLUTELY NO WARRANTY

dfu-util does currently only support DFU version 1.0

Found Runtime: [13d3:3315] devnum=0, cfg=1, intf=3, alt=0, name=“UNDEFINED”

Any ideas?

Hi @gtg662w,

Hmm, maybe try updating dfu-util? It looks like you’re running 0.5, and the latest is 0.7.

It also looks like your core either isn’t connected to your computer, or it isn’t in DFU mode. Make sure your core is blinking yellow by putting it into dfu mode (hold down both buttons, let go of “reset”, and then keep holding mode until it blinks yellow.) If it was in DFU mode, maybe try a different usb cable?

I’m the hand model here: https://vine.co/v/MahhI1Fg7O6

@Dave…Thanks for that. I changed my cable and updated to 0.7…and I think it was able to find the Spark Core. I got some additional lines of output on dfu-util -l. But now when I try to flash the frimware it says it cannot open the device.

Here is the exact output:
~/Desktop/Spark/core-firmware/build$ dfu-util -l

dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Found Runtime: [13d3:3315] devnum=0, cfg=1, intf=3, alt=0, name="UNDEFINED"
Found DFU: [1d50:607f] devnum=0, cfg=1, intf=0, alt=0, name="UNDEFINED"
Found DFU: [1d50:607f] devnum=0, cfg=1, intf=0, alt=1, name=“UNDEFINED”

:~/Desktop/Spark/core-firmware/build$ dfu-util -d 1d50:607f -a 0 -s 0x08005000:leave -D core-firmware.bin

dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x1d50 product = 0x607f
Cannot open device

HI @gtg662w,

Hmm… What OS are you running? On some systems I’ve needed to prefix my dfu-util commands with sudo. Can you give that a shot?

Thanks!
David

Hi @Dave and @gtg662w. Just for the record, I was having the same problem with the ‘dfu-util’ commands and was getting the ‘Cannot open device’ output, but once I started using ‘sudo’ everything went well. I’m having the white LED problem this thread is talking about: , and I think I haven’t been able to reflash the firmware, but that I will talk about in the other post (in case you do now what problem I’m having, in which case I’m all ears… Eyes, whatever). Will ask there as soon as I upgrade the ‘dfu-util’ to version 0.7.

My first output:

 Command: sudo dfu-util -l

dfu-util 0.5
    (C) 2005-2008 by Weston Schmidt, Harald Welte and OpenMoko Inc.
    (C) 2010-2011 Tormod Volden (DfuSe support)
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    
    dfu-util does currently only support DFU version 1.0
    
    Found DFU: [1d50:607f] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash  /0x08000000/20*001Ka,108*001Kg"
    Found DFU: [1d50:607f] devnum=0, cfg=1, intf=0, alt=1, name="@SPI Flash : SST25x/0x00000000/512*04Kg"

Second output:

Command: ~/SparkCore/core-firmware/build$ sudo dfu-util -d 1d50:607f -a 0 -s 0x08005000 -D core-firmware.bin

dfu-util 0.5

(C) 2005-2008 by Weston Schmidt, Harald Welte and OpenMoko Inc.
(C) 2010-2011 Tormod Volden (DfuSe support)
This program is Free Software and has ABSOLUTELY NO WARRANTY

dfu-util does currently only support DFU version 1.0

Filter on vendor = 0x1d50 product = 0x607f
Opening DFU USB device... ID 1d50:607f
Run-time device DFU version 011a
Found DFU: [1d50:607f] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash  /0x08000000/20*001Ka,108*001Kg"
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 1024
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash  "

@vlvrd @Dave Thanks guys. sudo worked and I now I am able to program locally.

Having some other issues now though. After flashing locally, I am unable to flash over the air using the cloud IDE. Will search the forums for more info.