I found a weird issue in my USB code. Actually it's the Teensy LC USB code, that I have modified to run on MKL27Z.
In my code, I had to add a 1 ms delay before setting USB0_CTL, otherwise my code doesn't seem to work.
Is there anything I need to "wait" for before setting this? Or anything that I'm missing?