Author Topic: programming ATMEGA328p using PICKIT3  (Read 12387 times)

0 Members and 1 Guest are viewing this topic.

Offline hussamaldeanTopic starter

  • Supporter
  • ****
  • Posts: 271
  • Country: iq
programming ATMEGA328p using PICKIT3
« on: October 28, 2019, 03:11:40 pm »
Dear all,
I am currently learning MPLAB X to program both PIC and ATMEGA. anyway is there any way to upload the code to ATMEGA328p since I searched the web to figure out but I came up empty handed
regards
 

Offline Howardlong

  • Super Contributor
  • ***
  • Posts: 5424
  • Country: gb
Re: programming ATMEGA328p using PICKIT3
« Reply #1 on: October 28, 2019, 04:15:43 pm »
Dear all,
I am currently learning MPLAB X to program both PIC and ATMEGA. anyway is there any way to upload the code to ATMEGA328p since I searched the web to figure out but I came up empty handed
regards

Pretty sure that Pickit3 is for PICs only, it was developed well before Atmel became part of Microchip.

I did have some luck recently with a PICkit4 programming an ATTiny from MPLAB X, but it was reasonably hard work getting everything to work. In the end I went back to using Atmel Studio and an Atmel ICE, there are fewer unknowns that way. If you have to fight too hard with your debugging tools, IME you're probably better off taking a different approach.
 

Offline hussamaldeanTopic starter

  • Supporter
  • ****
  • Posts: 271
  • Country: iq
Re: programming ATMEGA328p using PICKIT3
« Reply #2 on: October 28, 2019, 04:18:52 pm »
Dear all,
I am currently learning MPLAB X to program both PIC and ATMEGA. anyway is there any way to upload the code to ATMEGA328p since I searched the web to figure out but I came up empty handed
regards

Pretty sure that Pickit3 is for PICs only, it was developed well before Atmel became part of Microchip.

I did have some luck recently with a PICkit4 programming an ATTiny from MPLAB X, but it was reasonably hard work getting everything to work. In the end I went back to using Atmel Studio and an Atmel ICE, there are fewer unknowns that way. If you have to fight too hard with your debugging tools, IME you're probably better off taking a different approach.
seems I will use arduino as ICP with gui-avrdude 
 

Online iMo

  • Super Contributor
  • ***
  • Posts: 5570
  • Country: va
Re: programming ATMEGA328p using PICKIT3
« Reply #3 on: October 28, 2019, 04:29:07 pm »
This is a must for an atmel user :)

USBASP Programmer

Adapter (optional)
« Last Edit: October 28, 2019, 04:33:36 pm by imo »
Readers discretion is advised..
 

Offline hussamaldeanTopic starter

  • Supporter
  • ****
  • Posts: 271
  • Country: iq
Re: programming ATMEGA328p using PICKIT3
« Reply #4 on: October 29, 2019, 04:46:32 am »
This is a must for an atmel user :)

USBASP Programmer

Adapter (optional)
I have this but it doesn't work with MPLAB X  :-\ :-\ :-\ :-\
 

Online iMo

  • Super Contributor
  • ***
  • Posts: 5570
  • Country: va
Re: programming ATMEGA328p using PICKIT3
« Reply #5 on: October 29, 2019, 05:22:45 am »
FYI - GUI for your USBASP programmer

http://khazama.com/project/programmer/
« Last Edit: October 29, 2019, 05:24:23 am by imo »
Readers discretion is advised..
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 13216
Re: programming ATMEGA328p using PICKIT3
« Reply #6 on: October 29, 2019, 06:00:26 am »
IIRC AVRdude supports the PICkit 2, and if you use Microchip's  standalone PICkit 3 utility (see below), it will install PICkit 2 emulation firmware into your PICkit 3, which AFAIK is then good enough for AVRdude to see it. 

Give it a try and report back please.

PICkit3 Programmer Application and Scripting Tool v3.10

Don't forget to use the utility to revert back to MPLAB mode (disable PICkit 2 emulation), before trying to use your PICkit 3 with MPLAB again (or simply hold the button down when plugging in the USB to force bootloader mode so MPLAB reverts it for you).
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf