• AVR Freaks

Hot!PICKIT4 does not freeze peripherals

Page: 12 > Showing page 1 of 2
Author
GERSEI
New Member
  • Total Posts : 28
  • Reward points : 0
  • Joined: 2015/04/02 06:54:35
  • Location: 0
  • Status: offline
2019/04/12 10:03:27 (permalink)
0

PICKIT4 does not freeze peripherals

Hello all,
I'm using a PICKIT4 to debug an application running on a PIC18F47K40. Although I checked the "freeze peripherals" on halt option, the timers keep running when I pause or reach a breakpoint. Then I cannot use the step by step (step over F8) debugging function as the program will loop permanently in the interrupt routine. This function  works fine with a PICKIT3 on the same board with the same program.
Is there anything else to configure to achieve this ? I noticed that the pull-up / pull-down configuration on PGC / PGD lines is very sensitive to operate correctly or not the debugging or programming modes.
I'm using MPLAB X IDE v4.15 / XC8 V1.45; I cannot upgrade to X IDE V5 due to irreversible format changes as warned.
Thanks in advance for your advices,
cheers !
Gerard
 
#1

21 Replies Related Threads

    NKurzman
    A Guy on the Net
    • Total Posts : 17504
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: PICKIT4 does not freeze peripherals 2019/04/12 14:35:04 (permalink)
    0
    If it is Broken in 4.15, Then it is Broken for you if you can not upgrade.
    The Format change is in V5.XX  did you try Others in the V4.XX series?
    If this is a Debug Issue
     
    • Save You Project.
    • Make a Copy.
    • Try V5.XX
    • open your old project in V4.15, merge in the Fix, and move forward.
    #2
    Jerry Messina
    Super Member
    • Total Posts : 390
    • Reward points : 0
    • Joined: 2003/11/07 12:35:12
    • Status: offline
    Re: PICKIT4 does not freeze peripherals 2019/04/12 16:57:04 (permalink)
    0
    Also, there's a "Save As v4.xx Project" plugin.
    Once installed it adds 'Tools | Embedded | Save as MPLABX v4.xx Project' to the menus
    Never tried it.
     
    Of course, it would be nice if the PK4 froze peripherals.
     
    #3
    GERSEI
    New Member
    • Total Posts : 28
    • Reward points : 0
    • Joined: 2015/04/02 06:54:35
    • Location: 0
    • Status: offline
    Re: PICKIT4 does not freeze peripherals 2019/04/13 01:15:17 (permalink)
    0
    Thanks for your answer !
    I don't understand the last two propositions:
    1/ Try V5.XX : I did it but was stopped by the changes which makes the .c file incompatible for other PC's runing with 4.XX. I think this can be OK for a new project, and we'll do it next time, but for a shared project started in V4. , it seems quite messy. Anyway, by "Try V5.XX", do you mean "open the project in V5 and try PK4 freeze peripherals function" ?.
    2/ then, open again in V4 ? I don't understand "merge the fix"... Which fix ?
    Thanks a lot for your lights,
    Gerard
    #4
    GERSEI
    New Member
    • Total Posts : 28
    • Reward points : 0
    • Joined: 2015/04/02 06:54:35
    • Location: 0
    • Status: offline
    Re: PICKIT4 does not freeze peripherals 2019/04/13 01:25:12 (permalink)
    0
    Thanks Jerry,
    it seems it's worth to try this one, assuming that the PK4 would work normally then.
    Yourself and NKurzman seem both to suspect that the issue is due to the version ? Can't be a configuration trick somewhere ?
    We may also waste less time buying another PK3 which works fine !!
    Thanks again anyway,
    Gerard
     
     
     
    post edited by GERSEI - 2019/04/13 01:26:31
    #5
    Jerry Messina
    Super Member
    • Total Posts : 390
    • Reward points : 0
    • Joined: 2003/11/07 12:35:12
    • Status: offline
    Re: PICKIT4 does not freeze peripherals 2019/04/13 07:44:30 (permalink)
    0
    I did it but was stopped by the changes which makes the .c file incompatible

    I wasn't aware that there were any changes required to the C source files in switching to V5... I thought that it was just the project file format that changed between 4 and 5.
     
    #6
    NKurzman
    A Guy on the Net
    • Total Posts : 17504
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: PICKIT4 does not freeze peripherals 2019/04/13 09:16:17 (permalink)
    0
    I mean you have two copies of the project of in 4.xx one in 5.xx. After you find and fix your issues in the 5.xx one, you then make the same changes to the 4.xx one.
    This can be by just typing them in. Or with a file compare utility like “ BeyondCompare”
    #7
    GERSEI
    New Member
    • Total Posts : 28
    • Reward points : 0
    • Joined: 2015/04/02 06:54:35
    • Location: 0
    • Status: offline
    Re: PICKIT4 does not freeze peripherals 2019/04/13 10:22:10 (permalink)
    0
    Yes, the compiler repported a batch of syntax errors after the build; I must admit I gave up before anylising them.
    #8
    GERSEI
    New Member
    • Total Posts : 28
    • Reward points : 0
    • Joined: 2015/04/02 06:54:35
    • Location: 0
    • Status: offline
    Re: PICKIT4 does not freeze peripherals 2019/04/13 10:31:35 (permalink)
    0
    Ok, I see. But this is a quite long term project, probably another couple of months,  involving several PICs communicating together and the sources are developped on differents PC's.  So the versionning is an issue and has to be as simple as possible... This is why sometime the PK3 is used, and sometimes the new PK4 but I should have bought another PK3 instead.
    Thanks a lot anyway !
     
     
    #9
    qhb
    Superb Member
    • Total Posts : 9998
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: PICKIT4 does not freeze peripherals 2019/04/13 15:42:56 (permalink)
    0
    GERSEI
    Yes, the compiler repported a batch of syntax errors after the build; I must admit I gave up before anylising them.

    Was this still using XC8 1.45, or had you changed to v2.x at the same time?
     

    Nearly there...
    #10
    GERSEI
    New Member
    • Total Posts : 28
    • Reward points : 0
    • Joined: 2015/04/02 06:54:35
    • Location: 0
    • Status: offline
    Re: PICKIT4 does not freeze peripherals 2019/04/14 00:39:33 (permalink)
    0
    Yes qhb, I upgraded too XC8 to V2, and I understand with your question that this was probably the reason for the syntax errors... sad: sad
    #11
    Jerry Messina
    Super Member
    • Total Posts : 390
    • Reward points : 0
    • Joined: 2003/11/07 12:35:12
    • Status: offline
    Re: PICKIT4 does not freeze peripherals 2019/04/14 05:02:43 (permalink)
    4 (1)
    The 'freeze peripherals' option is a function of the on-chip debugging hardware and not the debug tool, so if it doesn't work with the PK4 then I would think that's an MPLABX issue.
     
    Try opening a support ticket and see what they say.
     
    #12
    NKurzman
    A Guy on the Net
    • Total Posts : 17504
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: PICKIT4 does not freeze peripherals 2019/04/14 08:53:55 (permalink)
    0
    Jerry
    He can’t open a support ticket on version V4.15 it is too old.

    Gersei
    You are concerned about not updating the IDE, but you update the compiler? If several
    People are working on the project, then you all must have the same compiler.
    There are major changes in the 2.xx compiler.
    #13
    GERSEI
    New Member
    • Total Posts : 28
    • Reward points : 0
    • Joined: 2015/04/02 06:54:35
    • Location: 0
    • Status: offline
    Re: PICKIT4 does not freeze peripherals 2019/04/14 09:42:48 (permalink)
    0
    @NKurzman
    I downgraded to X IDE V4.15 and XC8 V1.45 so that everybody is on the same toolchain. I did knew that it is a bad idea to change the versions in the middle of a development, unlesss you can't avoid it ... but forgot about it mr green: mr green.
    We'll go ahead like this till the end, and deal with the tools as they are.
     
    Thanks a lot to all for the help and your precious time !
    Cheers
    Gerard
    #14
    NKurzman
    A Guy on the Net
    • Total Posts : 17504
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: PICKIT4 does not freeze peripherals 2019/04/14 10:16:19 (permalink)
    0
    You can use XC8 V1.45 with V5.15 so you can see if it will work with Freeze perperials.
    I assume you are trying to debug a specific issue.
    #15
    GERSEI
    New Member
    • Total Posts : 28
    • Reward points : 0
    • Joined: 2015/04/02 06:54:35
    • Location: 0
    • Status: offline
    Re: PICKIT4 does not freeze peripherals 2019/04/15 01:55:40 (permalink)
    0
    @NKurzman,
    yes I will try this option, and also the trick proposed by Jerry : "Save As v4.xx Project" plugin; but you know how it is: when you are chasing bugs, not very keen for a  new experience ! ;-)
    But I'll do and let you know.
    Thanks !
     
     
    #16
    JPortici
    Super Member
    • Total Posts : 693
    • Reward points : 0
    • Joined: 2012/11/17 06:27:45
    • Location: Grappaland
    • Status: offline
    Re: PICKIT4 does not freeze peripherals 2019/04/15 04:40:09 (permalink)
    0
    GERSEI
    Thanks for your answer !
    I don't understand the last two propositions:
    1/ Try V5.XX : I did it but was stopped by the changes which makes the .c file incompatible for other PC's runing with 4.XX. I think this can be OK for a new project, and we'll do it next time, but for a shared project started in V4. , it seems quite messy. Anyway, by "Try V5.XX", do you mean "open the project in V5 and try PK4 freeze peripherals function" ?.
    2/ then, open again in V4 ? I don't understand "merge the fix"... Which fix ?
    Thanks a lot for your lights,
    Gerard




    1) whaaat? not really. At least, there is NO difference in the .c file, the difference is in the project xml file.
    Anyway, every version of MPLAB X is self contained and you can install any number of them and have any number of them open at any time.
     
    2) He suggested that you install 5.15, copy the project and open it in 5.15, fix the bugs and copy all the correction to the project in V4 (merge the files)
     
    Because with updates also come updates to the programmers and debuggers firmware, updates to the drivers and so on.
    #17
    qhb
    Superb Member
    • Total Posts : 9998
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: PICKIT4 does not freeze peripherals 2019/04/15 04:44:47 (permalink)
    0
    Post#11 reveals that the C file problems were due to upgrading to XC8 v2.x at the same time.

    Nearly there...
    #18
    qhb
    Superb Member
    • Total Posts : 9998
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: PICKIT4 does not freeze peripherals 2019/04/15 04:44:47 (permalink)
    0
    Post#11 reveals that the C file problems were due to upgrading to XC8 v2.x at the same time.

    Nearly there...
    #19
    DevMod1
    Administrator
    • Total Posts : 456
    • Reward points : 0
    • Joined: 2009/02/10 09:34:30
    • Location: 0
    • Status: offline
    Re: PICKIT4 does not freeze peripherals 2019/04/16 13:21:43 (permalink)
    0
    This was fixed in MPLAB X v4.20 so you should be able to get this fix and keep your old format.
     
     
    post edited by DevMod1 - 2019/04/16 13:24:05

    _____________________________

    Please read the forum posting guidelines. Do not double post, please help keep these forums professional and comments respectful.
    Please notify the moderators of problems/spam/trolls.
    #20
    Page: 12 > Showing page 1 of 2
    Jump to:
    © 2019 APG vNext Commercial Version 4.5