AnsweredAssumed Answered

AN4368 on K60 issue

Question asked by kk kk on Feb 4, 2015
Latest reply on Feb 11, 2015 by kk kk

I tried to use a USB MSD host bootloader on K60(MK60FN1M0VLQ12). I found the document AN4368 and followed the steps.

When I built up my project and debug on my K60 board, it can print the message"Waiting for USB mass storage to be attached".

Then I plug-in the USB flash,it doesn't work. I use the debug mode and find that it will trigger an interrupt and stop at "B Default_Handler". The Handler happens when the code goes to

if (tr_params_ptr->DEV_REQ_PTR != NULL) {

      pipe_tr_ptr->setup_packet =

         *((USB_SETUP_PTR)tr_params_ptr->DEV_REQ_PTR);

   }

of the function "_usb_host_set_up_TR" in the file "host_main.c"

 

I try another project"USBFS_Host"build from"KINETIS_120MHZ_SC" and get the same problem.

My K60 board can use USB host with MFS in MQX4.0.

But I need AN4368 work fine on my board without MQX.

Please help me and thanks.

Outcomes