To resolve the RAM overflow issue and run the BSEC2 library with multiple BME68x sensors on a standard board, you need to make a few adjustments to the configuration and code. Here's how you can proceed: 1. Specify the number of sensors: - In the BSEC2 library, the number of sensors is defined by the `NUM_BME68X_UNITS` macro. - Ensure that `NUM_BME68X_UNITS` is set to the actual number of sensors you are using, which in your case is 8. - Remove or comment out the conflicting `NUM_OF_SENS` definition to avoid confusion. 2. Adjust memory allocation: - The BSEC2 library allocates memory for each sensor instance using the `BSEC_INSTANCE_SIZE` macro. - With 8 sensors, the total memory required is `8 * BSEC_INSTANCE_SIZE`, which is causing the RAM overflow. - To accommodate more sensors, you may need to optimize memory usage in other parts of your code or consider using a board with more RAM. 3. Enable multi-instance support: The BSEC2 library supports multi-instance functionality, allowing you to use multiple sensors simultaneously. Ensure that the multi-instance feature is properly enabled and configured in your code. You may need to modify the example code to handle multiple sensor instances correctly.
... View more