Skip to content

Arduino IDE shows error while trying to upload firmware #2

Description

@alexhody

Any idea how to fix it?
Here's error messages:

Arduino: 1.8.19 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega1280"

/Users/tritone/Documents/Arduino/muxlicer/functions.ino: In function 'void write_clock_in_mult_to_EEPROM()':
/Users/tritone/Documents/Arduino/muxlicer/functions.ino:280:37: warning: right shift count >= width of type [-Wshift-count-overflow]
EEPROM.write(6, (clk_in_mult >> 16) & 0xFF);
^~
/Users/tritone/Documents/Arduino/muxlicer/functions.ino:281:37: warning: right shift count >= width of type [-Wshift-count-overflow]
EEPROM.write(7, (clk_in_mult >> 24) & 0xFF);
^~
/Users/tritone/Documents/Arduino/muxlicer/functions.ino: In function 'void write_range_to_EEPROM()':
/Users/tritone/Documents/Arduino/muxlicer/functions.ino:290:38: warning: right shift count >= width of type [-Wshift-count-overflow]
EEPROM.write(18, (range_value >> 16) & 0xFF);
^~
/Users/tritone/Documents/Arduino/muxlicer/functions.ino:291:38: warning: right shift count >= width of type [-Wshift-count-overflow]
EEPROM.write(19, (range_value >> 24) & 0xFF);
^~
/Users/tritone/Documents/Arduino/muxlicer/functions.ino: In function 'void write_clock_out_mult_to_EEPROM()':
/Users/tritone/Documents/Arduino/muxlicer/functions.ino:306:41: warning: right shift count >= width of type [-Wshift-count-overflow]
EEPROM.write(12, (clock_out_mult >> 16) & 0xFF);
^~
/Users/tritone/Documents/Arduino/muxlicer/functions.ino:307:41: warning: right shift count >= width of type [-Wshift-count-overflow]
EEPROM.write(13, (clock_out_mult >> 24) & 0xFF);
^~
Sketch uses 12618 bytes (9%) of program storage space. Maximum is 126976 bytes.
Global variables use 236 bytes (2%) of dynamic memory, leaving 7956 bytes for local variables. Maximum is 8192 bytes.
An error occurred while uploading the sketch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions