Enabling USB stack interferes with Ethernet and USART
I am working on a custom board with a PIC32MZ2048EFM144, using MPLAB X v5.10, xc32 v1.44 and Harmony v2.6.
In our project we have already set up correctly the Ethernet driver, and USART driver with multiple instances for communication with a GPRS modem and thermal printer. Everything has been working properly for a long time now.
The project has a USB connection we use for programming purposes through a bootloader application, and also works perfectly.
The problems start when I set up the USB driver configuration in Harmony to use our application as a USB CDC device. After doing so, the printer stops responding, and GPRS and Ethernet communications start failing in various ways. Moreover, USB functionalities work fine only when receiving data, while sending data it only works for an apparently random amount of time/data; although I suspect this issue has a different origin, for which I will keep on doing some tests.
My investigation has been around interruptions and timers overlaping, yet I have not found anything.
I cannot think of anything else that could be causing this kind of problems, so any ideas or suggestions are more than welcome, even if it refers to interrumptions and timers, as I am not an expert in the subject and might be ignoring something.
Thank you in advance for taking the time to read through this, and for any help you might be able to provide.
I upload herewith a capture of the harmony configuration panel, in case you find it handy.