Is it possible to burn the hex file to a blank chip, generated by Arduino to burn using USBASP to that particular chip without using Arduino board ? Will the program work ?
My main goal is to use Atmega328P for low power. Should I select Arduino pro mini in the arduino IDE ?
Ater successful testing I will just burn the hex file to another 50 chips. thats why I dont want to use arduino board.
-
Can you please reword your question to be a little more clear?Robert Stiffler– Robert Stiffler2015年11月07日 06:22:04 +00:00Commented Nov 7, 2015 at 6:22
-
1I wan to burn the hex file which is generated by arduino ide. But dont want to use arduino board. Instead I want to burn by USBASP like regular avr program hex file burning.Maxmavin– Maxmavin2015年11月07日 06:46:03 +00:00Commented Nov 7, 2015 at 6:46
-
Note that the Arduino IDE supports several programmers directly, including the USBasp.Ignacio Vazquez-Abrams– Ignacio Vazquez-Abrams2015年11月07日 06:49:50 +00:00Commented Nov 7, 2015 at 6:49
2 Answers 2
Yes. The binary generated by the Arduino IDE in no way requires the presence of the Arduino bootloader in order to operate. Note that certain characteristics such as the MCU and clock rate are set at build time and cannot be changed in the final binary.
-
Do I have to do anything with fuse settings while burning ?Maxmavin– Maxmavin2015年11月07日 06:44:35 +00:00Commented Nov 7, 2015 at 6:44
-
The clock settings should match those expected by the code. The other fuses are up to whatever is required for the application.Ignacio Vazquez-Abrams– Ignacio Vazquez-Abrams2015年11月07日 06:45:42 +00:00Commented Nov 7, 2015 at 6:45
Yes that's no problem as long as you check your fuse bytes. And the connections to the 6pin ISP header. Make sure you study the avrdude command line and the manual for the particular Atmel chip.
I'm assuming the programmer you are using must use avrdude to be able to work.
I often use a nice GUI called "avrdudess" which is freeware. Great for avr beginners, and takes some of the effort out of writing directly into the command prompt.