Update 1.8.19 to 2.0.3 ---> cannot upload to Mini Pro

Today I decided to upgrade the IDE from 1.8.19 to 2.0.3 and now I cannot upload code to the Mini Pro anymore. Uno works, but not the Mini Pro. Windows sees the CH340 USB to Serial converter.

Anything that's different with the new IDE?

Thanks,
Karl

Hi @kaha. In order to gather more information that might help us to troubleshoot your problem, I'm going to ask you to post the full output from an upload attempt when in verbose mode.


:exclamation: NOTE: These instructions will not solve the problem. They are only intended to gather more information which might provide a clue that eventually leads to a solution.


Please do this:

  1. Select File > Preferences from the Arduino IDE menus.
  2. Uncheck the box next to "Show verbose output during: compilation".
  3. Check the box next to "Show verbose output during: ☐ upload".
  4. Click the OK button.
  5. Attempt an upload, as you did before.
  6. After the upload fails, you'll see a button on the right side of the orange bar in Arduino IDE: Copy error messages. Click that button.
    This copies the full output to the clipboard.
  7. Open a forum reply here by clicking the Reply button.
  8. Click the </> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  9. Press Ctrl+V.
    This will paste the error output from the upload into the code block.
  10. Move the cursor outside of the code tags before you add any additional text to your reply.
  11. Click the Reply button to post the output.

Thank you for your assistance. Here is the output of the upload attempt.

Sketch uses 2892 bytes (20%) of program storage space. Maximum is 14336 bytes.
Global variables use 193 bytes (18%) of dynamic memory, leaving 831 bytes for local variables. Maximum is 1024 bytes.
"C:\Users\kaha\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\kaha\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega168 -carduino "-PCOM14" -b19200 -D "-Uflash:w:C:\Users\kaha\AppData\Local\Temp\arduino-sketch-629A25863F9C2613B9B1A8DEEE9E6CC0/MiniPro_1_Mhz.ino.hex:i"

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\kaha\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM14
         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=0x70
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x70
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x70
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x70
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x70
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x70
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x70
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x70
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x70
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x70

avrdude done.  Thank you.

Failed uploading: uploading error: exit status 1

Karl

I see you have selected one of the "ATmega168" options from the Tools > Processor menu in Arduino IDE. Are you certain your Pro Mini board has the ATmega168 microcontroller on it instead of the much more common ATmega328P?

You can check the writing on the largest black chip on the board to verify which microcontroller your board has.

Compare the product photos of the ATmega168 variant of the board:

against the ATmega328P variant:

You are right, it's a 328P. I was just cycling through all the options. Here is the output for the 3.3V 328P Mini Pro (the one I'm using):

Sketch uses 2892 bytes (9%) of program storage space. Maximum is 30720 bytes.
Global variables use 193 bytes (9%) of dynamic memory, leaving 1855 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\kaha\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\kaha\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM14" -b57600 -D "-Uflash:w:C:\Users\kaha\AppData\Local\Temp\arduino-sketch-629A25863F9C2613B9B1A8DEEE9E6CC0/MiniPro_1_Mhz.ino.hex:i"

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\kaha\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM14
         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=0x66
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x66
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x66
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x66
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x66
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x66
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x66
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x66
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x66
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x66

avrdude done.  Thank you.

Failed uploading: uploading error: exit status 1

I went back to 1.8.19, but now the Mini Pro does also not work with this version any more.

Here is a screenshot of how Windows sees the CH340:

Screenshot (743)

It works. I uninstalled the IDE, deleted the content of the folder .../AppData/Local/Arduino15 and then reinstalled. This works.

Going back to IDE 1.8.19 I also have to delete the folder Arduino15 before I install the IDE. It also works there then.

Thank you for your help!

Karl

It is is quite unexpected to me that deleting the folder would solve this specific error, but I'm glad it is working now. Thanks for taking the time to post an update with your solution!

Regards,
Per

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.