Dobra dzięki udało się wgrać bootloader wybierając właśnie atmege328 z wariantem PB lecz teraz nie idzie wgrywać programu moje głównego. Znaczy się tak wgrywałem przez konwerter USB UART i normlanie przez przewód usb a bootloader wgrałem przez USBasp. Wszystko dobrze, np zwykły program blink idzie wgrać lecz jak chcę wgrać mój to są błędy od eepromu bo w projekcie używam eepromu lecz kiedy wybiore normalnie płytke arduino nano to kompiluje się dobrze bez żadnych błędów tak jak to działało przed wgraniem bootloadera i zaczyna wgrywać lecz przestaje i wyskakują różne komunikaty w zależności jaki wariant wybiore
Taki komunikat jak wgrywam normalnie mój program przez usb z wybraną płytką nano:
avrdude: Version 6.3-20190619
Copyright © 2000-2005 Brian Dean,
http://www.bdmicro.com/
Copyright © 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\mateu\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM17
Using Programmer : arduino
Overriding Baud Rate : 57600
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xfe
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xfe
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xfe
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xfe
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xfe
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xfe
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xfe
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xfe
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xfe
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xfe
avrdude done. Thank you.
Failed uploading: uploading error: exit status 1
a taki błąd juz w trakcie kompilacji jak mam wybraną opcje atmegi bez płytki. i takich jest wiele linijek pewnie do każdego miejsca gdzie używam eeprom
In file included from C:\Users\mateu\AppData\Local\Arduino15\packages\MiniCore\hardware\avr\2.1.3\cores\MCUdude_corefiles/USBAPI.h:25:0,
from C:\Users\mateu\AppData\Local\Arduino15\packages\MiniCore\hardware\avr\2.1.3\cores\MCUdude_corefiles/Arduino.h:300,
from C:\Users\mateu\AppData\Local\Temp\arduino-sketch-2F07BC2C867A2B31B457F83ADFDF64FA\sketch\Sterownik pieca dla Sebastian Jarzabek v1.9 AKTUALNY.ino.cpp:1:
c:\users\mateu\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\eeprom.h:187:6: note: initializing argument 2 of 'void eeprom_write_block(const void*, void*, size_t)'
void eeprom_write_block (const void *__src, void *__dst, size_t __n);
^~~~~~~~~~~~~~~~~~
exit status 1
Compilation error: invalid conversion from 'volatile void*' to 'void*' [-fpermissive]