Hi,
Sorry for reviving this old thread but i have the same issue while writing my own stack,
when connecting USB, i get ERR Interrupt, ERRSTAT is 1 (PIDERR)
this is the only thread i found about this issue.
Currently i'm compiling the code with arm-none-eabi- toolchain, all i have to do is add #define LITTLE_ENDIAN ?
or how do i set this little-endian mentioned?
EDIT:
I tried both #define LITTLE_ENDIAN in the .c file
and -mlittle-endian in the gcc command line, no help.
also, there is a PLL mentioned, im pretty sure i'm using the right PLL, because reset interrupt is working, but what pll should be used?