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

Author
JPortici
Super Member
  • Total Posts : 377
  • Reward points : 0
  • Joined: 2012/11/17 06:27:45
  • Location: Grappaland
  • Status: online
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

6 Replies Related Threads

    Jim Nickerson
    User 452
    • Total Posts : 5254
    • 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 : 7097
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: online
    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.
     

    Worst forum problems are now fixed, but the damn firewall is still there.
    #3
    JPortici
    Super Member
    • Total Posts : 377
    • Reward points : 0
    • Joined: 2012/11/17 06:27:45
    • Location: Grappaland
    • Status: online
    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 : 1644
    • Reward points : 0
    • Joined: 2008/12/09 10:19:08
    • Location: Didcot, United Kingdom
    • Status: online
    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 : 377
    • Reward points : 0
    • Joined: 2012/11/17 06:27:45
    • Location: Grappaland
    • Status: online
    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 : 16430
    • 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
    Jump to:
    © 2018 APG vNext Commercial Version 4.5