Befaco / muxlicer

Befaco Muxlicer information
12 stars 5 forks source link

Arduino IDE shows error while trying to upload firmware #2

Open alexneivel opened 2 years ago

alexneivel commented 2 years ago

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

xustafu commented 2 years ago

According to error message, you are choosing the wrong board: Arduino: 1.8.19 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega1280" Try using Arduino UNO.

alexneivel commented 2 years ago

Same result with Arduino UNO selected.

xustafu commented 2 years ago

Quickly followed instructions and managed to load it in a Linux machine with arduino 1.8.16. Unfortunately do not have a Mac OS device to check arduino in that platform.

alexneivel commented 2 years ago

Which linux version are you using? ill try to install on virtual machine.

xustafu commented 2 years ago

Mint 20.2

alexneivel commented 2 years ago

Seems like firmware updated, but error message which i post earlier still shows up. Is it ok?

xustafu commented 2 years ago

What error message?

alexneivel commented 2 years ago

same as i posted earlier, i changed arduino to uno, anyway it shows this error message, even on Mint 20.3:

/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

alexneivel commented 2 years ago

anyway seems like everything works, even those warning messages appears

xustafu commented 2 years ago

Warning messages are related to the programmer itself. Will close this issue then!