preenfm Forum
PreenFM => preenfm2 and preenfm3 => Topic started by: Bairkan on November 29, 2013, 07:43:08 PM
-
I have built my kit, but when it comes to flashing the bootloader I have connected the USB, installed dfu-util through macports, but when I try to run the command to install the boot loader, it tells me that no DFU-compatible USB device has been found, I have shorted the jumper 3, so that shouldn't be the problem.
-
I have now connected the USB cable to the FEZ Cerb directly and it now shows up when executing the dfu-util -l command, yet when I try and flash the bootloader dfu-util brings up an error "No valid DFU suffix signature Warning: File has no DFU suffix", this is when using the command:
dfu-util -a0 -d 0×0483:0xdf11 -D /Users/me/Downloads/build/p2_boot_1.01.bin -R -s 0×8000000
-
I have now connected the USB cable to the FEZ Cerb directly and it now shows up when executing the dfu-util -l command,
Thanks for checking this.
So the USB cable you made does not work... you may have a shortcut or solder the wrong pins on the mini usb socket.
yet when I try and flash the bootloader dfu-util brings up an error "No valid DFU suffix signature Warning: File has no DFU suffix", this is when using the command:
dfu-util -a0 -d 0×0483:0xdf11 -D /Users/me/Downloads/build/p2_boot_1.01.bin -R -s 0×8000000
The -s options should tell dfu-util to consider the file as a raw file.. that's strange it check the DFU suffix.
Could you let me know the full output of "dfu-utils -l" and "dfu-util -h" ?
Xavier
-
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 DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/04*016Kg,01*064Kg,07*128Kg"
Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=1, name="@Option Bytes /0x1FFFC000/01*016 e"
Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=2, name="@OTP Memory /0x1FFF7800/01*512 e,01*016 e"
Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=3, name="@Device Feature/0xFFFF0000/01*004 e"
dfu-util -h
Usage: dfu-util [options] ...
-h --help Print this help message
-V --version Print the version number
-v --verbose Print verbose debug statements
-l --list List the currently attached DFU capable USB devices
-e --detach Detach the currently attached DFU capable USB devices
-d --device vendor:product Specify Vendor/Product ID of DFU device
-p --path bus-port. ... .port Specify path to DFU device
-c --cfg config_nr Specify the Configuration of DFU device
-i --intf intf_nr Specify the DFU Interface number
-a --alt alt Specify the Altsetting of the DFU Interface
by name or by number
-t --transfer-size Specify the number of bytes per USB Transfer
-U --upload file Read firmware from device into <file>
-D --download file Write firmware from <file> into device
-R --reset Issue USB Reset signalling once we're finished
-s --dfuse-address address ST DfuSe mode, specify target address for
raw file download or upload. Not applicable for
DfuSe file (.dfu) downloads
And this is the message I get when trying to flash:
dfu-util -a0 -d 0×0483:0xdf11 -D /Users/me/Downloads/build/p2_boot_1.01.bin -R -s 0×8000000
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 = 0x0000 product = 0xdf11
Opening DFU capable USB device... ID 0483:df11
Run-time device DFU version 011a
Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/04*016Kg,01*064Kg,07*128Kg"
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 2048
No valid DFU suffix signature
Warning: File has no DFU suffix
Error: Invalid dfuse address: 0×8000000
-
Well, I have fixed the error with the address, had to replace the "x" in the command for the memory address with a character x, now I get this result:
dfu-util -a0 -d 0x0483:0xdf11 -D /Users/me/Downloads/build/p2_boot_1.01.bin -R -s 0x8000000
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 = 0x0483 product = 0xdf11
Opening DFU capable USB device... ID 0483:df11
Run-time device DFU version 011a
Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/04*016Kg,01*064Kg,07*128Kg"
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuDNLOAD-IDLE, status = 0
aborting previous incomplete transfer
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 2048
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08000000, size = 84484
..........................................
File downloaded successfully
can't detach
Resetting USB to switch back to runtime mode
-
OK So you got it.
Flash bootloader AND firmware.
dfu-util -a0 -d 0×0483:0xdf11 -D /Users/maxvoetsch/Downloads/build/p2_boot_1.01.bin -R -s 0x8000000
dfu-util -a0 -d 0x0483:0xdf11 -D /Users/maxvoetsch/Downloads/build/p2_09h.bin -R -s 0x8040000
Remove JMP3.
Reboot... should be OK.
> "can't detach - Resetting USB to switch back to runtime mode"
Is not a problem.
-
I have executed both commands, removed the jumper and restarted, yet the screen is still blank and when connecting a MIDI keyboard and speakers there is no sound, so I assume there still is some problem with the software persisting, any pointers?
-
I have executed both commands, removed the jumper and restarted, yet the screen is still blank and when connecting a MIDI keyboard and speakers there is no sound, so I assume there still is some problem with the software persisting, any pointers?
If you see the points appearing while uploading both the files... The firmware is uploaded.
Have you tried to turn the variable resistor of the LCD contrast in both direction ?
If yes it seems that your CERB40 / PreenFM PCB are not correctly connected, which also must be the reason why you could not upload the firmware with the main USB cable.
Check it's well inserted and that the DIP 40 socket is well soldered on the PCB.
Xavier
-
Try to turn on the PFM without the PCB->CERB40 USB custom cable and without the midi pins plugged.
Xavier
-
And my last idea of the day : have you double checked you flashed the bootloader at 0x8000000 and the firmware at 0x8040000 ?
Let me know how it goes,
Xavier
-
Okay, so I have gotten it to work as far as it starting up and showing the screen saying "PreenFM2 v0.9h By Xavier Hosxe", seems stuck at that though. I fixed the USB cable so now I can flash from the regular port, seems the connectors were not working properly, the cable was still isolated where it should have connected to the metal, manufacturing fault, I guess.
-
Okay, so I have gotten it to work as far as it starting up and showing the screen saying "PreenFM2 v0.9h By Xavier Hosxe", seems stuck at that though.
Which is good. It passes the bootloader and is now in the firmware.
I think it's stuck on the USB drive initialization.
Do you have a USB stick plugged ? Did you extract on it the file you can find in the Download tab (http://ixox.fr/preenfm2/download/) ?
Xavier
-
I have one in there, with the file available from the download, I guess I'll reformat the drive and try again and if that doesn't work maybe try another drive since I got a couple spares lying about.
-
Had to use a different USB drive but now it is all working, thanks for the help Xavier, I'll gladly recommend your products to anyone else interested in DIY synths.
-
Had to use a different USB drive but now it is all working, thanks for the help Xavier, I'll gladly recommend your products to anyone else interested in DIY synths.
Good news.. and thanks :D
Xavier