Hello all. I'm trying to upload a library file and I'm getting the following error code when I try to upload a zip file into the library. I'm using the Arduino cloud so how do I fix this issue?
Can you share the path to the library?
Hi @rkelso. Unlike the Arduino IDE, Arduino Web Editor requires all libraries to contain a library.properties
metadata file. In order to import this library into Arduino Web Editor, you'll first need to add this file to the library. You can do that by following these instruct:
- Unzip the library's
.zip
file. - Delete the library's
.zip
file. - Create a file named
library.properties
in the library's root folder. - Open the
library.properties
file in a text editor. - Add text to the file following the Arduino Library Specification:
https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format
Don't worry too much about exactly what you fill the fields with, it's mainly just the presence of a validlibrary.properties
file that's important. - Save the file.
- Zip the library folder.
- Import the
.zip
file in Arduino Web Editor.
Please let me know if you have any questions or run into any problems while following those instructions
OK, got that one fixed and moving on, now I'm getting this... I have verified 0x27 is the correct address.
This error is caused by using a different "LiquidCrystal_I2C" library than the one your sketch code was written for. Unfortunately, there are multiple libraries which contain a LiquidCrystal_I2C.h
file and they have incompatible APIs.
I'm going to ask you to post some additional information that might allow us to provide you with instructions for fixing this.
Please do this:
- From the menu on the left side of the Arduino Web Editor window, click "Preferences".
- Check the box next to "[ ] Always show output panel".
- Check the box next to "[ ] Console: Show verbose output".
- In the sketch pane, click the
(verify) button.
- After the compilation fails, click the icon in the top right corner of the black console window at the bottom of the Arduino Web Editor window that looks like two pieces of paper.
- In a forum reply here, click on the reply field.
- Click the
</>
button on the forum toolbar. This will add the forum's code block markup (```
) to your reply to make sure the compilation output is correctly formatted.
- Press Ctrl+V. This will paste the compilation output between the code tags.
- Move the cursor outside of the code tags before you add any additional text to your reply.
- Click the Reply button to post the output.
Here you go. I deleted the Liquid Crystal file and downloaded one from the LCD manufacturer. It will properly display an example "hello file" but when I put in my program, it doesn't work, just a blank screen. It's odd that it works in one program but not the other.
``
/usr/local/bin/arduino-cli compile --fqbn arduino:avr:mega:cpu=atmega2560 --libraries /home/builder/opt/libraries/latest --build-cache-path /tmp --output-dir /tmp/793895358/build --build-path /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9 -v /tmp/793895358/2lane_timer_test
Using board 'mega' from platform in folder: /home/builder/.arduino15/packages/arduino/hardware/avr/1.8.3
Using core 'arduino' from platform in folder: /home/builder/.arduino15/packages/arduino/hardware/avr/1.8.3
Detecting libraries used...
/home/builder/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.3/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.3/variants/mega /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/sketch/2lane_timer_test.ino.cpp -o /dev/null
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
-> candidates: [Wire@1.0]
/home/builder/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.3/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.3/variants/mega -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.3/libraries/Wire/src /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/sketch/2lane_timer_test.ino.cpp -o /dev/null
Alternatives for LiquidCrystal_I2C.h: [liquidcrystal_i2c_1_1_2@1.1.2]
ResolveLibrary(LiquidCrystal_I2C.h)
-> candidates: [liquidcrystal_i2c_1_1_2@1.1.2]
/home/builder/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.3/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.3/variants/mega -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.3/libraries/Wire/src -I/home/builder/opt/libraries/latest/liquidcrystal_i2c_1_1_2 /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/sketch/2lane_timer_test.ino.cpp -o /dev/null
Using cached library dependencies for file: /home/builder/.arduino15/packages/arduino/hardware/avr/1.8.3/libraries/Wire/src/Wire.cpp
Using cached library dependencies for file: /home/builder/.arduino15/packages/arduino/hardware/avr/1.8.3/libraries/Wire/src/utility/twi.c
Using cached library dependencies for file: /home/builder/opt/libraries/latest/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.cpp
Generating function prototypes...
/home/builder/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.3/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.3/variants/mega -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.3/libraries/Wire/src -I/home/builder/opt/libraries/latest/liquidcrystal_i2c_1_1_2 /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/sketch/2lane_timer_test.ino.cpp -o /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/preproc/ctags_target_for_gcc_minus_e.cpp
/home/builder/.arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/home/builder/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.3/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.3/variants/mega -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.3/libraries/Wire/src -I/home/builder/opt/libraries/latest/liquidcrystal_i2c_1_1_2 /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/sketch/2lane_timer_test.ino.cpp -o /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/sketch/2lane_timer_test.ino.cpp.o
Compiling libraries...
Compiling library "Wire"
Using previously compiled file: /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/libraries/Wire/Wire.cpp.o
Using previously compiled file: /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/libraries/Wire/utility/twi.c.o
Compiling library "liquidcrystal_i2c_1_1_2"
Using previously compiled file: /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.cpp.o
Compiling core...
Using precompiled core: /tmp/core/core_arduino_avr_mega_cpu_atmega2560_b45196d498daca11df7b17ae5e964e4b.a
Linking everything together...
/home/builder/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-gcc -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega2560 -o /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/2lane_timer_test.ino.elf /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/sketch/2lane_timer_test.ino.cpp.o /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/libraries/Wire/Wire.cpp.o /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/libraries/Wire/utility/twi.c.o /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.cpp.o /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/../core/core_arduino_avr_mega_cpu_atmega2560_b45196d498daca11df7b17ae5e964e4b.a -L/tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9 -lm
/home/builder/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/2lane_timer_test.ino.elf /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/2lane_timer_test.ino.eep
/home/builder/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy -O ihex -R .eeprom /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/2lane_timer_test.ino.elf /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/2lane_timer_test.ino.hex
Using library Wire at version 1.0 in folder: /home/builder/.arduino15/packages/arduino/hardware/avr/1.8.3/libraries/Wire
Using library liquidcrystal_i2c_1_1_2 at version 1.1.2 in folder: /home/builder/opt/libraries/liquidcrystal_i2c_1_1_2
/home/builder/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-size -A /tmp/arduino-build-D75104A7339A6D4E8546A6B489E785B9/2lane_timer_test.ino.elf
Sketch uses 8526 bytes (3%) of program storage space. Maximum is 253952 bytes.
Global variables use 553 bytes (6%) of dynamic memory, leaving 7639 bytes for local variables. Maximum is 8192 bytes.
Upload started
Programming with: Serial
Programming with: Serial
Flashing with command:C:/Users/fordt/.arduino-create/arduino/avrdude/6.3.0-arduino17/bin/avrdude.exe -CC:/Users/fordt/.arduino-create/arduino/avrdude/6.3.0-arduino17/etc/avrdude.conf -v -patmega2560 -cwiring -PCOM4 -b115200 -D -Uflash:w:C:/Users/fordt/AppData/Local/Temp/arduino-create-agent767696033/2lane_timer_test.hex:i
Flashing with command:C:/Users/fordt/.arduino-create/arduino/avrdude/6.3.0-arduino17/bin/avrdude.exe -CC:/Users/fordt/.arduino-create/arduino/avrdude/6.3.0-arduino17/etc/avrdude.conf -v -patmega2560 -cwiring -PCOM4 -b115200 -D -Uflash:w:C:/Users/fordt/AppData/Local/Temp/arduino-create-agent767696033/2lane_timer_test.hex:i
avrdude: Version 6.3-20190619
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:/Users/fordt/.arduino-create/arduino/avrdude/6.3.0-arduino17/etc/avrdude.conf"
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:/Users/fordt/.arduino-create/arduino/avrdude/6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM4
Using Programmer : wiring
Overriding Baud Rate : 115200
Using Port : COM4
Using Programmer : wiring
Overriding Baud Rate : 115200
AVR Part : ATmega2560
AVR Part : ATmega2560
Chip Erase delay : 9000 us
Chip Erase delay : 9000 us
PAGEL : PD7
PAGEL : PD7
BS2 : PA0
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
serial program mode : yes
parallel program mode : yes
Timeout : 200
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
eeprom 65 10 8 0 no 4096 8 0 9000 9000 0x00 0x00
flash 65 10 256 0 yes 262144 256 1024 4500 4500 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
eeprom 65 10 8 0 no 4096 8 0 9000 9000 0x00 0x00
flash 65 10 256 0 yes 262144 256 1024 4500 4500 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : Wiring
Description : Wiring
Programmer Model: AVRISP
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : Wiring
Description : Wiring
Programmer Model: AVRISP
Hardware Version: 15
Hardware Version: 15
Firmware Version Master : 2.10
Firmware Version Master : 2.10
Vtarget : 0.0 V
SCK period : 0.1 us
Vtarget : 0.0 V
SCK period : 0.1 us
avrdude: AVR device initialized and ready to accept instructions
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e9801 (probably m2560)
avrdude: Device signature = 0x1e9801 (probably m2560)
avrdude: safemode: lfuse reads as FF
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as D8
avrdude: safemode: hfuse reads as D8
avrdude: safemode: efuse reads as FF
avrdude: safemode: efuse reads as FF
avrdude: reading input file "C:/Users/fordt/AppData/Local/Temp/arduino-create-agent767696033/2lane_timer_test.hex"
avrdude: reading input file "C:/Users/fordt/AppData/Local/Temp/arduino-create-agent767696033/2lane_timer_test.hex"
avrdude: writing flash (8526 bytes):
avrdude: writing flash (8526 bytes):
Writing | ################################################## | 100% 1.39s
Writing | ################################################## | 100% 1.39s
avrdude: 8526 bytes of flash written
avrdude: verifying flash memory against C:/Users/fordt/AppData/Local/Temp/arduino-create-agent767696033/2lane_timer_test.hex:
avrdude: 8526 bytes of flash written
avrdude: verifying flash memory against C:/Users/fordt/AppData/Local/Temp/arduino-create-agent767696033/2lane_timer_test.hex:
avrdude: load data flash data from input file C:/Users/fordt/AppData/Local/Temp/arduino-create-agent767696033/2lane_timer_test.hex:
avrdude: load data flash data from input file C:/Users/fordt/AppData/Local/Temp/arduino-create-agent767696033/2lane_timer_test.hex:
avrdude: input file C:/Users/fordt/AppData/Local/Temp/arduino-create-agent767696033/2lane_timer_test.hex contains 8526 bytes
avrdude: input file C:/Users/fordt/AppData/Local/Temp/arduino-create-agent767696033/2lane_timer_test.hex contains 8526 bytes
avrdude: reading on-chip flash data:
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 1.12s
Reading | ################################################## | 100% 1.12s
avrdude: verifying ...
avrdude: verifying ...
avrdude: 8526 bytes of flash verified
avrdude: 8526 bytes of flash verified
avrdude: safemode: lfuse reads as FF
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as D8
avrdude: safemode: hfuse reads as D8
avrdude: safemode: efuse reads as FF
avrdude: safemode: efuse reads as FF
avrdude: safemode: Fuses OK (E:FF, H:D8, L:FF)
avrdude: safemode: Fuses OK (E:FF, H:D8, L:FF)
avrdude done. Thank you.
avrdude done. Thank you.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.