Jump to content


  • Content Count

  • Joined

  • Last visited

Posts posted by stick

  1. I was able to narrow the problem even further - if I use freshly built libusb-cm4f.a and just replace usbdenum.o in it from the original version, it starts to work. So the problem lies somewhere in the usblib/device/usbdenum.c


    It seems that GCC emits memcpy call in usbdenum.o which does not happen in any other object file. I tried -fno-builtin and -fno-builtin-memcpy but memcpy call is still emited. 


    The culprit is the line 2571:


    sConfDesc = *(tConfigDescriptor *)g_psUSBDevice[0].pEP0Data;


    which gets optimized to memcpy call.

  • Create New...