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
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.
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