Hi Mikroe Team,
do you have working USB example for PIC32MZ2048EFH064 MCU.
I have trouble and no idea at now
Regards,
Mario
PIC32MZ2048EFH064 USB
- jovana.medakovic
- mikroElektronika team
- Posts: 986
- Joined: 18 Dec 2018 10:36
Re: PIC32MZ2048EFH064 USB
Hi Marion,
In our compiler, on the path:
...\Mikroelektronika\mikroC PRO for PIC32\Examples\Internal MCU modules\P32MZ2048EFH144\USB
you can find USB example for P32MZ2048EFH144 MCU.
Kind regards,
Jovana
In our compiler, on the path:
...\Mikroelektronika\mikroC PRO for PIC32\Examples\Internal MCU modules\P32MZ2048EFH144\USB
you can find USB example for P32MZ2048EFH144 MCU.
Kind regards,
Jovana
Re: PIC32MZ2048EFH064 USB
Hi! I've just got the PIC32MZ Clicker, and I've tried to run USB code from examples you have mentioned, and so polling is working, but interrupt version does not? What's the catch? Thank you!
- jovana.medakovic
- mikroElektronika team
- Posts: 986
- Joined: 18 Dec 2018 10:36
Re: PIC32MZ2048EFH064 USB
Hello,
Can you tell me what you are using to program your PIC32MZ clicker? Are you using a PIC programmer or bootloader application?
Can you zip and send me both your projects?
Kind regards,
Jovana
Can you tell me what you are using to program your PIC32MZ clicker? Are you using a PIC programmer or bootloader application?
Can you zip and send me both your projects?
Kind regards,
Jovana
-
- Posts: 2
- Joined: 23 Sep 2015 11:33
Re: PIC32MZ2048EFH064 USB
Hello Jovana,
Sorry if this is an intrusion into this post, I would like to reply to this as I am using the bootloader with clikcer2 mz and clicker mz, both the MZ examples supplied stall my code.
I have a timer interrupt which flashes one onboard led, if i comment out the usb code within the main function the led's flash, however if uncommented the led's never get to flash, does the bootloader make a difference?
MikroC's USB example was used directly, I added a Timer1 interrupt which was coded by using the Timer application from Mikroe.
Kind Regards
David
Sorry if this is an intrusion into this post, I would like to reply to this as I am using the bootloader with clikcer2 mz and clicker mz, both the MZ examples supplied stall my code.
I have a timer interrupt which flashes one onboard led, if i comment out the usb code within the main function the led's flash, however if uncommented the led's never get to flash, does the bootloader make a difference?
MikroC's USB example was used directly, I added a Timer1 interrupt which was coded by using the Timer application from Mikroe.
Kind Regards
David
-
- Posts: 2
- Joined: 23 Sep 2015 11:33
Re: PIC32MZ2048EFH064 USB
Hello Jovana,
Sorry for taking long to reply.
I am using the Bootloader, I do not have a working usb interrupt example for clicker2 or clicker yet, I would like to use the CDC library provided by mikroe team but this requires USB interrupt to work.
To reply to David with regards to the code stalling during polling, don't try calling the USB_Polling_Proc(); // Call this routine periodically from inside a timer interrupt of callback from timer interrupt, it stalls my code when I do.
Thank you
David
Sorry for taking long to reply.
I am using the Bootloader, I do not have a working usb interrupt example for clicker2 or clicker yet, I would like to use the CDC library provided by mikroe team but this requires USB interrupt to work.
To reply to David with regards to the code stalling during polling, don't try calling the USB_Polling_Proc(); // Call this routine periodically from inside a timer interrupt of callback from timer interrupt, it stalls my code when I do.
Thank you
David