07-05-2021 02:25 PM
Hii,
I am using BMA423 for testing & evaluation purpose.I have to use activity/motion detection which comes under wearable features.To enable wearable features, i have downloded configuration file from bosch sensortech. Please see Attachment_1
I am trying to initialize BMA423 by loading configuration file to enable wearable features, for which i am following sequential steps as mentioned in bma423 application note.Please see Attachment_2
I am trying to write config file to 0x5E(feature_In) register in several steps of 2-2 Bytes.
I am taking care of necessary register settings before loading config file.Loading does not complete and it produces error after writing few Bytes of config file. Further as the configuration is not completed, 0x2A register does not Read 0b1.
Please tell me the correct steps/procedure to load configuration file to enable wearable features.
07-05-2021 04:58 PM
Hello Aishwarya,
There was BMA423 example code in github, you could refer it directly.
https://github.com/BoschSensortec/BMA423-Sensor-API/tree/master/examples/generic
07-07-2021 12:35 PM
Hii BSTRobin,
Thank you for your proactive response.
I had already gone through the driver files and feature application code that you are referring to. How the configuration file is loded is not clear in the github code that you had shared because configuration is written to 0x5E register however the index is split into MSB and LSB Bytes which are written to 0x5C and 0x5B registers. There is no information about 0x5B and 0x5C in datasheet and application note. Even configuration steps as mentioned in application note is also not referring to 0x5B and 0x5C registers while loading configuration file then why are these two registers used in the driver code for configuration.
I have included the configuration file in my source code and trying to load it to BMA423 to enable wearable feature(Motion Detection) but i am not clear on the procedure. Request you to provide me clear steps for loading the configuration file from my applicaton code through I2C Communication without using intermediate driver.
Shall be waiting for positive response from your side.
07-13-2021 08:28 AM
Hello Aishwarya,
Driver code in github was portable. bma4_common.c is a file related to the hardware platform. You don't need to modify other files, quickly migrate them to your platform.
https://github.com/BoschSensortec/BMA423-Sensor-API/blob/master/examples/generic/common/bma4_common....
07-14-2021 09:28 AM
Hi...the as it were put I may really discover the secretive config "record" is in their **bleep**ty C driver. It's litterally a 6 KILOBYTE cluster of crude, undocumented bytes that takes up 325 lines of code. How anybody thought this was a great thought is past me. It makes the sensor nearly unusable by any uC with less than 64 kB of streak.