My task is to choose the cheapest microcontroller for use in the project.
What size of flash memory is needed to implement the BMI160 driver?
The required flash memory size depends on the API functions recalled in the customer code and the optimization of the compilation tool.
You can find the BMI160 driver at https://github.com/BoschSensortec/BMI160_driver