preenfm Forum

PreenFM => preenfm2 and preenfm3 => Topic started by: ub on June 14, 2015, 01:34:37 PM

Title: using preenFM2 w/o usb stick?
Post by: ub on June 14, 2015, 01:34:37 PM
Hi

I'm wondering ... is this possible? Or rather, does anyone know what would need changing? I've only looked briefly at the code so far, and would it suffice to mostly substitute the UsbKey stuff or would one have to change the bootloader as well?

thank you


Title: Re: using preenFM2 w/o usb stick?
Post by: Xavier on June 14, 2015, 10:38:48 PM

Hi Ub,

The bootloader won't check any USB stick unless you press a key and select one option that requires a USB key.
So it's not a requirement to modify it.

For the firmware, I tried to isolate everything in USBKey.cpp/h, but it's likely you'll also have to modify Storage.cpp/h.

What would you want to use instead ?

Xavier


Title: Re: using preenFM2 w/o usb stick?
Post by: ub on June 14, 2015, 10:47:29 PM
hi xavier,

thank you. ok, i had figured out the bootloader doesn't check for the stick, but i'm a bit lost with all that c++ in the main code. basically, i'd like to simply start up with preenMainPreset.
Title: Re: using preenFM2 w/o usb stick?
Post by: Xavier on June 15, 2015, 11:31:40 AM

So that should be enough to remove any USBKey call in preenfm2.cpp:
https://github.com/Ixox/preenFM2/blob/master/src/PreenFM.cpp
Line 133 > 138
+ line 238

Then don't go in the menu where a storage is expected or it will freeze your preenfm2.
That won't build a stable firmware.


Xavier
Title: Re: using preenFM2 w/o usb stick?
Post by: ub on June 15, 2015, 07:54:59 PM
thanks again, xavier.

i've commented those lines and it seems to work, though usb midi seems to be disabled, too, now (even when commenting line 234). will have to investigate some more... [edit: working now; using just a discovery board, that's why]

best
ub
Title: Re: using preenFM2 w/o usb stick?
Post by: Xavier on June 18, 2015, 03:45:31 PM
....using just a discovery board....


So you might be interested by this thread :
http://ixox.fr/forum/index.php?topic=63425.0

Xavier
Title: Re: using preenFM2 w/o usb stick?
Post by: ub on June 19, 2015, 09:01:07 AM

So you might be interested by this thread :
http://ixox.fr/forum/index.php?topic=63425.0

Xavier

Thanks, that's what I've been using  :)

But I didn't/don't have any suitable hardware at the moment, or OTG cable for that matter.