[SOLVED] Harmony 1.07 USB host example -- msd_basic doesn't work
I use MPLABX v3.30, XC32 v1.40 and Harmony v1.07.
My hardware board is PIC32MZ EC start kit (pic32mz2048ech144).
I tried two usb device examples of Harmony, they worked nice.
Then I go to try the usb host example -- msd_basic.
usb drive(FAT32) is attached on the board. JP1 is connected. heap size is 1024. after programming, I see that msd_basic never works.
I debug it and find it is blocking in APP_STATE_WAIT_FOR_BUS_ENABLE_COMPLETE, The USB_HOST_BUS cannot be enabled.
Then I find the reason of USB_HOST_BUS not enabled is the DRV_USBHS_Tasks() is blocked.
/* Check if the delay is complete */
I put a breakpoint on the line of "if(SYS_TMR_DelayStatusGet(hDriver->timerHandle)) "
I see that if condition is alway false. seems that the timer delay cannot complete.
Does anybody face this problem?
Any comments are welcome.
post edited by kseg - 2017/10/12 08:08:49