I'm a relative beginner with this, so you'll have to excuse my lack expertise on some of this.
I'm using an Activity Board, programming in PropC in SimpleIDE, and trying to cram as many sensors as possible into it. Sensors/Parts I'm using are
-BME680 Environmental Sensor
-Analog sensors connected to all 4 analog inputs
-2 sensors connected to processor GPIO pins to count pulses (light and particles)
My program works beautifully, collecting data, collating it all to a single string variable, saving that string variable, and transmitting that string variable. The problem comes when I try to add code for the LSM9DS1 IMU. It seems as the code size reaches 30k, issues start to arise with the rest of the system, with certain sensor data no longer showing up, transmitting not working, and variables being gibberish. Code for the IMU works great if I don't try to use it with the rest of the system (such as removing the BME680), the only factor seems to be the code size. So, I have 3 questions:
1. Is my problem only related to code size?
2. I know other people who have 20 of these sensors being controlled by a single (non Propellor) microcontroller, so why is this one struggling to control just a few?
3. Could the problem be related to bloated Parallax libraries, loaded with functions that I don't call? Or do those not contribute to the code size?
Thanks for any help! Would love to learn more deeply about how this works to figure out what the issue is, and if it's possible to continue building larger code with more sensors, or if I've reached the limits of this architecture.