How can I detect USB key on boot for MassStorageHost example?

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by philippschrader on Wed May 20 15:12:44 MST 2015
Hi all,

I've got the example in LPCOpen's "lpcusblib_MassStorageHost" folder running on my LPC4357 part. (Embedded Artists eval board).
I'm really happy with how it's working and I'm happy that it "just works" :)

One thing I find curious though is that the demo application won't run until I cleanly insert the USB key after a reset. Having the USB key plugged in during a reset causes the demo application to sit there until I unplug the key and plug it back in.

I can't figure out a good way to fix that.

Could you guys give me a hand with this?

Thank you,