Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have designed a usb pc oscilloscope using a PIC32MX microcontroller.

The C# pc software is from www.waitingforfriday.com

This works great and has no problems.

I have now ported this across to a PIC32MZ microcontroller.

Again this works great.

However, if I exit the pc program 5 seconds later the USB bus goes into suspend.

Then if I go back into the pc program the usb bus is frozen in suspend mode.

If I go back in before 5 seconds are up then it runs fine.

I have disabled power down and selective suspend on my pc but the problem persists.

Is there a C# command I can use to take the USB bus out of suspend ?

What I have tried:

Tracing the pic code it seems stuck in suspend
Posted
Updated 16-Feb-19 17:26pm
Comments
nigel wright 17-Feb-19 23:05pm    
Someone on a another forum suggested using 2.04 version of MPLAB Harmony instead of latest 2.06 version. Program works great now.

1 solution

You're going to have to contact the people you got that code from to get an answer on this. They are the only ones that are going to know what they did with the USB bus and how they did it in the code. Better yet, they're also going to be the ones with the rationale behind what they did.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900