11-11-2019 02:11 PM - edited 11-11-2019 02:17 PM
Hi folks,
I am encountering a problem with the amount of space the program uses of my controllers flash when calling specific functions of the API from https://github.com/BoschSensortec/BMI160_driver
I am using a SAMD21G18A with 256 kB of Flash. The bmi160_init(...) or bmi160_get_sensor_data(...) functions work fine and I am using about 58 kB (22%) of the controller's flash. However when I additionally call "bmi160_start_foc(...)" my flash gets overflown by 472 Bytes, that means this function needs about 200 kB?
Something similar happens when I call "bmi160_perform_self_test(...)".
Is that possible or is something wrong with my API?
Greetings Julian
Solved! Go to Solution.
11-13-2019 02:00 AM
These two API itself are only do some register read / write then trigger some action inside sensor.
So they should not use so much memory if the implemetation of API is correct.
Suggest you to check how you call the API in your code
12-03-2019 09:20 PM
It was a problem with my compiler and the settings of available flash. It works now, thanks for the reply!