Nano ATmega328: Difference between revisions

From wikiluntti
 
Line 25: Line 25:
Other notes
Other notes
* pushing the reset button just before uploading.
* pushing the reset button just before uploading.
* No bootloader, see https://www.instructables.com/How-To-Burn-a-Bootloader-to-Clone-Arduino-Nano-30/
* No bootloader, see  
** https://www.instructables.com/How-To-Burn-a-Bootloader-to-Clone-Arduino-Nano-30/ or more
** http://www.neufeld.newton.ks.us/electronics/?p=205 or
** https://false.ekta.is/2011/05/avrdude-5-10-arduino-mega-2560-command-line-uploading/ or
** https://arduino.stackexchange.com/questions/473/how-do-i-burn-the-bootloader/474#474
* To fix the "avrdude: stk500_getsync(): not in sync: resp=0x00" error: install FTDI Driver version 2.8.24.0. There is some the problems with the new driver v2.8.28.0. https://electronics.stackexchange.com/questions/30999/how-can-i-fix-an-avrdude-not-in-sync-error-when-programming-arduino-via-usb-to-s/75031#75031
* Try a new cable https://electronics.stackexchange.com/questions/84701/arduino-fio-avrdude-stk500-getsync-not-in-sync-resp-0x00
 
https://electronics.stackexchange.com/questions/94527/how-do-i-know-i-have-the-right-bootloader-installed-on-my-atmega328p-pu
* See the heartbeats (it's three quick blinks on the LED attached to pin 13, right after boot).
 


The device is following:
The device is following:

Latest revision as of 22:39, 12 March 2024

Introduction

Cheap Arduino Nano clone.

Problems while uploading a sketch.

Uploading on Linux

While using Arduino IDE (ver 1.8.19)

  • Board: Arduino Nano
  • Processor: ATMega328P, ATMega328p (old bootloader) or ATMega168. The old bootloader uses 75600 bps and the newer 115200bps.
  • Port /dev/ttyUSB0

gives the following error message

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x9e
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x66
...
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x18

This error is a communication problem. Not in sync error is described in https://support.arduino.cc/hc/en-us/articles/4401874331410--Error-avrdude-when-uploading#avrdude-stk500_recv-and-stk500_getsync

  1. Make sure you have selected the right board and port correct board
  2. If using the classic Nano, try selecting a different processor in Tools > Processor.
  3. A loopback test can be performed, which will rule out problems with the serial chip:

Other notes

https://electronics.stackexchange.com/questions/94527/how-do-i-know-i-have-the-right-bootloader-installed-on-my-atmega328p-pu

  • See the heartbeats (it's three quick blinks on the LED attached to pin 13, right after boot).


The device is following:

Bus 001 Device 007: ID 1a86:7523 QinHeng Electronics CH340 serial converter

Uploading on Windows