Adafruit_BNO08x
Adafruit_BNO08x copied to clipboard
Arduino pro mini doesnt have sufficient storage space
-
Arduino board: Arduino Pro Mini 5v, ATmega 328P
-
Arduino IDE version: 2.2.1
-
List the steps to reproduce the problem below:
My problem is that I am trying to upload the test sketches for this onto a Arduino Pro Mini, but it doesnt seem to have enough space, is there a chance that there is a "minimal" version for this library which can be used for the Arduino Pro mini?
This is the exception I get when I try to upload the sketch to the board:
Sketch uses 19128 bytes (62%) of program storage space. Maximum is 30720 bytes.
Global variables use 3355 bytes (163%) of dynamic memory, leaving -1307 bytes for local variables. Maximum is 2048 bytes.
Not enough memory; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing your footprint.
data section exceeds available space in board
Compilation error: data section exceeds available space in board
I try to use the example: rotation_vector
But it seems that when the Adafruit_BNO08x object is declared it is "too large". I tried to create an empty sketch with just the declaration of the BNO08x object and that didnt work either, here is the minimal sketch that I tried that didnt work either:
#include <Adafruit_BNO08x.h>
Adafruit_BNO08x bno08x;
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}