10 years, 10 months ago.

mbed USBDevice library for offline compiler not working

i exported http://mbed.org/handbook/DigitalOut program, and it works fine on Red Suite 5.

I exported http://mbed.org/handbook/USBSerial program, and it failed on red suite 5.

-MF"USBDevice/USBMSD/USBMSD.d" -MT"USBDevice/USBMSD/USBMSD.d" -o "USBDevice/USBMSD/USBMSD.o" "../USBDevice/USBMSD/USBMSD.cpp" In file included from ../USBDevice/USBMSD/USBMSD.cpp:20:0: ../USBDevice/USBMSD/USBMSD.h:179:13: error: 'packed' does not name a type ../USBDevice/USBMSD/USBMSD.h:187:7: error: 'CBW' does not name a type ../USBDevice/USBMSD/USBMSD.h:190:13: error: 'packed' does not name a type ../USBDevice/USBMSD/USBMSD.h:195:7: error: 'CSW' does not name a type ..... and many more errors

my guess, only the mbed library is suited for export, and any other other library stacks are not useful?

does anyone have success with exporting USBSerial to any offline compiler?

3 Answers

10 years, 6 months ago.

Hi Emilio,

Just like some others, I ran into this issue of USBHost and GCC. Do you know if and when this library will be upgraded for support for GCC toolchains?

Best regards, Gerwin

10 years, 9 months ago.

Hi Emilio,

previously (before the mbed lib was open sourced) you could export a precompiled version of the mbed lib that allowed projects with USBDevice support to be compiled offline. At least I was able to do so somewhere mid 2012.

So maybe the original poster could try with a precompiled version of the mbed lib?

Kind regards, Lieven.

10 years, 10 months ago.

The USBDevice library is not yet supported for GCC toolchains.

Cheers, Emilio