PIC32MZ2048EFH064 USB

General discussion on mikroC PRO for PIC32.
Post Reply
Author
Message
mkrumov
Posts: 16
Joined: 26 Jun 2011 22:27

PIC32MZ2048EFH064 USB

#1 Post by mkrumov » 19 May 2020 17:56

Hi Mikroe Team,

do you have working USB example for PIC32MZ2048EFH064 MCU.
I have trouble and no idea at now :)

Regards,
Mario

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: PIC32MZ2048EFH064 USB

#2 Post by jovana.medakovic » 20 May 2020 16:05

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

rusovcev
Posts: 2
Joined: 20 Jul 2020 23:09

Re: PIC32MZ2048EFH064 USB

#3 Post by rusovcev » 20 Jul 2020 23:23

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!

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: PIC32MZ2048EFH064 USB

#4 Post by jovana.medakovic » 24 Jul 2020 14:44

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

cfan@telkomsa.net
Posts: 2
Joined: 23 Sep 2015 11:33

Re: PIC32MZ2048EFH064 USB

#5 Post by cfan@telkomsa.net » 19 Aug 2021 08:53

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

cfan@telkomsa.net
Posts: 2
Joined: 23 Sep 2015 11:33

Re: PIC32MZ2048EFH064 USB

#6 Post by cfan@telkomsa.net » 26 Feb 2022 09:38

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

Post Reply

Return to “mikroC PRO for PIC32 General”