Programming atmega48V-10PU (HOW TO?)pls help!

im trying to program atmega48V-10pu with ch340g usb to serial converter but all i get is
"There was an error loading the skecth".

and i tried exact same connections with atmega328P and it worked just fine, uploaded skecth in seconds but with 48V i can't get it work no matter what.

i also noticed that i have no option in ide for 48V only for 48/48A/48PB/48P/48PA so that might be the case and if so how can i then program this mcu?.

i would be happy for any advice and if you have better way to program mcu's than arduino ide i would like to try it.

please help i have tried to solve this for couple days straight now

Did you burn a bootloader? If you don't have a bootloader in the chip, you can't program via the serial pins (USB).

The only difference between the ATmega48 and the ATmega48V is that the 'V' version can run at lower voltages (down to 1.8V) and can't run faster than 10 MHz. Just run it at 8 MHz and treat it as an 8 MHz ATmega48.

Using the USB to upload firmware to the chips with small flash size is not a good idea. As said above, USB software upload requires a bootloader in the chip. Atmega48 has only 4k flash memory, bootloader takes at least quarter of this size.
Better to use the ICSP programmer rather than USB upload.

no i didn't... can do it with arduino as isp? cause thats only option i have left after usb to serial.

oh well that was one of the problems since i tried to run it at 16mhz :smiley:

yes, it possible

i tried to program with arduino as isp but i get this error-
"
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xa6
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xa6
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xe0
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xe0........
"

and same when i tried it on 328p

and also in ide there is no option for any boot loader for 48

and yes all wires are working i tested them all with multimeter from pin to pin

GOT IT WOKING!

so i had to just add EXTERNAL 8mhz crystal
(i used 16mhz external and tried to use 8mhz internal but there isn't one i quess?)

also i have to keep reset pin grounded to burn bootloader or program but thanks for help!

and problem continues xd

i got boot loader to only one 48v chip and now i cant burn it on any, i only can send program to one that has bootloader.

using arduino as isp

You dont need bootloader if you using ICSP programmer

oh xd thanks for info and can i delete/unburn them?

it deletes if you upload sketch in the board via programmer

lol it just started working, i can now burn and upload :DD