Pickit2 - AVR
Using PicKit2 Programmer to program Atmel's microcontrollers
Many hobbists are familiar with Arduino IDE, which can programm a series of microcontrollers. If you are using atmel chips, even blank or you managed to brick one like I did, with one ATmega32u4, then you realise that is the last one, and you need to test the firmware, or you have a new project with a brand new blank chip then we need to flash the propper bootloader / firmware on. In case of arduino kists, many flavors of mcu are used, all are under same spell, they need a programmer, but we have one, true not for the same familly of mcus, the question is :
Can we use PICKit2 to program atmel chips?
The answer is : Sure we can! Here is how:
The programmer we have, we need a peace of software to use the programmer and send the flash to the mcu, we will use avrdude, you can get it free of charge from the github repository avrdude:
The pin connections:
AVR - PICKit2 (pin): |
---|
RST - VPP/MCLR (1) |
VDD - VDD Target (2) -- optional if AVR self powered |
GND - GND (3) |
MISO - PGD (4) |
SCLK - PDC (5) |
MOSI - AUX (6) |
Some of command examples are shown below:
To write our firmware to the flash in AtMega 328p:
$ avrdude -c pickit2 -p m328p -v -V -U flash:w:"myfirmware.hex":a
To unbrick the ATmega32u4 :
$ avrdude -c pickit2 -p m32u4 -v -V -U flash:w:"path/to/hex/micropro.hex":a
To upload bootloader (e.g. to upload ARDUINO bootloader):
$ avrdude -c pickit2 -p m328p -v -V -U boot:w:"boot.hex":a
Ham Radio
A quite nice collection of schematics for DIY enthusiasts HAM
by VA3IUL
Solar-Terrestrial Data ( propagation )
We Love Radio Communications -- Digital | Analog --
Chat
Encrypted Voice chat
Use Official Mumble voice chat client
Message to sysop on BBS, in order to register and gain access to the voice chat
Who is Online
Voice Chat is offline
connect on our server using:
On undernet.org
Hostname: eu.undernet.org / us.undernet.orh / undernet.org
Plaintext: 6660-6669 7000
webchat: undernet
Type /Join #razecus.bbs
Thank you for using #razecus.bbs
#CService:: Official X Help Channel
#Userguide: For General IRC Questions
#Help: General IRC Questions / IRC Operator Assistance
#Usernames: Usernames Help Channel
#Undernet: User-Com Chat Channel
LME
Learn Basic Electronics
Start your journey in Electronics with a solid background Last Minute Engineers
Keyboard Test
Online Keyboard and Mouse test Razecus KMT
thanks to shawon9324
Contact
Please follow, subscribe, to our channels on Youtube