I have designed a custom Mega 2560 PCB board for my customers.
When I was testing the function of uploading code to Mega 2560 MCU,my PCB board did`nt work.
After debugging the PCB,I found that was the problem of my microcontroller...
I tried to use ATMEL FLIP to reload the firmware of ATMEGA16U2,but it still not work.
Although my PC can read the comport,but still cannot upload code to Mega 2560 MCU on my board.
During the debugging,I found the difference of ATMEGA16U2:
m testing the ATMEGA16U2(I bought by myself.),the bootloader version is 1.0.0,it cannot upload code. !(https://ibb.co/nkwQQPF) When Im testing the ATMEGA16U2 on the Mega 2560 board from original manufacturing,the bootloader version is 1.2.0 on ATMEGA16U2,it can upload code.
So I change the two ATMEGA16U2 for testing uploading code.
The original Mega board cannot upload code,but my custom PCB can upload code!!
I think this is my bootloader ver. of ATMEGA16U2 is too old to upload,maybe it can work when I upgrade the microcontroller to newest version.
How do I upgrade the bootloader version of ATMEGA16U2? ATMEL FLIP?