Did you do a "generate" in MHC? That could overwrite my files.
The sample project was created in HarmonyV202, maybe the newer tools messed up something.
I suggest you create a brand new project in HarmonyV206, and make all the MHC settings match my project (Careful of the mentioned "lost ADC settings").
Then use "Beyond Compare" to check your project against mine to catch my customizations and patches.
Today I'm using HarmonyV206, XC32v215, MPLabXv515 - and the ADCs are working with patches from above project.
See zip attached of [__RequiredModsFromMHCGeneratedCode_MTMcV00_Hv206.h]
I keep a file like this with source files in each project listing what I had to do to make it work (I suggest everyone do similar to support whoever inherits your work).
The file describes patches for ADC.
See also zip by dropsend [MHC_ADC_PIC32MZ_Notes20190314PR.zip], 2.6MB
(Crazy Microchip limits to 500K in 2019)
It has more details for the ADC patches on PIC32MZ with HarmonyV206.
Sorry, I'm so buried I really can't burn time putting this in nice format again.
post edited by Paul PortSol - 2019/03/30 12:29:44