ENSTABretagneRobotics / razor_imu_9dof

A ROS driver and firmware to connect to Sparkfun OpenLog Artemis, 9DoF Razor IMU M0, 9DOF Razor IMU and 9DOF Sensor Stick. These boards consists of 3 sensors: magnetic, gyro and acceleration sensor.
BSD 3-Clause "New" or "Revised" License
92 stars 114 forks source link

[QUESTION] Sketch Razor_AHRS.ino too big #44

Open MTDzi opened 6 years ago

MTDzi commented 6 years ago

I have the SparkFun IMU M0, and when trying to upload the sketch, I get the following error:

Sketch uses 30,492 bytes (106%) of program storage space. Maximum is 28,672 bytes.
Global variables use 2,676 bytes (104%) of dynamic memory, leaving -116 bytes for local variables. Maximum is 2,560 bytes

I've tried to use int-s instead of float-s wherever I can, but I'm still above the limit.

Do you have any suggestions how I can overcome the memory limitations?

nspo commented 6 years ago

Have you installed and selected the correct board type? See https://learn.sparkfun.com/tutorials/9dof-razor-imu-m0-hookup-guide