• AVR Freaks

Hot!Pickit 4 fetures somehow not described fully enywhere, halt on USB pic18

Author
szlovak
Starting Member
  • Total Posts : 84
  • Reward points : 0
  • Joined: 2005/02/10 13:40:28
  • Location: Łódź, Poland
  • Status: offline
2020/05/31 04:03:39 (permalink)
0

Pickit 4 fetures somehow not described fully enywhere, halt on USB pic18

Hello
Can maybe someone pinpoint where are all the features of Pickit 4 described in details? Pickit 4 manual is not enough. It's a great tool compared to Pickit 3, programming speed is significantly faster even for small programs, although everywhere on internet it was told it will be not that fast and you only gain speed on big programs. Also setting up breakpoint on a running code is just wonderful. Anyway I also see a great feature when USB PIC18 code is halted, but I cannot fully understand how it works. The strange thing is that when program is halted, USB device is still listed in Windows Device Manager. Communication with that device of course is paused, but what is strange device stays recognized. I can un-pause and let program running further and it continues to do so , like nothing special happened. So PIC18 is:
 
-not fully halted, otherwise windows would reject it since it cannot ask it for every polling action interval, registers and memory are read and buffered, PIC18 is actually running in that USB hardware part
-some other magic is happening here
 
On Pickit 3 behavior was easy to predict: halting of code showed all the registers, memory, variables, but all the USB devices implemented in that PIC 18 disappeared from device list and one unrecognized device was displayed.
post edited by szlovak - 2020/05/31 05:05:41
#1

2 Replies Related Threads

    Jerry Messina
    Super Member
    • Total Posts : 549
    • Reward points : 0
    • Joined: 2003/11/07 12:35:12
    • Status: offline
    Re: Pickit 4 fetures somehow not described fully enywhere, halt on USB pic18 2020/05/31 05:43:56 (permalink)
    5 (1)
    That behavior is usually controlled by the debugger "Freeze Peripherals" setting, at least it used to be.
     
    In the project properties, open PICkit 4 Options | Option Categories | Freeze Peripherals and check/uncheck the option.
     
    The way it used to work is with Freeze Peripherals on, when you halt the USB peripheral would halt also, and USB operations would stop. With Freeze Peripherals off you could halt the debugger and USB operation would still continue to function and you wouldn't get Windows into a tizzy.
    #2
    szlovak
    Starting Member
    • Total Posts : 84
    • Reward points : 0
    • Joined: 2005/02/10 13:40:28
    • Location: Łódź, Poland
    • Status: offline
    Re: Pickit 4 fetures somehow not described fully enywhere, halt on USB pic18 2020/05/31 10:20:53 (permalink)
    0
    Thank you, that was it. With PK4 was working both checked and unchecked, slightly different. On PK3 only with unchecked
    #3
    Jump to:
    © 2020 APG vNext Commercial Version 4.5