ATMEL PICKIT 4 ATMEGA328 MPLABX XC8

Поділитися
Вставка
  • Опубліковано 29 жов 2024

КОМЕНТАРІ • 16

  • @kasiselvamk
    @kasiselvamk 2 роки тому +2

    Can you please share pin connection between pickit 4 and atmega 32 in breadboard

  • @offakerala
    @offakerala 4 роки тому +1

    Hi Fernando! I tried the same with Atmega16A. I am getting the following errors while trying to program from MPLAB X

    Connecting to MPLAB PICkit 4...
    (With external power source)
    Currently loaded versions:
    Application version............1.8.146
    Tool pack version .............1.0.61
    Vdd at 0.04V, should be above 2.7V.
    The VDD voltage desired is out of range.
    Connection Failed.
    *****************************************************
    Connecting to MPLAB PICkit 4...
    ((With out external power)
    Currently loaded versions:
    Application version............1.8.146
    Tool pack version .............1.0.61
    Vdd at 0.04V, should be above 2.7V.
    The VDD voltage desired is out of range.
    Connection Failed.
    Any suggestions?

    • @fernandoalvarez8431
      @fernandoalvarez8431  4 роки тому

      Hello Roshan. About your previous question, it seems that the wiring is correct between Pickit4 and Atmega16A. And, about the VDD low voltage problem (assuming the mentioned wiring) it seems that Atmega16A is one of those voltage tricky microcontrollers. Googling "Atmega16A circuit" images, it can be found circuits in which some pins must be tied to ground or VCC for a proper operation: AVcc -> 5V, Aref -> 100nF (¿?) ceramic capacitor to ground, AGND -> GND. Hope it helps, have fun and share findings.

    • @offakerala
      @offakerala 4 роки тому +1

      @@fernandoalvarez8431 Thank you for your prompt reply. I just bought my PICKIT 4 and do most of my stuffs with PIC. I will do some more research on using AVR with PICKIT 4 and update if I get a positive result :).

    • @offakerala
      @offakerala 4 роки тому +1

      @@fernandoalvarez8431 I found two issues after which I could program ATmega16A from MPLAB X IDE/IPE like a charm. The VCC wire had an issue and was not showing proper continuity and the second one was the third party board development board which I was using for ATmega16 had a missing print connecting the PICKIT 4 VCC to the appropriate pin(pin 10). An external 5V had to be sourced in order to get it working. However microchip have not provided the option to blank check or verify the same in IPE, I hope they will add that in the next upgrade. Thanks again.

    • @fernandoalvarez8431
      @fernandoalvarez8431  4 роки тому

      @@offakerala Great news to know it works..!!! thanks for sharing success.

  • @orfloresti
    @orfloresti 4 роки тому

    I got this problem:
    Erasing...
    Unexpected status code when executing ispEnterProgMode, expected 0 but got -64 (Command has failed to execute on the tool)
    Programming did not complete.
    And now i can't read the atmega328p with a usbasp, any idea?. Thank you.

    • @fernandoalvarez8431
      @fernandoalvarez8431  4 роки тому +1

      Holy..............!!!. Never happened that to me, so, i can't give you a direct solution. Most worrying of all your description is the fact that "can't read the atmega328p with a usbasp". On the other hand, "expected 0 but got -64" means that the microcontroller is unrecognizable, even for bad wiring or damaged IC. So, here some keypoints that hopefully can help you: -Cabling: avoid doing all the wiring with fast plug arduino cables, most of the time those gives an unstable electric contact; - Power wiring: special attention must be paid in VCC levels and the connection for all the powering nodes in your circuit. And the most important of all, try to test same circuit with other well known fully functional atmega328p..... and get emotionally ready if some other microcontroller gave his life in the name of learning. Tie grounds - have fun.

    • @orfloresti
      @orfloresti 4 роки тому

      @@fernandoalvarez8431 Thank you. I think he gave his life.

    • @orfloresti
      @orfloresti 4 роки тому +1

      ​@@fernandoalvarez8431 I can use my Atmega328 again following this post:: www.instructables.com/id/AVR-HVPP-Configurator/

    • @fernandoalvarez8431
      @fernandoalvarez8431  4 роки тому

      @@orfloresti Gr8..!!! Nice job.....!!! Is an important finding that Atmega8L "... may not be able to read if it is locked and/or the fuse settings are wrong." and "High Voltage Parallel Programming (HVPP) can be used to rescue the chip.". Very valuable sharing, congrats.

    • @flukeelectronics8866
      @flukeelectronics8866 3 роки тому

      I found like this problem.
      Right now, I order Atmel ICE.

  • @jonathangarnica7768
    @jonathangarnica7768 4 роки тому

    hi the pickit4 must be connected to an external source?

    • @fernandoalvarez8431
      @fernandoalvarez8431  4 роки тому +1

      Hi Jonathan. Answer: Not necessarily. According to the MPLAB Pickit 4 In-Circuit DebuggerUser’s Guide, it can supply voltage from 1.2V to 5.5V. BUT, the datasheet also especifies that the maximun current to power the target circuit is 50 mA. So, be carefull about the amout of power drained from target circuit in order to avoid damages in the debugger. Thanks for asking.

    • @jonathangarnica7768
      @jonathangarnica7768 4 роки тому

      @@fernandoalvarez8431 thanks