Avrdude and 328p-au

hi there
ive been trying to burn bootloader to the above chip using uno as isp without any luck, so ive brought a uabasp programmer to see if that works. im trying to work out what part number to use on my 328 AU chip do i select m328 ATMEGA328P in avrdude?
thank you

From a programming standpoint, an ATmega328P-AU is identical to an ATmega328P-PU, only the packaging is different (use m328p for either in AVRDUDE). The ATmega328-AU or ATmega328-PU differ in their signature bytes, so use "m328" for them (I'm not entirely clear from your post which chip you have.)

If you in Section 29 of the datasheet, you will see Signature bytes:
ATmega328 0x1E 0x95 0x14
ATmega328P 0x1E 0x95 0x0F

There is a difference between non-P and P devices.
There is Not a difference for the physical package, -AU vs -PU.

What you can do is this:
Open your local avrdude.conf.
Find the Atmega328P section.
Change the signature bytes to reflect '328
Bootload your device.
When done, change the signature bytes back to reflect '328P.

I'm pretty sure that will work.

my chip is ATMEGA328P-AU TQFP-32

Then you are all set - select a board type that uses '328P. I program all mine as Uno with 16 MHz.
If you want to use A6/A7 (which are analog inputs only) then select an SMD board type that uses those pins, perhaps the Nano.

hi rob im not sure what you mean by a6a7, i intend selecting the nano board
(a6 is pin 19, a7 is pin 22)

Just what I said - pins A6 and A7 are only usable with
valA6 = analogRead(A6);
valA7 = analogRead(A7);

They do not support analogWrite, digitalRead, digitalWrite - there is no support on the '328P chip for those.