NG with atmega328 (not P) no upload with usb but ok with USBtinyISP

Hello guy...

Well,

i'm working with some atmega328 (not P) proc bougth on ebay (i've made mistake...)

in previous arduino ide version i was able to upload sketch on thiese 328 with a special mod...(signature) since i update my ide (after 1.5), i'm unable to upload sketch on the 328 directly with a simple usb cable, i had to use usbtiny programmer to do this. it work well but i would like to use my old arduino and a simple usb cable to do that.. because i was able before 1.5 (i think it's a good reason) :)

i add my board.txt..

menu.cpu=Processor

##############################################################

NG328.name=Arduino NG w/ 328

NG328.upload.tool=arduino:avrdude
NG328.upload.protocol=arduino

NG328.bootloader.tool=arduino:avrdude
NG328.bootloader.low_fuses=0xFF
NG328.bootloader.unlock_bits=0x3F
NG328.bootloader.lock_bits=0x0F

NG328.build.mcu=atmegang
NG328.build.board=arduino:AVR_NG
NG328.build.core=arduino:arduino
NG328.build.variant=arduino:standard

## Arduino NG or older w/ ATmega328
## --------------------------------
## nom affiché
NG328.menu.cpu.atmega328=328 (NOT P)

NG328.menu.cpu.atmega328.upload.maximum_size=30720
NG328.menu.cpu.atmega328.upload.maximum_data_size=2048
NG328.menu.cpu.atmega328.upload.speed=19200
##NG328.menu.cpu.atmega328.upload.speed=57600

NG328.menu.cpu.atmega328.bootloader.high_fuses=0xDA
NG328.menu.cpu.atmega328.bootloader.extended_fuses=0x05
NG328.menu.cpu.atmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex

NG328.menu.cpu.atmega328.build.mcu=atmega328
NG328.menu.cpu.atmega328.build.f_cpu=16000000L

and the console.

avrdude: Version 6.0.1, compiled on Apr 14 2015 at 16:30:25
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/Applications/Arduino processing/Arduino 1.6.5.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/ercho/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/cu.usbserial-00004004
         Using Programmer              : arduino
         Overriding Baud Rate          : 19200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x86
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x18
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xcf
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x98
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x1e
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x33
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x60
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xe0

avrdude done.  Thank you.

if i do not press reset, it try... (first attempt)

i reset the board and the 9 attempt arrive in an eyes blink... any idea?

best regards

éric

http://ericchoisy.fr

When you upload a sketch with a usbtiny, it erases the bootloader. Uploading via USB requires a bootloader. So you need to burn a bootloader on the 328.

If you have another Arduino, you can use it as a programmer and upgrade your NG to an Uno. You may like these 2 recent threads, I found them to be very interesting:

http://forum.arduino.cc/index.php?topic=365058.0

http://forum.arduino.cc/index.php?topic=364949.0

I believe the NG does not auto reset unless you have added the auto reset hardware modification to the board. So, you may need to press the reset button to upload.

https://www.arduino.cc/en/Hacking/NGAutoReset

I don't know the reason why sometimes pressing reset results in the remaining upload attempts going by very quickly.

I don't know if the problem you are having is really related to older version of the IDE vs. 1.5 and newer.

Thanks for the tricks - reburn a bootloader :) - use optiboot - had auto reset capacitor :D

I think it will resolve my prb.

Thanks again

Well, my arduino is not an NG. Design is older. With an url on it: "Http://arduino.berlios.de". I can't sold the capacitor r i don't know where...

When i reburn a bootloader (default for NG), even i reset the board, it does not upload with the sk500 error with resp=0x00...

Optiloader need a second arduino... Need more time to test... Regards