Adafruit_VL53L0X memory short error when compile

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
adafruitpjk
 
Posts: 3
Joined: Fri Nov 17, 2017 11:10 pm

Adafruit_VL53L0X memory short error when compile

Post by adafruitpjk »

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?

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: Adafruit_VL53L0X memory short error when compile

Post by Franklin97355 »

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

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

Re: Adafruit_VL53L0X memory short error when compile

Post by adafruitpjk »

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.

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: Adafruit_VL53L0X memory short error when compile

Post by Franklin97355 »

Try updating your compiler to the 1.8.5. I just compiled the example and got different numbers than you.

Code: Select all

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.

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

Re: Adafruit_VL53L0X memory short error when compile

Post by adafruitpjk »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”