I am getting the error: " failed to read all of the flash memory " after uploading a program to a custom Arduino Nano CH340C with a Type C port. The program is uploading and working fine but the error message on Arduino IDE keeps coming and never successfully uploaded. I swapped CH340C and ATMEGA328P with another CH340C Arduino Nano USB mini board but all are working fine there.
If someone can identify an error then please help me. I have been stuck in this problem for 2-3 weeks.
Your schematic shows a variety of different voltage Vcc, +5v, VUSB, etc. How are all those tied together. What about a decoupling capacitor on the ATmega328P?
Just ignore the 'error'. There have been a couple of questions about it in the past; do a search.
I added a power ON switch with an Arduino board. After pressing the Power ON switch ckt will be ON. This Means VCC and 5V power rails, both becoming one after pressing the switch.
I am making an Arduino Nano development board and want to sell it online. So, I need it to be worked perfectly. I also tried USB-TTL, which worked perfectly.
It's always good to show a complete schematic instead of multiple parts which don't fit together well.
The bootloader is quite large leaving 30,720 bytes of flash memory. I'd configure that board as a Uno instead.
Hey, thanks for the reply. Actually, I am confident about the other part that's why I didn't upload the complete schematic. The program is uploading and working but only the Arduino IDE is not showing " Done uploading". So, it must be related to ch340 and the microcontroller.
**Now, I found something interesting: I heated the board (ch340, Rx-Tx resistors, and LED) and "Done Uploading". But it doesn't last long. After a few minutes, the same problem repeated.
Is this related to the PCB board? I properly soldered all components with quality soldering wire, and flux and cleaned the surface with IP.
The message appears correctly, albeit only temporarily, when the board is heated ?
This is indeed a curious phenomenon. I see a couple of possibilities (1) thermal expansion causing better electrical contacts or (2) an oscillator changing frequency, due to thermal effects, which somehow improves the compatibility between your board and the PC.
Are you absolutely sure that the absence of the message is the only problem ? Try uploading the blink sketch, but change the blink rate, so you can be sure the new code is actually loading.
Yes, I am doing exactly what you are suggesting. I am uploading the Blink program with different rates also I tested the buzzer and WS2812B LED module, and all working great. The message appears temporarily. I carefully prepared the second board too but the problem with that too.
Is it this message ?
Try the marked settings in File > Preferences:
.
.
and see if you get something like this at the end of an upload.
.
.
And what is the problem?
It seems to be a soldering problem or damage of some hardware component. Do you have a multiple such boards? Is the problem occurring to them all?
Yes, the same problem for other boards. All components are fine.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.