As we look to eventually transition from a Teensy 4.1 microcontroller, which uses the Arduino Framework, to an STM32-based ARM chip, which is lower-level, we'll have to change much of the code for individual sensors to fit the new architecture of the computer's main chip. This means that the original code that we currently have, which uses the sensor's Arduino libraries, will no longer work.
What we'll have to do is now go inside the library's code, and start to try to understand how it works, and how this library can be modified for use with the STM32 chip. The tasks for this are:
[ ] Go into the library's code and understand the different files and hierarchical structure of the code
[ ] Look at the sensor's datasheet and see what registers/pins the code would need to write to and read from to help understand the library as well as how the sensor works
[ ] Identify key lines/code segments that are microcontroller-specific, and would have to be changed for the STM
[ ] Mark down these lines in a document (or just add them as a comment on here)
[ ] Research alternative libraries that may transition better or even work by default with the STM32
As we look to eventually transition from a Teensy 4.1 microcontroller, which uses the Arduino Framework, to an STM32-based ARM chip, which is lower-level, we'll have to change much of the code for individual sensors to fit the new architecture of the computer's main chip. This means that the original code that we currently have, which uses the sensor's Arduino libraries, will no longer work.
What we'll have to do is now go inside the library's code, and start to try to understand how it works, and how this library can be modified for use with the STM32 chip. The tasks for this are:
BMP390 Datasheet BMP390 Library STM32 Datasheet