This issue is related with MPLAB 5.35
or with ICD4 FPGA driver.
same is with ICD3!
I see in MPLAB 5.30 QEI registers are refreshed every single step correct. The difference is that 5.35 has XC 1.50 while 5.30 has XC1.41(should not be the reason) and they have different FPGA version for ICD4. The 5.30 has 01.00.00 while 5.35 has 01.00.11 as well both have different Application version.
When I switch to 5.30 I see MPLAB is forcing updating FPGA version and when to 5.35 vice versa.
They have cut in 5.35 the "firmware option" for ICD4. In this way you can not protect the project against bad firmware update. When you switch to 5.35 project is building 3-5 minutes until you get:
ICD 4 timeout out during the firmware download process.
Transmission on endpoint 2 failed
From my last discoveries it seems the problem is related strictly with ICD4 rev 5 which is not working correct on 5.35. Funny-strange it works ok on 5.30. I tried same project, with a second ICD4 (rev4) and bang it works. At least PC is refreshed step by step, no more tests.
Firmware emergency recovery solved the problem, however I still do not understand why same Issue was with ICD3 under 5.35. Never mind no time for more experiments.
No sorry it does not work again, what I did I tested after firmware recovery 5.35, fine, 5.30 fine, then back to 5.35 and again it does not refresh the registers.
I reported the issue, tried direct connection(not by USB display builtin HUB) and Microchip usb cable, btw my own is better, never mind. The same story is on the other board which use 30F4011 pic. Problems are only under IDE 5.35. I am using 5.30 and is fine.
post edited by _dex - 2020/05/27 10:51:20