Open gkelly opened 6 years ago
Should also mention that the miniblink example works fine, it's just the USB examples that seem to be broken.
Tried with the arm-unknown-eabi
from crosstool-ng, which had a similar result. The red light ended up staying on and the enumeration appeared to fail faster. However, the toolchain from https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads, which identifies itself as:
gcc version 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204] (GNU Tools for Arm Embedded Processors 7-2017-q4-major)
works, which is nice. Which gcc version were the prebuilt binaries built with?
That is the compiler they were built for originally. Downloaded from that address.
It sounds like this could be an alignment issue. Can you attach an .elf file from a broken build? I'll look through it and see if any addresses are off.
Here's usb_simple.bin
: https://drive.google.com/open?id=12HXy1xhEShCmLtWibbdzG_gZ36h6xzCe and here's usb_simple.elf
: https://drive.google.com/open?id=19DdCKcFsoW-xBUEg2a2r8YfK8GD_UKpI
Both built with gcc version 6.3.1 20170620 (15:6.3.1+svn253039-1build1)
.
I can flash the prebuilt/usb_* images and they work fine, but when I build with the arm-none-eabi toolchain in ubuntu bionic's apt I get images that when flashed just end up doing:
The compiler version reports: