This is an adaptation of STM32F4DISCOVERY demo program (covering USB Host, MEMS accelerometer and more) [AN3983] fully compatible with arm-none-eabi and removes the need for an IDE.