user8484: I want to upgrade my product which is based on Atmega328p-AU, having the problem of programming memory. I don't want to change the PCB of the product. Is PIN To PIN matching MCU against Atmega328P-AU available?

user50183: The only other AVR chip with more program memory in the 32/TQFP form factor is the ATMEGA4808 at 48 kB.
Unfortunately, the pinout is not the same compared to the ATMEGA328P-AU:
ATMEGAx8P family datasheet
ATMEGAx08 family datasheet

8484: <p>I want to upgrade my product which is based on Atmega328p-AU, having the problem of programming memory. I don't want to change the PCB of the product. Is PIN To PIN matching MCU against Atmega328P-AU available?</p>
 50183: <p>The only other AVR chip with more program memory in the 32/TQFP form factor is the <a href="https://www.microchip.com/wwwproducts/en/ATMEGA4808" rel="nofollow noreferrer">ATMEGA4808</a> at 48 kB.</p>

<p>Unfortunately, the pinout is not the same compared to the ATMEGA328P-AU:</p>

<p><a href="http://ww1.microchip.com/downloads/en/DeviceDoc/ATmega48A-PA-88A-PA-168A-PA-328-P-DS-DS40002061A.pdf" rel="nofollow noreferrer">ATMEGAx8P family datasheet</a></p>

<p><a href="http://ww1.microchip.com/downloads/en/DeviceDoc/32-pin-Data-Sheet-megaAVR-0-series-DS40002017B.pdf" rel="nofollow noreferrer">ATMEGAx08 family datasheet</a></p>
