• AVR Freaks

Hot!5.35 IO view Vs Watches differencies, registers refresh problem when debugging b ICD4 ICD3

Author
_dex
Junior Member
  • Total Posts : 117
  • Reward points : 0
  • Joined: 2008/03/19 13:57:34
  • Location: 0
  • Status: offline
2020/05/15 02:17:03 (permalink)
5 (1)

5.35 IO view Vs Watches differencies, registers refresh problem when debugging b ICD4 ICD3

I am running a motor Project which uses QEI. I halt debugging by ICD4  {Pause button}. I check POS1CNTL register in I/O view and there is different value than in Watches Tab where is same POS1CNTL register (0x14C). Why they are not both the same?
 
MPLAB5.35; DSPIC33CK256MP508; MCC3.95.0; DFP 1.30.90; XC16 1.50; WIN 10x64Attachments are not available: Download requirements not met


There problem is not only related with a specific hardware register, even Program Counter PCL  is not refreshing if I am going step by step in debug mode. IO View or Watches SFR/PCL is not refreshing.
---
Same is with ICD3
post edited by _dex - 2020/05/21 00:04:21

Attachment(s)

Attachments are not available: Download requirements not met
#1

1 Reply Related Threads

    _dex
    Junior Member
    • Total Posts : 117
    • Reward points : 0
    • Joined: 2008/03/19 13:57:34
    • Location: 0
    • Status: offline
    Re: IO view Vs Watches differencies 2020/05/20 01:00:06 (permalink)
    0
    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.
    Connection Failed.
    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.
    ----Addendum
    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.
    ------Addendum 2
    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.
    ----
    Addendum 3
    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
    #2
    Jump to:
    © 2020 APG vNext Commercial Version 4.5