Introduction: Add a Custom Programmer on Arduino IDE
When I decided to look for a programmer, I never imagined that it would have trouble using it with the Arduino IDE ...
But I ... lol
I bought a programmador like this on Ebay.
http://www.ebay.com/itm/Mini-AVRISP-STK500-AVR-ISP-Programmer-USB-/320962006645?pt=BI_Electrical_Equipment_Tools&hash=item4abad38e75
But things started badly from the beginning ... lol
But I ... lol
I bought a programmador like this on Ebay.
http://www.ebay.com/itm/Mini-AVRISP-STK500-AVR-ISP-Programmer-USB-/320962006645?pt=BI_Electrical_Equipment_Tools&hash=item4abad38e75
But things started badly from the beginning ... lol
Step 1: Drivers
It started badly when the programmer connected to pc ...
The windows 7 x64 does not have drivers for it ...
After speaking with the seller he just got me the drivers for windows xp x32 ...
I decided to remove the cap from the programmer to see that used components.
Basically have 2 ic's ...
atmel atmega853L
PL-2303HX
The PL-2303HX is a type converter FTDI.
After a quick Google search I found which provided the manufacturer's driver for Windows 7 x64 ...
But the problems did not stop there ...
The windows 7 x64 does not have drivers for it ...
After speaking with the seller he just got me the drivers for windows xp x32 ...
I decided to remove the cap from the programmer to see that used components.
Basically have 2 ic's ...
atmel atmega853L
PL-2303HX
The PL-2303HX is a type converter FTDI.
After a quick Google search I found which provided the manufacturer's driver for Windows 7 x64 ...
But the problems did not stop there ...
Attachments
Step 2: Testing Programmer
After my brief happiness had problems in Arduino IDE ...
The arduino can not upload the sketch to the Atmega ...
Even after confirming the port and the type of programmer ...
To test the programmer decided to install AVR Studio ... Detected and that the programmer could set him ...
The arduino can not upload the sketch to the Atmega ...
Even after confirming the port and the type of programmer ...
To test the programmer decided to install AVR Studio ... Detected and that the programmer could set him ...
Step 3: Looking for the Type of Programmer ...
Once the programmer was good and well installed, the problem was in Arduino IDE ...
The programmer who chose the Arduino should not be 100% compatible with my programmer ...
Once the Arduino uses avrdude, I decided to go lina command do some tests ...
To access the command line, write "cmd" in "Run" in the "start".
After some testing, I discovered that the command
"avrdude -pm328p- cstk500v2- Pcom2"
worked very well ...
In other words, my programmer was after all a STK500v2 ...
Now that you know, let's add this to the list of programmer Arduino IDE ...
The programmer who chose the Arduino should not be 100% compatible with my programmer ...
Once the Arduino uses avrdude, I decided to go lina command do some tests ...
To access the command line, write "cmd" in "Run" in the "start".
After some testing, I discovered that the command
"avrdude -pm328p- cstk500v2- Pcom2"
worked very well ...
In other words, my programmer was after all a STK500v2 ...
Now that you know, let's add this to the list of programmer Arduino IDE ...
Step 4: Finally Adding a New Programmer to Arduino IDE
In my case the Arduino IDE this on:
"C: \ Users \ gpsvitor \ SkyDrive \ Arduino \ arduino-1.0.1"
The file with the information programmers this on:
"C: \ Users \ gpsvitor \ SkyDrive \ Arduino \ arduino-1.0.1 \ hardware \ arduino"
What is called "programmers.txt"
This file must be edited to add the informations we discovered ...
inside has ...
avrisp.name=AVR ISP
avrisp.communication=serial
avrisp.protocol=stk500v1
avrispmkii.name=AVRISP mkII
avrispmkii.communication=usb
avrispmkii.protocol=stk500v2
usbtinyisp.name=USBtinyISP
usbtinyisp.protocol=usbtiny
usbasp.name=USBasp
usbasp.communication=usb
usbasp.protocol=usbasp
parallel.name=Parallel Programmer
parallel.protocol=dapa
parallel.force=true
# parallel.delay=200
arduinoisp.name=Arduino as ISP
arduinoisp.communication=serial
arduinoisp.protocol=stk500v1
arduinoisp.speed=19200
Using one of the examples easily build synthesis for the programmer in question ...
In this case it is added:
avrispv2.name=AVR ISPv2
avrispv2.communication=serial
avrispv2.protocol=stk500v2
save before exiting.
"C: \ Users \ gpsvitor \ SkyDrive \ Arduino \ arduino-1.0.1"
The file with the information programmers this on:
"C: \ Users \ gpsvitor \ SkyDrive \ Arduino \ arduino-1.0.1 \ hardware \ arduino"
What is called "programmers.txt"
This file must be edited to add the informations we discovered ...
inside has ...
avrisp.name=AVR ISP
avrisp.communication=serial
avrisp.protocol=stk500v1
avrispmkii.name=AVRISP mkII
avrispmkii.communication=usb
avrispmkii.protocol=stk500v2
usbtinyisp.name=USBtinyISP
usbtinyisp.protocol=usbtiny
usbasp.name=USBasp
usbasp.communication=usb
usbasp.protocol=usbasp
parallel.name=Parallel Programmer
parallel.protocol=dapa
parallel.force=true
# parallel.delay=200
arduinoisp.name=Arduino as ISP
arduinoisp.communication=serial
arduinoisp.protocol=stk500v1
arduinoisp.speed=19200
Using one of the examples easily build synthesis for the programmer in question ...
In this case it is added:
avrispv2.name=AVR ISPv2
avrispv2.communication=serial
avrispv2.protocol=stk500v2
save before exiting.
Step 5: Testing :)
Confirm the port, and select our new programmer ...
And upload...
If all is well the upload will be a success ...
With these steps it is possible to add any kind of programmer avrdude supported by the arduino ...
Have fun
And upload...
If all is well the upload will be a success ...
With these steps it is possible to add any kind of programmer avrdude supported by the arduino ...
Have fun