Skip to content

Arduino 1.8.12 and Arduino 2.1 give ino file const error! Does not work! #88

@Alectronics

Description

@Alectronics

\Atmega_Board_Programmer\Atmega_Board_Programmer\bootloader_atmega328.h:3:34: error: variable 'atmega328_optiboot' must be const in order to be put into read-only section by means of 'attribute((progmem))'
byte PROGMEM atmega328_optiboot [] = {
^
\Atmega_Board_Programmer\Atmega_Board_Programmer\Atmega_Board_Programmer.ino:147:9: error: 'atmega168_optiboot' was not declared in this scope
atmega168_optiboot, // loader image
^~~~~~~~~~~~~~~~~~
\Atmega_Board_Programmer\Atmega_Board_Programmer\Atmega_Board_Programmer.ino:147:9: note: suggested alternative: 'atmega328_optiboot'
atmega168_optiboot, // loader image
^~~~~~~~~~~~~~~~~~
atmega328_optiboot
\Atmega_Board_Programmer\Atmega_Board_Programmer\Atmega_Board_Programmer.ino:149:16: error: 'atmega168_optiboot' was not declared in this scope
sizeof atmega168_optiboot,
^~~~~~~~~~~~~~~~~~
\Atmega_Board_Programmer\Atmega_Board_Programmer\Atmega_Board_Programmer.ino:149:16: note: suggested alternative: 'atmega328_optiboot'
sizeof atmega168_optiboot,
^~~~~~~~~~~~~~~~~~
atmega328_optiboot
\Atmega_Board_Programmer\Atmega_Board_Programmer\Atmega_Board_Programmer.ino:184:9: error: 'optiboot_atmega1280_hex' was not declared in this scope
optiboot_atmega1280_hex,
^~~~~~~~~~~~~~~~~~~~~~~
\Atmega_Board_Programmer\Atmega_Board_Programmer\Atmega_Board_Programmer.ino:186:16: error: 'optiboot_atmega1280_hex' was not declared in this scope
sizeof optiboot_atmega1280_hex,
^~~~~~~~~~~~~~~~~~~~~~~
\Atmega_Board_Programmer\Atmega_Board_Programmer\Atmega_Board_Programmer.ino:195:9: error: 'atmega2560_bootloader_hex' was not declared in this scope
atmega2560_bootloader_hex,// loader image
^~~~~~~~~~~~~~~~~~~~~~~~~
\Atmega_Board_Programmer\Atmega_Board_Programmer\Atmega_Board_Programmer.ino:197:16: error: 'atmega2560_bootloader_hex' was not declared in this scope
sizeof atmega2560_bootloader_hex,
^~~~~~~~~~~~~~~~~~~~~~~~~
\Atmega_Board_Programmer\Atmega_Board_Programmer\Atmega_Board_Programmer.ino:217:9: error: 'optiboot_atmega1284p_hex' was not declared in this scope
optiboot_atmega1284p_hex,
^~~~~~~~~~~~~~~~~~~~~~~~
\Atmega_Board_Programmer\Atmega_Board_Programmer\Atmega_Board_Programmer.ino:219:16: error: 'optiboot_atmega1284p_hex' was not declared in this scope
sizeof optiboot_atmega1284p_hex,
^~~~~~~~~~~~~~~~~~~~~~~~
\Atmega_Board_Programmer\Atmega_Board_Programmer\Atmega_Board_Programmer.ino:235:9: error: 'atmega8_hex' was not declared in this scope
atmega8_hex,
^~~~~~~~~~~
\Atmega_Board_Programmer\Atmega_Board_Programmer\Atmega_Board_Programmer.ino:237:16: error: 'atmega8_hex' was not declared in this scope
sizeof atmega8_hex,
^~~~~~~~~~~
\Atmega_Board_Programmer\Atmega_Board_Programmer\Atmega_Board_Programmer.ino: In function 'void writeBootloader()':
\Atmega_Board_Programmer\Atmega_Board_Programmer\Atmega_Board_Programmer.ino:419:20: error: 'ATmegaBOOT_168_atmega328_pro_8MHz_hex' was not declared in this scope
bootloader = ATmegaBOOT_168_atmega328_pro_8MHz_hex;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

exit status 1

Compilation error: variable 'atmega328_optiboot' must be const in order to be put into read-only section by means of 'attribute((progmem))'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions