Skip to content

Conversation

@facchinm
Copy link
Collaborator

No description provided.

the previous code was matching Arduino_LSM9DS1 a bit too closely,
not taking into account thet the FIFO must be read from different
registers in BMI270.
facchinm added a commit to facchinm/tinyMLx-arduino-library that referenced this pull request Oct 20, 2025
* Needs arduino-libraries/Arduino_BMI270_BMM150#56 to properly handle BMI270 in FIFO mode
* The user should define NANO33_BLE_REV2 as early as possible to include the proper libraries (fixed the examples)
* `while (IMU.accelerationAvailable())` replaced with `if (IMU.accelerationAvailable())`, shouldn't change anything in existing code since Arduino_LSM9DS1 was always returing only one sample
@github-actions
Copy link

Memory usage change @ ddcb8a3

Board flash % RAM for global variables %
arduino:mbed_edge:edge_control 🔺 +3008 - +3008 +0.31 - +0.31 🔺 +344 - +344 +0.13 - +0.13
arduino:mbed_nano:nano33ble 🔺 +3008 - +3008 +0.31 - +0.31 🔺 +344 - +344 +0.13 - +0.13
arduino:mbed_nano:nanorp2040connect 🔺 +2950 - +2950 +0.02 - +0.02 🔺 +344 - +344 +0.13 - +0.13
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A
arduino:mbed_portenta:envie_m7:target_core=cm4 N/A N/A N/A N/A
arduino:samd:mkr1000 🔺 +2964 - +2964 +1.13 - +1.13 🔺 +344 - +344 +1.05 - +1.05
arduino:samd:mkrfox1200 🔺 +2964 - +2964 +1.13 - +1.13 🔺 +344 - +344 +1.05 - +1.05
arduino:samd:mkrgsm1400 🔺 +2964 - +2964 +1.13 - +1.13 🔺 +344 - +344 +1.05 - +1.05
arduino:samd:mkrnb1500 🔺 +2964 - +2964 +1.13 - +1.13 🔺 +344 - +344 +1.05 - +1.05
arduino:samd:mkrvidor4000 🔺 +2964 - +2964 +1.13 - +1.13 🔺 +344 - +344 +1.05 - +1.05
arduino:samd:mkrwan1300 🔺 +2964 - +2964 +1.13 - +1.13 🔺 +344 - +344 +1.05 - +1.05
arduino:samd:mkrwan1310 🔺 +2964 - +2964 +1.13 - +1.13 🔺 +344 - +344 +1.05 - +1.05
arduino:samd:mkrwifi1010 🔺 +2964 - +2964 +1.13 - +1.13 🔺 +344 - +344 +1.05 - +1.05
arduino:samd:mkrzero 🔺 +2964 - +2964 +1.13 - +1.13 🔺 +344 - +344 +1.05 - +1.05
rp2040:rp2040:rpipico 🔺 +2984 - +2984 +0.14 - +0.14 🔺 +344 - +344 +0.13 - +0.13
Click for full report table
Board examples/SimpleAccelerometer
flash
% examples/SimpleAccelerometer
RAM for global variables
% examples/SimpleGyroscope
flash
% examples/SimpleGyroscope
RAM for global variables
% examples/SimpleMagnetometer
flash
% examples/SimpleMagnetometer
RAM for global variables
%
arduino:mbed_edge:edge_control 3008 0.31 344 0.13 3008 0.31 344 0.13 3008 0.31 344 0.13
arduino:mbed_nano:nano33ble 3008 0.31 344 0.13 3008 0.31 344 0.13 3008 0.31 344 0.13
arduino:mbed_nano:nanorp2040connect 2950 0.02 344 0.13 2950 0.02 344 0.13 2950 0.02 344 0.13
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A
arduino:mbed_portenta:envie_m7:target_core=cm4 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A
arduino:samd:mkr1000 2964 1.13 344 1.05 2964 1.13 344 1.05 2964 1.13 344 1.05
arduino:samd:mkrfox1200 2964 1.13 344 1.05 2964 1.13 344 1.05 2964 1.13 344 1.05
arduino:samd:mkrgsm1400 2964 1.13 344 1.05 2964 1.13 344 1.05 2964 1.13 344 1.05
arduino:samd:mkrnb1500 2964 1.13 344 1.05 2964 1.13 344 1.05 2964 1.13 344 1.05
arduino:samd:mkrvidor4000 2964 1.13 344 1.05 2964 1.13 344 1.05 2964 1.13 344 1.05
arduino:samd:mkrwan1300 2964 1.13 344 1.05 2964 1.13 344 1.05 2964 1.13 344 1.05
arduino:samd:mkrwan1310 2964 1.13 344 1.05 2964 1.13 344 1.05 2964 1.13 344 1.05
arduino:samd:mkrwifi1010 2964 1.13 344 1.05 2964 1.13 344 1.05 2964 1.13 344 1.05
arduino:samd:mkrzero 2964 1.13 344 1.05 2964 1.13 344 1.05 2964 1.13 344 1.05
rp2040:rp2040:rpipico 2984 0.14 344 0.13 2984 0.14 344 0.13 2984 0.14 344 0.13
Click for full report CSV
Board,examples/SimpleAccelerometer<br>flash,%,examples/SimpleAccelerometer<br>RAM for global variables,%,examples/SimpleGyroscope<br>flash,%,examples/SimpleGyroscope<br>RAM for global variables,%,examples/SimpleMagnetometer<br>flash,%,examples/SimpleMagnetometer<br>RAM for global variables,%
arduino:mbed_edge:edge_control,3008,0.31,344,0.13,3008,0.31,344,0.13,3008,0.31,344,0.13
arduino:mbed_nano:nano33ble,3008,0.31,344,0.13,3008,0.31,344,0.13,3008,0.31,344,0.13
arduino:mbed_nano:nanorp2040connect,2950,0.02,344,0.13,2950,0.02,344,0.13,2950,0.02,344,0.13
arduino:mbed_portenta:envie_m7,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
arduino:mbed_portenta:envie_m7:target_core=cm4,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
arduino:samd:mkr1000,2964,1.13,344,1.05,2964,1.13,344,1.05,2964,1.13,344,1.05
arduino:samd:mkrfox1200,2964,1.13,344,1.05,2964,1.13,344,1.05,2964,1.13,344,1.05
arduino:samd:mkrgsm1400,2964,1.13,344,1.05,2964,1.13,344,1.05,2964,1.13,344,1.05
arduino:samd:mkrnb1500,2964,1.13,344,1.05,2964,1.13,344,1.05,2964,1.13,344,1.05
arduino:samd:mkrvidor4000,2964,1.13,344,1.05,2964,1.13,344,1.05,2964,1.13,344,1.05
arduino:samd:mkrwan1300,2964,1.13,344,1.05,2964,1.13,344,1.05,2964,1.13,344,1.05
arduino:samd:mkrwan1310,2964,1.13,344,1.05,2964,1.13,344,1.05,2964,1.13,344,1.05
arduino:samd:mkrwifi1010,2964,1.13,344,1.05,2964,1.13,344,1.05,2964,1.13,344,1.05
arduino:samd:mkrzero,2964,1.13,344,1.05,2964,1.13,344,1.05,2964,1.13,344,1.05
rp2040:rp2040:rpipico,2984,0.14,344,0.13,2984,0.14,344,0.13,2984,0.14,344,0.13

@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: code Related to content of the project itself type: enhancement Proposed improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants