logo elektroda
logo elektroda
X
logo elektroda

[Solved] Arduino Nano CH340 Clone: Uploading Issues on Windows 7 - Error & LED Status Explained

lighter1974 26778 19
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17483115
    lighter1974
    Level 2  
    Hello
    When it comes to programming, I am "fresh" like in Arduino programming. I am asking for help in the following matter:
    Arduino Nano (clone CH340), Windows 7 system, driver installed, after connecting the system sees Arduino as USB-SERIAL CH340 (COM12).
    When trying to load a program (basic with a flashing LED) to Arduino using Arduino 1.8.7 after a long time displays the message: Problem with uploading to the board. "

    LEDs on Arduino:
    - L flashes every 3 seconds,
    - POW - steady on (power supply, as I presume ;) )
    - EX - not lit,
    - RX will "wink" in a period of approx. 1 sec. incomplete brightness for a few seconds and then silence
    Below is a description of the errors
    Arduino: 1.8.7 (Windows 7), Board: "Arduino Nano, ATmega328P"

    The sketch uses 930 bytes (3%) of program memory. The maximum is 30720 bytes.
    Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. The maximum is 2048 bytes.
    avrdude: stk500_recv (): programmer is not responding
    avrdude: stk500_getsync () attempt 1 of 10: not in sync: resp = 0xb2
    avrdude: stk500_recv (): programmer is not responding
    avrdude: stk500_getsync () attempt 2 of 10: not in sync: resp = 0xb2
    avrdude: stk500_recv (): programmer is not responding
    avrdude: stk500_getsync () attempt 3 of 10: not in sync: resp = 0xb2
    avrdude: stk500_recv (): programmer is not responding
    avrdude: stk500_getsync () attempt 4 of 10: not in sync: resp = 0xb2
    avrdude: stk500_recv (): programmer is not responding
    avrdude: stk500_getsync () attempt 5 of 10: not in sync: resp = 0xb2
    avrdude: stk500_recv (): programmer is not responding
    avrdude: stk500_getsync () attempt 6 of 10: not in sync: resp = 0xb2
    avrdude: stk500_recv (): programmer is not responding
    avrdude: stk500_getsync () attempt 7 of 10: not in sync: resp = 0xb2
    avrdude: stk500_recv (): programmer is not responding
    avrdude: stk500_getsync () attempt 8 of 10: not in sync: resp = 0xb2
    avrdude: stk500_recv (): programmer is not responding
    avrdude: stk500_getsync () attempt 9 of 10: not in sync: resp = 0xb2
    avrdude: stk500_recv (): programmer is not responding
    avrdude: stk500_getsync () attempt 10 of 10: not in sync: resp = 0xb2
    Problem with uploading to the plate.


    The driver is current, the board and processor selected are correct, the AVRISP mkII programmer.
    Am I doing something wrong? Should I burn the bootloader beforehand?
    I tried with the second board and the cable replaced - it's the same.
    Thank you in advance for your help.
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • #2 17483209
    adamz74
    Level 32  
    Try pressing the reset button on the board for a moment.

    Pozdr!
  • #3 17483404
    lighter1974
    Level 2  
    Thanks, but nothing has changed; (
  • #4 17483506
    khoam
    Level 42  
    lighter1974 wrote:
    The driver is current, the board and processor selected are correct, the AVRISP mkII programmer.


    I uploaded to Nano via CH340 with the AVR ISP programmer set (without mkII).
  • ADVERTISEMENT
  • Helpful post
    #5 17483770
    Anonymous
    Level 1  
  • #6 17487367
    lighter1974
    Level 2  
    [Quote = "emarcus"]
    Are you sure you have the correct options selected: ' board and processor selected are valid '? .
    Note that Nano / Clone may have a different bootloader than the original NANO (it may be 'old' standard (2k) or newer 'Opti' (512 bits).
    Try alternatively the latter option, because from your description it is not known what you have.
    Below you have the way to choose the settings, or try to choose UNO instead of NANO before compiling and trying to enter.


    After changing the tile to OLD it helped.
    Thank you so much for the tips and help.
  • ADVERTISEMENT
  • #7 17488079
    Anonymous
    Level 1  
  • #9 17637026
    kaczakat
    Level 34  
    To upload a new bootloader to Arduino, the easiest way to use the clones of the USBASP programmer (troublesome in the Arduino IDE> 1.8.5, but there is information on the forum how to override AVRDUDE) or AVR ISP MKII. You can also make a programmer from another Arduino, description e.g. here: link and there are a lot of tutorials on Youtube, e.g .: link .
    Helpful post? Buy me a coffee.
  • #10 17637150
    Wlodek22
    Level 31  
    I have two identical nano clones and tried to upload via ISP, but I can't. Just like the first time you started without a variable on Old bootloader, the signature doesn't match. And no matter whether we choose the old or new bootloader, it always ends in error.
  • #11 17637291
    kaczakat
    Level 34  
    Either you have damaged equipment or you can't upload. Describe how you do it, assuming that I just landed on Earth and I have no idea how to do it, and you want to explain to me how, upload your error log (with full messages set in options), show the connection diagram you use, maybe someone will notice where do you make a mistake. As, for example, I used AVR LAB ++ with a programmer made on NANO, the only acceptable speed was 115200 (in the example sketch it is 19200). The AVRDUDE version from Arduino may also be a problem, you have to replace it with the one from AVR LAB ++ 2.4.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #12 17637684
    Wlodek22
    Level 31  
    In the end I bought a USBasp programmer and uploaded it the first time.

    Thank you for your willingness to help.
  • #14 17638384
    Wlodek22
    Level 31  
    He had one with the new bootloader, and I had both "left", probably because it was impossible to upload
  • #15 17638430
    kaczakat
    Level 34  
    The bootloder is invalid in this programming mode, the AVRDUDE version is important, the new one does not support Arduino ISP and USBASP, at least that was the case with me. After installing newer as USBASP does not work, replace AVR DUDE, I recommend the one with AVR LAB link , exe and configuration file in Arduino are in different directories. You can have more errors, the easiest way to invest is in USBASP. If you have an Arduino Micro, you can also do the MKII programmer described by me here: link , works in the new version of AVR DUDE without a problem and Atmel Studio 6 and 7.
    Helpful post? Buy me a coffee.
  • #16 17638738
    Wlodek22
    Level 31  
    I bought USBasp, connected the cables, in arduino I chose this programmer (USBasp) and it uploaded without problems. I did not install AVRDUDE and I see that I have avoided additional problems.
  • #17 17638743
    khoam
    Level 42  
    Wlodek22 wrote:
    I bought USBasp, connected the cables, in arduino I chose this programmer (USBasp) and it uploaded without problems. I did not install AVRDUDE and I see that I have avoided additional problems.

    What version of Arduino IDE do you have installed?
  • #18 17638900
    Wlodek22
    Level 31  
    1.8.8 (Windows Store 1.8.19.0)
    Installed from the Microsoft Store
  • #20 17647080
    Wlodek22
    Level 31  
    Not having a clue about C ++, here's what I was able to engineer for two days, where I spent one and a half trying to read the wrong modbus register.
    It is a two-phase energy monitor based on the Chinese PZEM-016 on rs485. Made in FLprog program.

Topic summary

The discussion revolves around issues faced while uploading programs to an Arduino Nano clone (CH340) on a Windows 7 system using Arduino IDE 1.8.7. The user encounters an upload error despite having the correct driver installed and the board recognized as USB-SERIAL CH340 (COM12). Various suggestions are provided, including pressing the reset button, ensuring the correct board and processor settings, and considering the bootloader type (old vs. new). Users recommend using an AVR ISP programmer or USBasp for uploading a new bootloader, which can resolve the upload issues. Ultimately, the user successfully uploads the program after changing the bootloader settings and using a USBasp programmer.
Summary generated by the language model.
ADVERTISEMENT