Arduino Pro min can't load a sketch

I put the bootloader on the Arduino PRO mini using a Arduino UNO and the green light is blinking.

I used a uart bridge with my PC and I try to upload a sketch, I get :

-> avrdude-original: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

I went back to arduino and reburn the bootloader and here the output. It seam fine to me.

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Reading | ################################################## | 100% 0.01s
         Copyright (c) 2007-2009 Joerg Wunsch


avrdude: verifying ...
         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
avrdude: 1 bytes of lock verified
avrdude: reading input file "0x05"
avrdude: writing efuse (1 bytes):

Writing | ################################################## | 100% 0.00s

avrdude: 1 bytes of efuse written
avrdude: verifying efuse memory against 0x05:
avrdude: load data efuse data from input file 0x05:
avrdude: input file 0x05 contains 1 bytes
avrdude: reading on-chip efuse data:

Reading | ################################################## | 100% 0.02s

avrdude: verifying ...
avrdude: 1 bytes of efuse verified
avrdude: reading input file "0xDA"
avrdude: writing hfuse (1 bytes):

Writing | ################################################## | 100% -0.00s

avrdude: 1 bytes of hfuse written
avrdude: verifying hfuse memory against 0xDA:
avrdude: load data hfuse data from input file 0xDA:
avrdude: input file 0xDA contains 1 bytes
avrdude: reading on-chip hfuse data:

Reading | ################################################## | 100% 0.02s

avrdude: verifying ...
avrdude: 1 bytes of hfuse verified
avrdude: reading input file "0xFF"
avrdude: writing lfuse (1 bytes):

Writing | ################################################## | 100% 0.01s

avrdude: 1 bytes of lfuse written
avrdude: verifying lfuse memory against 0xFF:
avrdude: load data lfuse data from input file 0xFF:
avrdude: input file 0xFF contains 1 bytes
avrdude: reading on-chip lfuse data:

Reading | ################################################## | 100% 0.01s

avrdude: verifying ...
avrdude: 1 bytes of lfuse verified

avrdude done.  Thank you.


         Using Port                    : COM4
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel STK500 Version 1.x firmware
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e950f
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "C:\Program Files (x86)\Arduino\hardware\arduino\avr/bootloaders/atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex"
avrdude: writing flash (32652 bytes):

Writing | ################################################## | 100% 0.00s

avrdude: 32652 bytes of flash written
avrdude: verifying flash memory against C:\Program Files (x86)\Arduino\hardware\arduino\avr/bootloaders/atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex:
avrdude: load data flash data from input file C:\Program Files (x86)\Arduino\hardware\arduino\avr/bootloaders/atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex:
avrdude: input file C:\Program Files (x86)\Arduino\hardware\arduino\avr/bootloaders/atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex contains 32652 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% -0.00s

avrdude: verifying ...
avrdude: 32652 bytes of flash verified
avrdude: reading input file "0x0F"
avrdude: writing lock (1 bytes):

Writing | ################################################## | 100% 0.03s

avrdude: 1 bytes of lock written
avrdude: verifying lock memory against 0x0F:
avrdude: load data lock data from input file 0x0F:
avrdude: input file 0x0F contains 1 bytes
avrdude: reading on-chip lock data:

Reading | ################################################## | 100% 0.02s

avrdude: verifying ...
avrdude: 1 bytes of lock verified

avrdude done.  Thank you.

After, I tried to upload a sketch via the arduino with the command line. Here the output.

         Overriding Baud Rate          : 19200
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel STK500 Version 1.x firmware
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.03s

avrdude: Device signature = 0x1e950f
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as DA
avrdude: safemode: efuse reads as 5
avrdude: reading input file "C:\Users\Philippe\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.hex"
avrdude: writing flash (1030 bytes):

Writing | ################################################## | 100% 1.31s

avrdude: 1030 bytes of flash written
avrdude: verifying flash memory against C:\Users\Philippe\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.h
ex:
avrdude: load data flash data from input file C:\Users\Philippe\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink
.ino.hex:
avrdude: input file C:\Users\Philippe\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.hex contains 1030 byt
es
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.76s

avrdude: verifying ...
avrdude: 1030 bytes of flash verified

avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as DA
avrdude: safemode: efuse reads as 5
avrdude: safemode: Fuses OK (H:05, E:DA, L:FF)

avrdude done.  Thank you.

So I works with the arduino but not with the UART bridge. What I'm my missing.

Arduino UNO is connect to pro mini as below when I burn the bootloader --- on the chip it it "mega328p-au 1533" 11 to 11, 12 to 12, 13 to 13, 10 to rst, 3.3 to vcc and GND to GND.

When I try with UART bridge, it's connected this way: DST - RST, 3.3V - VCC, GND -GND, TX - RX, RX -TX.

Do you need a programmer all the time connected to the pro mini to program it, What I'm I missing???? Help!!!!!!!!

What is the UART bridge? These signals look odd: DST - RST Maybe disconnect that, and press Reset on the Promini when the IDE shows "Compiled xxx of 32xxx bytes". Can be easier to get the timing of the reset press if you select File:Preferences and turn on verbose outouts.

This is what I'm taking about, might call it the wraong way.

http://www.ebay.ca/itm/1PCS-MICRO-USB-to-UART-TTL-Module-6Pin-Serial-Converter-CP2102-STC-Replace-FT232-/221913599992?hash=item33ab14cff8:g:~GUAAOSw~bFWHlO-

And here the arduino i'm trying to get to cooperate.

http://www.amazon.ca/DIYmall-Leonardo-Atmega328P-ATmega128-Compatible/dp/B013DABYIA/ref=sr_1_1?ie=UTF8&qid=1455893976&sr=8-1&keywords=DIYmall+Leonardo+Pro+Micro+Pro+Mini+Atmega328P+3.3V+8M+Replace+ATmega128+Arduino+Compatible+Nano

I can’t open e-bay links (blocked). Does that unit have DTR at one of the headers, or available on a pin somewhere? Many have the chips Reset input pin brought out, which does no good at all.
If DTR is not brought out, you can cut the trace that brings Reset to a header and add a wire from the DTR pin on the chip to the header so it can be used to reset the 328P.
Looks like pin 28 if this is the same chip.

CP2102-9.pdf (270 KB)

You can get those elsewhere in CA for much less: http://www.dipmicro.com/store/PRO-MINI-328P

Do a search on ebay with this, first item.

1PCS MICRO USB to UART TTL Module 6Pin Serial Converter CP2102 STC Replace FT232

It's working... The GRN I thought it was Ground. Why they didn't call it RST or just plain RESET.... What dose it stand for GRN, green? Anyways.... So I reconnect everything the way you said and change to 57600 baud and "ET VOILA".... I'm sure I already try this but... I tried again on RPI with the usb and it's work... So in turn I tried with the UART port and what do you know it works... At first it didn't because I had my reset in the wrong GPIO but in the end it work.

The combination of wiring being wrong and baud rate being set to low cause all my problem. So here how it plug. In any case, baudrate at 57600

FTDI -> Arduino Pro Mini prog header

DTR -> GRN (Reset) RX -> TX TX -> RX 3V3 ->VCC GND->GND

This is how it's plug via the RPI

RPI -> Arduino Pro Mini prog header

GPIO 16 -> GRN (Reset) UART RX -> TX UART TX -> RX GPIO 1 3V3 ->VCC GPIO 39 GND->GND

Autoreset file for rpi:

#!/usr/bin/python

import RPi.GPIO as GPIO
import sys, os, re, time, fcntl

fd = sys.stdin.fileno()
fl = fcntl.fcntl(fd, fcntl.F_GETFL)
fcntl.fcntl(fd, fcntl.F_SETFL, fl | os.O_NONBLOCK)

GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
dtr = re.compile('.+TIOCM_DTR.+')
start = time.time()
pin = 16

def reset():
  GPIO.setup(pin, GPIO.OUT)
  GPIO.output(pin, GPIO.HIGH)
  time.sleep(0.34)
  GPIO.output(pin, GPIO.LOW)

def process():
  while True:
    try: 
      duration = time.time() - start
      input = sys.stdin.readline().strip()
      if input is None: # == "":
        input = sys.stdin.readline().strip()
      if dtr.match(input):
        reset()
        return
      elif duration > 5000:
        return
    except Exception as e:
      if hasattr(e, 'errno'):
   if e.errno != 11: # Ignore resource unavailable
         raise
      else:
        raise

process()
print "avrdude-original: Using autoreset DTR on GPIO Pin " +str(pin)
GPIO.cleanup()
exit