|
473
|
Using Arduino / Microcontrollers / Re: Upload sketch only once!
|
on: March 09, 2011, 06:10:49 pm
|
|
There has been issues with the drivers on mac, try this :
1) Go to System Preferences -> Network 2) If it asks you to add the Arduino (modem device), say cancel 3) Remove the Arduino device from the list if its there 4) Try uploading a sketch!
I only have windows xp - so can't comment if this realy works.
Drew
|
|
|
|
|
476
|
Using Arduino / Microcontrollers / Re: Upload sketch only once!
|
on: March 09, 2011, 01:54:10 pm
|
|
Sounds like a lock issue - after uploading the bootloader, the lock but should be set to 0x0F - maybe an issue with the boards.txt file. Can you post its contents here and we'll havea look at it.
Drew.
|
|
|
|
|
478
|
Using Arduino / Microcontrollers / BitBang Scripts.
|
on: March 08, 2011, 05:23:58 pm
|
|
I have a high turnover of ATMega328 & 168 chips for arduino and different projects. Needing a cheaper way to get these, I buy them in 100's from my suppliers and program the bootloaders myself.
If anyone is interested - here are the scripts i use (Bitbanging is covered elsewhere in the forums).
avrdude -p m328p -c diecimila -B 4800 -P ft0 -e -U lock:w:0x3f:m -U lfuse:w:0xff:m -U hfuse:w:0xda:m -U efuse:w:0x05:m
avrdude -p m328p -c diecimila -P ft0 -D -U flash:w:328boot.hex:i
avrdude -p m328p -c diecimila -P ft0 -U lock:w:0x0f:m
put the above 3 lines in a bat file (mine is 328boot.bat) in the avrdude directory, it will program a virgin atmega328 to an arduino chip in about 20 seconds, you also have to copy the file ATmegaBOOT_168_atmega328.hex to the same directory and rename it 328boot.hex
for the atmega168 :
avrdude -p m168 -c diecimila -B 4800 -P ft0 -e -U lock:w:0x3f:m -U lfuse:w:0xff:m -U hfuse:w:0xdd:m -U efuse:w:0x00:m
avrdude -p m168 -c diecimila -P ft0 -D -U flash:w:168boot.hex:i
avrdude -p m168 -c diecimila -P ft0 -U lock:w:0x0f:m
put the above 3 lines in a bat file (mine is 168boot.bat) in the avrdude directory, it will program a virgin atmega168 to an arduino chip in about 20 seconds, you also have to copy the file ATmegaBOOT_168_diecimila.hex to the same directory and rename it 168boot.hex
If you want to program a final image to the chip, replace ***boot.hex with your own .hex filename.
Hope this helps
Drew.
|
|
|
|
|
479
|
Using Arduino / Microcontrollers / Re: Bitbang & upload to standalone, without removing 328.
|
on: February 23, 2011, 06:44:44 am
|
Thanks for the reply Nishant, The socket on the arduino is a DIN socket, a ZIF socket is the one with a lever to release the chip. I have programmed dozens of chips with the arduino, and ruined 3 - not many, but on a limited budget, it's more than enough - the programing board was made from my bitza box, so cost me nothing  .
|
|
|
|
|
480
|
Using Arduino / Microcontrollers / Bitbang & upload to standalone, without removing 328.
|
on: February 22, 2011, 01:20:56 pm
|
|
I have just had to program 10 of these chips using my duemilenove. I built a programming board with a ZIF socket, 16Mhz resinator, a 10k resistor (to keep the reset line high), and a 10nf smoothing cap on the power lines. I also have an LED with resistor, and three pin headers, one 2 way for power from the duemilenove, one 2 way for Tx and Rx lines, and finaly a 4 way for SPI programming, and a reset button.
I Bitbang the boot loader from the 4 way pin header on the duemilenove using AVRDUDE-GUI (as covered in the forums). But wanted to use the duemilenove as a USB to SERIAL bridge for programming the chips with sketches. So hooked up digital pins 0 and 1 to the standalone pins 2 and 3 (LEG numbers, NOT the digital pin numbers).
Just to try I held down the reset button on the duemilenove, hit upload sketch, waited until the project was built, and tapped the reset button on the standalone. BINGO - sketch uploaded.
No more bent pins swapping chips - Virtualy no ware on the chips - and no damage to my arduino.
|
|
|
|
|