Author Topic: using preenFM2 w/o usb stick?  (Read 8212 times)

ub

  • Team member
  • *
  • Posts: 6
    • View Profile
using preenFM2 w/o usb stick?
« 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



Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2259
    • View Profile
Re: using preenFM2 w/o usb stick?
« Reply #1 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



ub

  • Team member
  • *
  • Posts: 6
    • View Profile
Re: using preenFM2 w/o usb stick?
« Reply #2 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.

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2259
    • View Profile
Re: using preenFM2 w/o usb stick?
« Reply #3 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

ub

  • Team member
  • *
  • Posts: 6
    • View Profile
Re: using preenFM2 w/o usb stick?
« Reply #4 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
« Last Edit: June 16, 2015, 05:15:26 PM by ub »

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2259
    • View Profile
Re: using preenFM2 w/o usb stick?
« Reply #5 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

ub

  • Team member
  • *
  • Posts: 6
    • View Profile
Re: using preenFM2 w/o usb stick?
« Reply #6 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.