• AVR Freaks

Hot!Idea for PicKit4: Use PIN7 and 8 as a Debugging UART

Author
JPortici
Super Member
  • Total Posts : 1114
  • Reward points : 0
  • Joined: 2012/11/17 06:27:45
  • Location: Grappaland
  • Status: offline
2018/10/10 07:00:33 (permalink)
4 (1)

Idea for PicKit4: Use PIN7 and 8 as a Debugging UART

ST Just announced the ST-LINK/V3
https://www.st.com/en/development-tools/stlink-v3set.html
Between support for SWD and JTAG, they also claim it's going to work also as an USB bridge:
"Multi-path bridge USB to SPI/UART/I2C/CAN/GPIOs specific features"
 
This is a nice idea to get inspiration from.. the 4th gen tools introduced the use of a 8-pin connector.
The datasheet already shows that pin 7 and 8 are used as JTAG trace (TDI and TMS) in MIPS JTAG and ICSP*, and SWDIO in SWD mode
 
If they could also be used as an UART (USB VCP) in ICSP mode it would be wonderful! Our current programming cable is already an adapter board that combine ICSP and an USB-UART chip together..
*why is it TDI and TMS in ICSP mode anyway?
**why not add that to the SNAP, too?
#1

13 Replies Related Threads

    Jim Nickerson
    User 452
    • Total Posts : 6715
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: offline
    Re: Idea for PicKit4: Use PIN7 and 8 as a Debugging UART 2018/10/10 07:08:57 (permalink)
    4 (1)
    Or open source the code so we could implement it.
    #2
    qhb
    Superb Member
    • Total Posts : 9999
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: Idea for PicKit4: Use PIN7 and 8 as a Debugging UART 2018/10/10 12:35:19 (permalink)
    0
    Jack_M
    ...
    Our current programming cable is already an adapter board that combine ICSP and an USB-UART chip together..

    Ditto. Been doing this for several years.
    Strongly agree that having it integrated into the PK4 would be very useful.
     

    Nearly there...
    #3
    JPortici
    Super Member
    • Total Posts : 1114
    • Reward points : 0
    • Joined: 2012/11/17 06:27:45
    • Location: Grappaland
    • Status: offline
    Re: Idea for PicKit4: Use PIN7 and 8 as a Debugging UART 2018/10/10 13:35:15 (permalink)
    0
    uhuh, in our cable we have
    -5V from PC (VBUS)
    -PIC VDD
    -GND
    -MCLR
    -PGC
    -PGD
    -RX
    -TX
    (These would fit in the 8 pin GEN4 connector, if PIN6 7 or 8 could be used as a 5V power)
    -Two Spares for other functions
    #4
    Antipodean
    Super Member
    • Total Posts : 1874
    • Reward points : 0
    • Joined: 2008/12/09 10:19:08
    • Location: Didcot, United Kingdom
    • Status: offline
    Re: Idea for PicKit4: Use PIN7 and 8 as a Debugging UART 2018/10/10 14:07:19 (permalink)
    0
    Jack_M
    ST Just announced the ST-LINK/V3
    https://www.st.com/en/development-tools/stlink-v3set.html
    Between support for SWD and JTAG, they also claim it's going to work also as an USB bridge:
    "Multi-path bridge USB to SPI/UART/I2C/CAN/GPIOs specific features"
     
    This is a nice idea to get inspiration from.. the 4th gen tools introduced the use of a 8-pin connector.
    The datasheet already shows that pin 7 and 8 are used as JTAG trace (TDI and TMS) in MIPS JTAG and ICSP*, and SWDIO in SWD mode
     
    If they could also be used as an UART (USB VCP) in ICSP mode it would be wonderful! Our current programming cable is already an adapter board that combine ICSP and an USB-UART chip together..
    *why is it TDI and TMS in ICSP mode anyway?
    **why not add that to the SNAP, too?




    Have a look at the Real Ice, it has a use for those two extra pins. I suspect the Snap and PK4 will be used in a similar manner once Microchip get the firmware sorted.
     

    Do not use my alias in your message body when replying, your message will disappear ...

    Alan
    #5
    JPortici
    Super Member
    • Total Posts : 1114
    • Reward points : 0
    • Joined: 2012/11/17 06:27:45
    • Location: Grappaland
    • Status: offline
    Re: Idea for PicKit4: Use PIN7 and 8 as a Debugging UART 2018/10/10 22:44:16 (permalink)
    4 (1)
    Interesting, the REAL ICE is listed as Mature and farnell has it at 300 euros.
    Anyway, there is a table in the PK4 datasheet that list the different uses for PIN 7 and 8 depending on modes, i was merely suggesting a new one that could be equally useful IMHO.
    #6
    NKurzman
    A Guy on the Net
    • Total Posts : 18850
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: Idea for PicKit4: Use PIN7 and 8 as a Debugging UART 2018/10/10 22:49:20 (permalink)
    5 (1)
    They just came out with PICKit4 and ICD4. I would assume the Real ICE is next.
    #7
    JPortici
    Super Member
    • Total Posts : 1114
    • Reward points : 0
    • Joined: 2012/11/17 06:27:45
    • Location: Grappaland
    • Status: offline
    Re: Idea for PicKit4: Use PIN7 and 8 as a Debugging UART 2020/07/07 02:53:57 (permalink)
    0
    One year and a half later.
    apparently PKOB4 has implemented ICSP+CDC
    I sincerely hope that there are plans to add the functionality also to the rest of the 4th gen tools
    Is there a roadmap for this?
    I would like to upgrade the programming port on new projects and i would like to know which pin will be TX and which will be RX, at least. Should i assume it will be the same as in the PKOB4?
    #8
    picy2620
    Super Member
    • Total Posts : 138
    • Reward points : 0
    • Joined: 2009/11/13 08:12:47
    • Location: Germany
    • Status: offline
    Re: Idea for PicKit4: Use PIN7 and 8 as a Debugging UART 2020/07/07 03:18:15 (permalink)
    0
    for PIN Connections see here:
    https://microchipdeveloper.com/pickit4:interface-pinouts
     
    7 is TX
    8 is RX
     
    At the moment, the UART is only available for Atmel devices (see readme file which comes with the latest MPLABX). I am not sure if it gets added to PIC devices in future, too.
     
     
    #9
    MBedder
    Circuit breaker
    • Total Posts : 6900
    • Reward points : 0
    • Joined: 2008/05/30 11:24:01
    • Location: Zelenograd, Russia
    • Status: offline
    Re: Idea for PicKit4: Use PIN7 and 8 as a Debugging UART 2020/07/07 03:19:28 (permalink)
    5 (1)
    Shame on all of them. PK2 has had it implemented since mid-2000s and I happily used it all the time.
    #10
    JPortici
    Super Member
    • Total Posts : 1114
    • Reward points : 0
    • Joined: 2012/11/17 06:27:45
    • Location: Grappaland
    • Status: offline
    Re: Idea for PicKit4: Use PIN7 and 8 as a Debugging UART 2020/07/07 04:18:06 (permalink)
    0
    picy2620I am not sure if it gets added to PIC devices in future, too.



    I don't see why not. PKOB4 has it. PIC32MZ EF Curiosity 2.0 has PKOB4 that does ICSP + CDC
    #11
    picy2620
    Super Member
    • Total Posts : 138
    • Reward points : 0
    • Joined: 2009/11/13 08:12:47
    • Location: Germany
    • Status: offline
    Re: Idea for PicKit4: Use PIN7 and 8 as a Debugging UART 2020/07/07 04:41:31 (permalink)
    0
    I see why:LoL: LoL
     
    PicKit4 was introduced in February 2018 if I remember correctly. Thats over two years ago now. The
    feature is not implemented yet and I have seen no statement saying that it will be implemented ever.
     
    Programmer-to-go function and AVR support were also not implemented in the beginning but were advertised.
    post edited by picy2620 - 2020/07/07 04:44:43
    #12
    picy2620
    Super Member
    • Total Posts : 138
    • Reward points : 0
    • Joined: 2009/11/13 08:12:47
    • Location: Germany
    • Status: offline
    Re: Idea for PicKit4: Use PIN7 and 8 as a Debugging UART 2020/07/07 04:56:00 (permalink)
    0
    I guess they have following priorities for PICKIT X
    1. part support (took years)
    2. advertised features (took more years)
    3. nice to have things (never)
    The time they reach priority 3, PicKit5 is already released and they work on priority 1 again. mr green: mr green
    #13
    Gort2015
    Klaatu Barada Nikto
    • Total Posts : 3984
    • Reward points : 0
    • Joined: 2015/04/30 10:49:57
    • Location: 0
    • Status: offline
    Re: Idea for PicKit4: Use PIN7 and 8 as a Debugging UART 2020/07/07 05:49:17 (permalink)
    1 (3)
    There's a PK5 ?
     
    The man with the beard said that PK3 was slow at the beginning.
    https://www.youtube.com/watch?v=3YUvlrVlNao

    MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
    https://www.youtube.com/watch?v=Iu1qa8N2ID0
    + ST:Continues, "What Ships are Made for", Q's back.
    #14
    Jump to:
    © 2020 APG vNext Commercial Version 4.5