Hello Erich, Thanks for the response.
I've moved all the clock settings to ClockSourceSetting0 for 48Mhz and it compiles, downloads OK and runs.
All the settings for the USB stack are the same as your McuOnEclipse USB MSD settings for the FRDM-K20D50 except for selecting the K20D72
I've the two tasks - one Host and the other Shell.c
The shell responds with help/status.
I have the Hosttask instrumented with a led_neg() to see it polling the FsMSD1_appTask() and CheckStatus()
On power up - it services a USB_ISR and finds nothing, returns and carries on running.
On a USB Stick being plugged in - it generates a USB_ISR, runs and detects an attach in khci_kinetis.c
This is processed with
_usb_event_set(&khci_event, KHCI_EVENT_ATTACH);
However, it then does nothing with it.
It seems to disable some interrupts including
Events.c:TI1_OnInterrupt() {
delay_count++;
}
stops being called, which results in sitting in a delay loop waiting - I think in the hosttask.
This is pretty broad description - I've been reading the manual to understand UsbHost and ISRs better - i wonder if you have any pointers where to look.
Many thanks
Neil