0

Adafruit_VL53L0X memory short error when compile
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit_VL53L0X memory short error when compile

by adafruitpjk on Fri Nov 17, 2017 11:18 pm

Hello.
I buy Adafruit_VL53L0X and try it following by manual.
I have problem when compile the example VL53L0X in libaray.

processing.app.debug.RunnerException: not enough memory.

How can i do for this error?

adafruitpjk
 
Posts: 3
Joined: Fri Nov 17, 2017 11:10 pm

Re: Adafruit_VL53L0X memory short error when compile

by franklin97355 on Sat Nov 18, 2017 12:05 am

Can you post the entire error message and also let us know what you are compiling for (which Arduino)

franklin97355
 
Posts: 17047
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Adafruit_VL53L0X memory short error when compile

by adafruitpjk on Sun Nov 19, 2017 6:37 pm

Thank you for your reply.
The entire error message is :

Arduino: 1.6.4 (Windows 8.1), Board: "Arduino Uno"
Sketch uses 25,534 bytes (79%) of program storage space. Maximum is 32,256 bytes.
Global variables use 2,696 bytes (131%) of dynamic memory, leaving -648 bytes for local variables. Maximum is 2,048 bytes.
processing.app.debug.RunnerException: Not enough memory; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing your footprint.
at processing.app.debug.Compiler.size(Compiler.java:338)
at processing.app.debug.Compiler.build(Compiler.java:117)
at processing.app.Sketch.build(Sketch.java:1162)
at processing.app.Sketch.build(Sketch.java:1137)
at processing.app.Editor$BuildHandler.run(Editor.java:2032)
at java.lang.Thread.run(Thread.java:745)
Not enough memory; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing your footprint.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

adafruitpjk
 
Posts: 3
Joined: Fri Nov 17, 2017 11:10 pm

Re: Adafruit_VL53L0X memory short error when compile

by franklin97355 on Sun Nov 19, 2017 7:01 pm

Try updating your compiler to the 1.8.5. I just compiled the example and got different numbers than you.
Code: Select all | TOGGLE FULL SIZE
Using library Adafruit_VL53L0X at version 1.0.2 in folder: C:\Users\Stephen\Documents\Arduino\libraries\Adafruit_VL53L0X
Using library Wire at version 1.0 in folder: C:\Users\Stephen\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\libraries\Wire
Sketch uses 17302 bytes (53%) of program storage space. Maximum is 32256 bytes.
Global variables use 1236 bytes (60%) of dynamic memory, leaving 812 bytes for local variables. Maximum is 2048 bytes.

franklin97355
 
Posts: 17047
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Adafruit_VL53L0X memory short error when compile

by adafruitpjk on Sun Nov 19, 2017 9:33 pm

Thank you very much for your answer..
I tried updating compiler to the 1.8.5. and working good.

adafruitpjk
 
Posts: 3
Joined: Fri Nov 17, 2017 11:10 pm

Please be positive and constructive with your questions and comments.