Yet another inability to upload to a Pro Mini

I realize this issue comes up periodically. I have a situation that statistically is impossible but yet is happening.
My test program is "blink without delay" with nothing but the programming cable connected to the Pro Mini boards.

I have a windows 11 pc with IDE 2.3.6, I've been working with a SAM21D and needed to switch back to a Pro Mini. The below test conditions have worked many many many times on the Win11 pc but with older IDE's (but wait, see below)

I connect one of my many Pro Mini's and start to download and received the Arduino equivalent of the Blue Screen to Death namely the "cannot sync..."
I am using a DSD FTDI programmer I'll call NEW. Has a genuine FTDI chip (based on the FTDI test program. My FTDI_old is a known chip clone.

OK so I try a different programmer, FTDI_old, same problem.... then:

Win11 - IDE 2.3.6 - FTDI_new - PROMini#1 - fail sync
Win11 - IDE 2.3.6 - FTDI_old - PROMini#1 - fail sync

Win11 - IDE 2.3.6 - FTDI_new - PROMini#2 - fail sync
Win11 - IDE 2.3.6 - FTDI_old - PROMini#2 - fail sync

Win11 - IDE 2.3.6 - FTDI_new - PROMini#3 (3V) - fail sync
Win11 - IDE 2.3.6 - FTDI_old - PROMini#3 (3V) - fail sync

Then I open up my old laptop with Win7 and IDE 1.8.9.

With the same tests as above I get the same results.

In all cases the Device Manager says the device is working properly.

Any suggestions will be happily received, I'm far from a noob but have run out of ideas.

  • If you have an Arduino UNO, try to upload BWD, this should once again give you some confidence.
    If the UNO fails, sit down with a warm glass of Frangelico. :face_with_spiral_eyes:

  • Have you done loop back testing ?

  • Have you tried a different USB port on the desktop ?

  • Confirm 5v on the Pro Mini.

Hi @JohnRob. Is the built-in LED on the Pro Mini boards blinking very rapidly while power is supplied to the board?

One blinks about 1/2 on and 1/2 sec off, the other has no LED on, the third blinks fast for a second or so the dim then off.

What are you thinking?

Two of then have optiboot bootloaders the third is stock.

My next step would be to take a sealed pro mini and try that.

I was thinking about this:

OK, then that disproves my hypothesis. The "soft bricking" caused by the board going into an endless reset loop if you upload a sketch that triggers a watchdog timer reset is specific to the Pro Mini's "ATmegaBOOT" bootloader, but does not occur when using the Optiboot bootloader.

Thanks for the suggestions.

No UNO.
Loop back Test, Yes, seems to work fine (used the IDE monitor window)
Always the same USB port on the PC but I assumed when I tested with my laptop that would qualify as a different port and different cabling from cpu to programmer.

BTY Just before I switched to the Pro Mini I was programming a SAMD21 over and over.

Had 2 x 5V and 1 x 3.3v. Made sure both adapters when tested were at the right voltage.

Thank you for the thought. I used the Optiboot specifically so I could use the WDT.

1 Like

I had a similar situation recently, and the problem turned out to be a bad cable. All five wires were there, but there was some sort of intermittent break inside the cable. I binned that cable and no problems since.

Are you sure your pro-minis have the 328P chip?
I've seen some Atmega 168P and LGT8F328P based pro-minis being sold around these days.

Thanks for the response. I've been using these 3 boards for literally years when developing small hobby devices. Good thought though.

Thanks for the response, I figured going to the laptop which uses different cables would be enough. But today I'll going to change the cable and port on my desktop, that is after saying a prayer and sacrificing a coffee,

I believe there are 3 choices in the Tools/Processor section, often it's the old bootloader choice

What was the exact procedure you followed to install it?

I ask because I see from the screenshot you shared that the upload baud rate was 57600. The most simple way to install Optiboot on an ATmega328P@16 MHz Pro Mini would be to select Tools > Board > Arduino AVR Boards > Arduino Uno from the Arduino IDE menus and then performing a "Burn Bootloader" operation. After that, you would need to use that same "Arduino Uno" board selection when using the Pro Mini, since the bootloader binary is compiled for an upload baud rate of 115200.

It is possible to install an Optiboot bootloader compiled for 57600 baud, as is easy to do using MiniCore, but that isn't the default for 16 MHz boards even when using MiniCore so even with MiniCore it is something you would have needed to chose manually.

I'm back in business :grinning_face:

I soldered up a fresh out of the package Pro Mini. It programmed just fine.

As unlikely as I thought it was, I had a few bad boards. And the optoboot one I don't recall any special programming steps.

Thanks for all the mental thought you folks put in to help me out. I really appreciate the efforts.

John

1 Like

If one of the "5V" Pro Mini is the one with the Optiboot bootloader, select Tools > Board > Arduino AVR Boards > Arduino Uno from the Arduino IDE menus and then try an upload to that board.