• AVR Freaks

Hot!REAL ICE and TRACE : for which PICs ?

Author
kelt
Starting Member
  • Total Posts : 34
  • Reward points : 0
  • Joined: 2012/11/29 05:28:29
  • Location: France
  • Status: offline
2018/10/28 09:17:08 (permalink)
0

REAL ICE and TRACE : for which PICs ?

Hello everybody
 
I plan to buy a REAL ICE for its TRACE function which will be a very usefull tool for me.
But I have read in some posts that TRACE is not available for some low end devices.
I use the 18F2685 and I plan to use the 18F26K22. Does TRACE work with these two PICs ?
More generally, is there somewhere a list of the PICs supported by TRACE ?
 
Thank you for tour help
kelt
 
 
 
#1

7 Replies Related Threads

    du00000001
    Just Some Member
    • Total Posts : 2677
    • Reward points : 0
    • Joined: 2016/05/03 13:52:42
    • Location: Germany
    • Status: offline
    Re: REAL ICE and TRACE : for which PICs ? 2018/10/28 09:36:36 (permalink)
    +1 (1)
    Follow the information given in the RealICE User's Guide ( http://ww1.microchip.com/...eviceDoc/50002085E.pdf ) - p. 23.

    PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
    #2
    kelt
    Starting Member
    • Total Posts : 34
    • Reward points : 0
    • Joined: 2012/11/29 05:28:29
    • Location: France
    • Status: offline
    Re: REAL ICE and TRACE : for which PICs ? 2018/10/28 10:55:14 (permalink)
    0
    Many thanks du000000001 for your rapid answer,
     
    It should work with my two PICs.
    The support of the TRACE function is not explicitly mentionned but one can certainly assume that a green box means that all the functions are supported.
     
    kelt
     
    #3
    Jim Nickerson
    User 452
    • Total Posts : 5940
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: offline
    Re: REAL ICE and TRACE : for which PICs ? 2018/10/28 11:12:47 (permalink)
    0
    I see this, no instruction trace...

     

    Attached Image(s)

    #4
    qhb
    Superb Member
    • Total Posts : 9998
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: REAL ICE and TRACE : for which PICs ? 2018/10/28 14:11:33 (permalink)
    0
    Exactly what "Trace" function do you want?
    According to this list:
    http://ww1.microchip.com/downloads/en/DeviceDoc/HWToolDebugFeatures.pdf
    your PIC can do "Native trace" and "Port trace", but it CANNOT do "Instruction trace".
     

    Nearly there...
    #5
    kelt
    Starting Member
    • Total Posts : 34
    • Reward points : 0
    • Joined: 2012/11/29 05:28:29
    • Location: France
    • Status: offline
    Re: REAL ICE and TRACE : for which PICs ? 2018/10/28 14:50:55 (permalink)
    0
    In fact the situation is a little more tricky.
     
    For legacy reasons (and absolute allergy to C ! mr green: mr green) I use and I will continue to use PICBasic Pro (+ ASM) which is really fine, easily readable and comprehensive but not totally compatible with MPLABX.
    So my IDE is MPLAB 8.92. From what I read in the help file of MPLAB 8 I can use three types of trace : Native, SPI and I/O Port. I need to read more explanations to really understand what it means.
    Instruction Trace is not mentionned in the MPLAB 8 help file.
     
    kelt
     
     
     
     
    #6
    qhb
    Superb Member
    • Total Posts : 9998
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: REAL ICE and TRACE : for which PICs ? 2018/10/28 15:05:18 (permalink)
    0
    Having read the link Jim gave, I can see that "Native, SPI and I/O Port." are just how the PIC communicates back to the PC, it says nothing about WHAT can be traced.
    The link I gave says that your PIC cannot trace instructions. It uses one of the breakpoint resources to allow the debugger to manually send info back to the PC while your code is running, so you can send variable values, or "markers" of where your code has got to.
    I have no idea how that would integrate with PICBASIC PRO though, it requires adding code to your program to do it
     
    post edited by qhb - 2018/10/28 15:30:40

    Nearly there...
    #7
    kelt
    Starting Member
    • Total Posts : 34
    • Reward points : 0
    • Joined: 2012/11/29 05:28:29
    • Location: France
    • Status: offline
    Re: REAL ICE and TRACE : for which PICs ? 2018/10/29 00:06:07 (permalink)
    0
    Ok. I did not catch the meaning of "Native, SPI and I/O Port." So it is much more clear for me. 
    Tracing variables would be great. For now, tracing instructions is not really necessary.
    According to PIC BASIC PRO gurus there is no difficulty to word with Real Ice, PBP and MPLAB 8, but not with MPLABX.
     
    I have ordered one Real Ice so let us see what happens.
     
    kelt
    #8
    Jump to:
    © 2019 APG vNext Commercial Version 4.5