Go Down

Topic: Programming a Nano per ISP with "Mini"- settings (Read 293 times) previous topic - next topic

Sunburst275

Hey there,

I've been fighting with this for a while now, and wasn't able to find anything this specific on the interwebz.

Consider the following:

Using an Arduino UNO (AtMega328p):
I feed an analogue signal into my Arduino. According to this, a digital output shall be set or unset.

All things I do are working properly and as I want them to work, with the UNO.

But since the UNO is a bit big, I wanted to put all of this onto an Arduino Nano (clone).

I don't have an USB- Mini- Cable so I used the UNO as an ISP- Programmer.

Using an Arduino Nano:
While everything was uploaded correctly, the whole thing doesn't work anymore. No more recognizing the input- signal, nor setting the output(s). I tried it with an Nano- Clone, and the original. Both won't do what the UNO does. Basically, they do nothing.

Strange is, that I was only able to upload a sketch by using the "Arduino Mini"- Settings in the versions menu. The Nano- Settings won't work.

No I suppose it has something to do with the internal mapping and wiring of the different ports, but I'm not sure. How can something like that happen?
What could I try to fix this problem?

Thank you in advance

pert

Both won't do what the UNO does. Basically, they do nothing.
What happens if you upload File > Examples > 01.Basics > Blink?

Strange is, that I was only able to upload a sketch by using the "Arduino Mini"- Settings in the versions menu. The Nano- Settings won't work.
What exactly do you mean by "won't work"?

Sunburst275

#2
Jul 21, 2018, 09:30 pm Last Edit: Jul 21, 2018, 09:33 pm by Sunburst275
Quote
What happens if you upload File > Examples > 01.Basics > Blink?
The "L"- Onboard- LED starts to flash in the given intervals. I tried to change the intervals so it's easier to distinguish wether it's the program that flashes the led or the "default"- mode. Since the LED has been blinking in a certain interval already before my own sketch was uploaded.

So what it does now is:
It blinks, as specified in the 01. Basic > Blink - Program. But the Onboard LED also flashes in ~1sec.- intervals (in overlay with the blink- program).




Quote
What exactly do you mean by "won't work"?
Well, it need a long time (about 3 min.) to "upload" the sketch. It tells me, that its out of sync.

Here's the error message (using nano- settings):

Code: [Select]
avrdude: Version 6.3, compiled on Dec 16 2016 at 13:33:19
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "D:\Programme\02_Kreatoren\Programmieren\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM7
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x99
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x99
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x99
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x99
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x99
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x99
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x99
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x99
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x99
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x99

avrdude done.  Thank you.


So although it's supposed to be a nano, the upload only works with "mini"- settings...


Here's the copmpilers(?) message using mini- settings:

Code: [Select]
avrdude: Version 6.3, compiled on Dec 16 2016 at 13:33:19
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "D:\Programme\02_Kreatoren\Programmieren\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM7
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
         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 : Arduino
         Description     : Arduino
         Hardware Version: 3
         Firmware Version: 4.4
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "C:\Users\Timo\AppData\Local\Temp\arduino_build_951426/Klatschschalter_Eigen_V1-0.ino.hex"
avrdude: writing flash (3026 bytes):

Writing | ################################################## | 100% 0.47s

avrdude: 3026 bytes of flash written
avrdude: verifying flash memory against C:\Users\Timo\AppData\Local\Temp\arduino_build_951426/Klatschschalter_Eigen_V1-0.ino.hex:
avrdude: load data flash data from input file C:\Users\Timo\AppData\Local\Temp\arduino_build_951426/Klatschschalter_Eigen_V1-0.ino.hex:
avrdude: input file C:\Users\Timo\AppData\Local\Temp\arduino_build_951426/Klatschschalter_Eigen_V1-0.ino.hex contains 3026 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.36s

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

avrdude done.  Thank you.

hammy

Looks like you need the CH340 for your clone - these often use a different usb chip , with a driver not included with the Arduino software .

You are not actually uploading anything at the minute

pert

Looks like you need the CH340 for your clone - these often use a different usb chip , with a driver not included with the Arduino software .
No, that's not the problem. If it was the driver issue then they wouldn't be able to upload at all.


Well, it need a long time (about 3 min.) to "upload" the sketch. It tells me, that its out of sync.

Here's the error message (using nano- settings):
You need to select Tools > Board > Nano, then Tools > Processor > ATmega328P (Old Bootloader).

kprims

#5
Jul 25, 2018, 11:39 pm Last Edit: Jul 25, 2018, 11:45 pm by kprims
You need to select Tools > Board > Nano, then Tools > Processor > ATmega328P.
Which means you need Arduino Avr Boards  1.6.21

you could also select Arduino Uno as it uses Overriding Baud Rate   : 115200, the same as the Mini and the new Nano.

Notice, not the Pro Mini.

"I don't have an USB- Mini- Cable so I used the UNO as an ISP- Programmer."

Looks like you loaded the Uno bootloader to the Nano.



Go Up