I have a circuit which has:
- STM32F446RET6 MCU
- 2 IMUs
- 1 Barometer Sensor
- 1 Micro SD Card Module
- 1 External Flash Chip
- 1 GPS Module
- 1 LoRa Module
And when I try to use all of them in my code I can only achieve 6 to 8 while cycles in a second which means 6 to 8 sensor readings per second which is really slow considering I need to integrate gyro and accelerometer datas.
How can I achieve more sensor readings in a while loop? I heard that interrupt usage can help but I'm not sure. Can interrupt help in my situation? (Both IMUs have interrupt outputs.)