I searched high and low for programming differences between the atmega328PU-TH and the atmega328U-TH. Arduino IDE programs the atmega328PU-TH but does not work in the atmega328U-TH.
The hardware specifications seem to be very similar between them though when looking at the datasheet.
I ended up with a bunch of atmega328U-TH MPUs since an online project had the incorrect BOM, so I want to try and program them regardless.
I've tried without success programming the 328U-TH by replacing the existing atmega328P-U with the atmega328U-TH, and then in IDE, setting the device as a nano (old bootloader) or uno, which typically use the atmega328p? Any ideas?
The Microchip website (the official manufacturer), does not seem to recognize any product called ATmega328u-th. You may have a counterfeit -- there are several different ones.
Where did you buy this thing? Post a pic of the top of the IC.
Ah good question. So here is the story.. I ordered a bunch of ATmega328-AU processors from Digikey. They sent me ATmega328 U-TH processors (without mentioning the replacement or change in the part #), so I thought there may have been a change to the part number from Microchip. I called Digikey, and he thinks the same thing that there could have been a change to the part number as well, but his hunch is they are the same chip. But to be sure, he is going to escalate this to confirm (perhaps with Microchip themselves). Also, I had zero luck getting them to program in IDE (as a Atmega328 using minicore or as an Atmega328p), but have ordered a programming socket for my T48 programmer to try it as well.
Ah yes, I did see that. I installed minicore and selected the ATmega328 without any luck. That said, I am doing this attempt putting an atmega328 U-TH in the place of an atmega328P U-TH given the datasheets appear to show identical pin outs.
The P in the 328P stands for picopower. The chip IDs of both chips are different (see datasheet) so passing the wrong chip to avrdude will cause it to fail and hence you can't use the Nano as the target.