I really need some help with this.
I have got my touch screen code working fine after following instructions in this thread, but it seems that by doing that I sacrifice my USB device detection!
I believe that it is a timer-related issue, as the problem seems to lie in SYS_TMR_CallbackSingle never allowing the callback function to run, so my code sees that the USB stick has been plugged in, but cannot go through the whole state machine to report the device as connected, due to the aforementioned timer issue.
I'm using the MSD Host Client driver for the USB, with the Automount feature enabled in the File System service.
If I play around with the timer indexes and instances, I can get the USB to work fine (as it did in earlier versions of Harmony), but this always seems to be at the expense of the touch screen.
Can anyone advise where I even start?!
I'm using a custom PCB, Harmony v2.06, MPLAB X IDE v5.10, XC32 v2.10, PIC32MX795F512L.
*EDIT* I've realised thanks to another thread that I need to configure an timer driver instance for the timer system service, that has also not helped.
I've also seen suggested that dynamic drivers need to be used if the system service is to be used, but then my generated adc_touch code doesn't compile due to the presence of the line DRV_TMR0_Start(); which implies static drivers should be used. I've tried to change to the dynamic function, but cannot find where the driver is open, to be able to get the driver handle info to pass to the function!
My head is spinning!
post edited by Digital_Angel - 2019/02/19 09:09:26