AnsweredAssumed Answered

Delay needed before setting USB0_CTL?

Question asked by Joey Gouly on Jan 25, 2016
Latest reply on Jan 27, 2016 by Joey Gouly

Hi all,

 

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.

 

Link to code: keyboard-firmware/usb_dev.c at 26740e5dda0d72eb0681a865d16cf2588b6e7670 · jgouly/keyboard-firmware · GitHub

 

Is there anything I need to "wait" for before setting this? Or anything that I'm missing?

 

Thanks,

Joey

Outcomes