nano serial chip broken?
Heyas!
I got a free nano, I don't know the history other than someone clipped off the ICSP header pins (presumably to make it fit better in a pedal or something). It powers on. It has never been detected as a serial device. The cable I'm using works fine for other USB data hardware.
I suspect the CH340C chip is fried but have been poking the nano to see. I've read forum posts that say to never use the ICSP header pins to upload sketches after burning a new bootloader - why is this? If we shouldn't load sketches via ICSP after burning a bootloader, what do we do next so that we eventually CAN load sketches?
If the CH340C is fried, is this bricked? What might some good next steps be?
Thanks!
Here's what Ive done and the results
Before doing anything, the PWR, RX, and TX lights were constantly on and the L (built in LED) was flashing once when pressing reset, and then L is off.
I used this tutorial and a MEGA as the programmer board https://support.arduino.cc/hc/en-us/articles/4841602539164-Burn-the-bootloader-on-UNO-Mega-and-classic-Nano-using-another-Arduino
I burned the bootloader; and then PWR, RX, and TX lights were constantly on and the L was flashing three times when pressing reset, and then L is off.
I burned "old bootloader" (by selecting it in Tools->Processor after selecting the nano as the target board in step 7); and now the PWR and RX lights are constantly on, and the L is flashing a heartbeat constantly. TX lights only while holding reset.
In both cases the bootloader burned without any errors. I hooked up pins 7,8,9 to LEDs as suggested in the comments of the sketch. The first time burning happened VERY fast (less than 500ms) and without time to notice any of the data lights I hooked up flashing.
The second time it took about 1 second and the blue data light was flashing.
18 Replies
the TX and RX LEDs are controlled by the CH340, if they are always on I'd suspect the CH340 is fried
Ok, thanks for the insight!
https://www.instructables.com/Overview-the-Arduino-sketch-uploading-process-and-/ It does seem like the issue with using ICSP to load sketches is just that it bypasses / wipes the bootloader. So if the serial is broken I can probably still use it as a non-serial device, and toss sketches on it via ICSP. Will try that tomorrow π
Instructables
Overview the Arduino Sketch Uploading Process and ISP
Overview the Arduino Sketch Uploading Process and ISP: You can upload software to an Arduino using two methods. You may hear about the two methods commonly called ISP programming and FTDI or serial upload. I recommend learning about and becoming comfortable with using both methods. When I was gettingβ¦
unless the CH340 is erroneously pulling the Atmel328 pins around, but a good experiment to run!
Good news, programming over the ICSP pins is working.
Have successfully loaded the Blink example onto my (slightly broken) nano, using my Mega as an ISP programmer π
ok, thanks for the update. the CH340 takes USB data and converts it to "TTL" levels, same as the ICSP connector wants, so you have a functioning board with a bad "USB to serial" converter chip
if you get one of these you can go back to flashing over USB

Nice. Its a UART right? Could I get two and have one be a host port? π Just thinking out loud π
yes, the pins give you UART, it won't operate as a host
you might have to lift pins on the CH340 as it connects directly to arduino TX / RX hardware serial pins, ICSP is SPI
Hmm yeah. Regardless of the trials, fun project π
good on you, almost no one runs such experiments π
Well. Many folks here are children who just want to pass their class. π€·ββοΈ
very true - "Here's how to approach this..." - "Just gimme code bro!"
Hmm so I resoldered the ICSP nano header and now I'm getting errors. I also had incorrectly tried with GND and MOSI swapped so maybe I fried something.
Bootloader:
Hmmm... also same when trying to program my Leonardo. So maybe my Mega is broken after having the wrong pins? Or maybe I'm doing something wrong that I did correctly before π€
OH nope I just had two Arduino IDE windows open, so one was using COM4.
Yup and now ICSP programming works again with my Nano as target too.
Interestingly, the Leonardo bootloader took quite a while (maybe 30 seconds) to burn in again after my ICSP programming test
Ooof ok and now Leonardo isnt showing up as a USB device / on a comm port anymore π€¦ββοΈ https://wiki.keyestudio.com/Ks0248_keyestudio_Leonardo_R3_Development_Board Its one of these so. I see theres lots of interesting posts about Leonardos and their bootloaders sooo.... will go read those.
Ah. It was my USB cable. That cable is now tagged with a "crappy cable" note. π All is well again.