• AVR Freaks

Hot!PICKIT4 programmer for attiny402(UPDI)

Author
Jeet_Panchal
New Member
  • Total Posts : 19
  • Reward points : 0
  • Joined: 2018/07/25 23:30:49
  • Location: 0
  • Status: offline
2018/10/03 04:09:04 (permalink)
0

PICKIT4 programmer for attiny402(UPDI)

Can PICKIT4 programmer be used for programming and debugging ATTINY402 as ATTINY402 uses UPDI for programming and debugging?
If so, in UPDI programming it is mentioned that 12 V supply is needed to program the UPDI. So how is 12V generated in pickit4.
#1

11 Replies Related Threads

    DevMod1
    Administrator
    • Total Posts : 456
    • Reward points : 0
    • Joined: 2009/02/10 09:34:30
    • Location: 0
    • Status: offline
    Re: PICKIT4 programmer for attiny402(UPDI) 2018/10/03 08:54:28 (permalink)
    0
    Yes, this part is supported in PICkit 4, the 12V is only required to get the part out of a certain state, and the PICkit 4 can generate that voltage internally.
     
     

    _____________________________

    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.
    #2
    NKurzman
    A Guy on the Net
    • Total Posts : 17512
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: PICKIT4 programmer for attiny402(UPDI) 2018/10/03 10:06:50 (permalink)
    0
    So how is 12V generated in pickit4?  Most likely a Boost Mode switching regulator.
    #3
    qhb
    Superb Member
    • Total Posts : 9998
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: PICKIT4 programmer for attiny402(UPDI) 2018/10/03 13:34:24 (permalink)
    0
    NKurzman
    Most likely a Boost Mode switching regulator.

    +1
    Such as every USB powered PIC programmer has contained for years...
     

    Nearly there...
    #4
    dilo83
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2014/07/08 08:01:24
    • Location: 0
    • Status: offline
    Re: PICKIT4 programmer for attiny402(UPDI) 2019/06/11 12:45:37 (permalink)
    0
    I bricked my ATTiny816 by resetting UPDI fuse, so I need the 12V pulse for resetting. I used the Atmel ICE for programming, but this cannot generate the 12V pulse (Datasheet P. 41). So I read this thread and bought an PICkit4, but I'm not able to reprogram the fuse. I tried Atmel Studio 7 and MPLAB IPE, but in MPLAB IPE I didn't found the checkbox to enable 12V programming voltage. And wasn't the 12V generated on /MCLR pin instead of PGD pin?
    #5
    DevMod1
    Administrator
    • Total Posts : 456
    • Reward points : 0
    • Joined: 2009/02/10 09:34:30
    • Location: 0
    • Status: offline
    Re: PICKIT4 programmer for attiny402(UPDI) 2019/06/12 10:35:46 (permalink)
    0
    Sorry, I was mistaken about PICKit 4 being able to do this.  This feature is not yet supported, but will be in the MPLAB X v5.25 release due out late July.
     
    Sorry for the confusion.
     

    _____________________________

    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.
    #6
    Ankit.Patel
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2019/06/13 14:23:44
    • Location: 0
    • Status: offline
    Re: PICKIT4 programmer for attiny402(UPDI) 2019/06/14 15:06:40 (permalink)
    0
    Does that mean you can't program ATTiny 402 with the PicKit 4 just yet? I built some ATTiny 402 boards, & tried programming them with the PicKit 4. I've been having trouble, & keep getting "PDI Physical Timed Out (25)". I've used both MPLAB & Studio 7, but keep getting that "PDI Physical Timed Out (25)" error. I'm fairly new to AVR programming, & I wasn't sure if the errors "Physical Timed Out (25)" error was related to the issues mentioned above (UPDI - 12V)?
    #7
    judd
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2019/04/15 22:30:22
    • Location: 0
    • Status: offline
    Re: PICKIT4 programmer for attiny402(UPDI) 2019/06/17 23:16:01 (permalink)
    0
    If you leave the RSTPINCFG bits in SYSCFG0 fuse set to UPDI then you will not need 12V and PK4 will work.
    If you get timeout errors, perhaps you have hardware issues?
    #8
    Ankit.Patel
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2019/06/13 14:23:44
    • Location: 0
    • Status: offline
    Re: PICKIT4 programmer for attiny402(UPDI) 2019/06/18 06:04:17 (permalink)
    0
    I think I have the fuses setup correctly. Below is the code I have written. I believe it matches what you stated above, but let me know if something looks incorrect. Thanks in advance
     
    FUSES = {
    .OSCCFG = FREQSEL_20MHZ_gc,
    .SYSCFG0 = CRCSRC_NOCRC_gc | RSTPINCFG_UPDI_gc,
    .SYSCFG1 = SUT_64MS_gc,
    .APPEND = 0X00, //Application data selection disabled
    .BOOTEND = 0X02 // Boot selection size = 512 bytes
    };
    #9
    judd
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2019/04/15 22:30:22
    • Location: 0
    • Status: offline
    Re: PICKIT4 programmer for attiny402(UPDI) 2019/06/18 08:56:05 (permalink)
    0
    I would advise explicitly setting all fields in the struct since unspecified ones will be 0x00.
    You can use the _DEFAULT in the headers, for example:
    .WTDCFG = FUSE_WDTCFG_DEFAULT,
    .BODCFG = FUSE_BODCFG_DEFAULT,
     
    Still, I am not sure that solves your problem, since many defaults are 0 :/
     
    #10
    Ankit.Patel
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2019/06/13 14:23:44
    • Location: 0
    • Status: offline
    Re: PICKIT4 programmer for attiny402(UPDI) 2019/06/19 10:20:19 (permalink)
    4 (1)
    Thanks Judd,
     
    I can now program the ATTiny 402 boards with the PicKit 4. You were right, the problem was a hardware issue & wasn't related to needing 12V. I should have doubled checked my connections on the SOIC clip. 
     
    #11
    Hexum064
    New Member
    • Total Posts : 1
    • Reward points : 0
    • Joined: 2017/06/19 23:23:04
    • Location: 0
    • Status: offline
    Re: PICKIT4 programmer for attiny402(UPDI) 2019/07/05 11:46:56 (permalink)
    0
    Is there a pre-release anywhere that will allow the 12v programming to work? I am working on a project using the ATTiny412 that needs to use the Reset/PDI pin as the CS for SPI (the other two free pins are in use).
    #12
    Jump to:
    © 2019 APG vNext Commercial Version 4.5