preenfm Forum

PreenFM => preenfm2 and preenfm3 => Topic started by: Mmarsh on December 29, 2013, 09:51:32 PM

Title: Question about USB
Post by: Mmarsh on December 29, 2013, 09:51:32 PM
Hi Xavier -

I have a question about USB. When I plug the FM2 into my iMac it id not recognized as a MIDI device.  Should it be? It's also not recognized on my PC.

One more: should the USB stick be visible to the Mac or PC as a drive? It would be convenient to have it work this way so that I don't have to partially dissasemble the case to get the USB stick out.

Thanks!

Mike
Title: Re: Question about USB
Post by: Xavier on December 29, 2013, 11:53:00 PM
Hi Mike,

Your PreenFM2 should be recognized as a "PreenFM mk2" midi device on both mac an PC (and Linux and IOS).

First, Midi USB is disable by default and must be enable menu->Tools->Set->Usb Midi.

If it's still no recognized check with an aditional mini usb cable that you can plug between your computer and directly to the mini usb port of the CERB40.
If it works with this direct cable and not with the PCB->mini usb cable you built, then check the connection of the USB cable.

Making the USB stick visible from the computer is not easy at all as they are 2 different USB connection for the CERB40.
Don't forget that you can use sysex to upgrade firmware.
But I agree it would be better to see the USB stick from the computer.

Xavier
Title: Re: Question about USB
Post by: Mmarsh on December 30, 2013, 12:23:32 AM
Ah, I didn't know about the menu setting! Thank you!

Mike
Title: Re: Question about USB
Post by: Xavier on January 01, 2014, 04:16:17 PM
One more: should the USB stick be visible to the Mac or PC as a drive? It would be convenient to have it work this way so that I don't have to partially dissasemble the case to get the USB stick out.

Implemented in bootloader 1.10.  :)

Xavier
Title: Re: Question about USB
Post by: Mmarsh on January 01, 2014, 08:32:16 PM
Oh, excellent Xavier! And happy new yer to you and your family :)
Title: Re: Question about USB
Post by: Xavier on January 01, 2014, 10:36:09 PM

Thanks, happy new year to you too  :)
Title: Re: Question about USB
Post by: dimifrag on January 12, 2014, 10:50:47 AM
Instructions to how can read/write usb storage from my mac ?
Title: Re: Question about USB
Post by: 6581punk on January 12, 2014, 01:54:48 PM
Hold a key when turning on the Preen to go into the booloader, then there's an option to mount the USB stick.
Title: Re: Question about USB
Post by: Xavier on January 12, 2014, 03:06:24 PM
Thanks 6581punk for the answer  :)
I would just add that bootloader 1.10 is required.

To know what version you have just keep "OP" pressed while turning on the Preen (works with all version)

Xavier
Title: Re: Question about USB
Post by: dimifrag on January 12, 2014, 07:15:31 PM
how can i upgrade the boot loader because i have the 1.02 ?
i can't see the option for the usb!  :-\
Title: Re: Question about USB
Post by: 6581punk on January 12, 2014, 07:39:58 PM
You have to stick a jumper on JMP3 and power up the preen, then use dfu-util.

dfu-util -a0 -d 0×0483:0xdf11 -D p2_boot_1.10.bin -R -s 0×8000000

Title: Re: Question about USB
Post by: Xavier on January 12, 2014, 08:31:36 PM

More details here :
http://ixox.fr/preenfm2/built-it/burn-firmware/

1.10 will hopefully be the last one you need ;-)

Xavier
Title: Re: Question about USB
Post by: dimifrag on January 12, 2014, 08:32:30 PM
and put out the jump 2 and 3 ?
because the terminal write can't find the file!
Title: Re: Question about USB
Post by: dimifrag on January 12, 2014, 08:33:33 PM
sorry the 1 and 2?
Title: Re: Question about USB
Post by: dimifrag on January 12, 2014, 08:37:56 PM
I TAKE THIS MESSAGE:
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 = 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
p2_boot_1.10.bin: No such file or directory
Title: Re: Question about USB
Post by: Xavier on January 12, 2014, 08:43:08 PM
Don't touch JMP1 and 2 or you won't be able to switch on your preen.
Search for JMP1 here :
http://ixox.fr/preenfm2/built-it/the-pcb/

But you're very  close, just run the dfu command in a directory where you have the bin file.
Follow the download link at the top right of this page.
Download last 0.9o firmware, the bootloader is in the zip.

Xavier
Title: Re: Question about USB
Post by: dimifrag on January 12, 2014, 09:06:13 PM
i have the file in usb storage on root directory and on pfm2 folder directory, where i need to put the p2_boot_1.10.bin file to get the bootloader update?
Title: Re: Question about USB
Post by: Xavier on January 12, 2014, 09:09:57 PM

I was not clear.
The bootloader is useless on your usb drive.

It must be on your computer in the directory where you run dfu-util.

Title: Re: Question about USB
Post by: dimifrag on January 12, 2014, 09:13:33 PM
where is in my mac the dfu util?
Title: Re: Question about USB
Post by: dimifrag on January 12, 2014, 09:20:00 PM
i found it :)
On User directory :D
Title: Re: Question about USB
Post by: dimifrag on January 12, 2014, 09:21:33 PM
and what is the overclocked firmware? it's better than normal firmware?
Title: Re: Question about USB
Post by: Xavier on January 12, 2014, 09:26:19 PM

Cool.

From the FAQ  ;)

Should i use the overclocked firmware ?

Yes.
I've never seen any problem with it, and you'll get a better sound specially when playing high notes. Sampling rate is 44000 instead of 39000Hz.
I don't feel comfortable flashing it by default because the STM32F4 is not supposed to run at 192MGhz.
Title: Re: Question about USB
Post by: dimifrag on January 12, 2014, 09:31:52 PM
thanks xavier you are good :)
Title: Re: Question about USB
Post by: Xavier on January 13, 2014, 08:58:42 PM

The more people upgrade their bootloader to 1.10 the less i'll hear about dfu-util problem  ;)