09-27-2021 11:44 PM - edited 09-28-2021 02:34 AM
While testing the BMA400, the reference values do not update correctly.
I'm using Development Desktop 2.0 with the BMA400 shuttle board to test the Generic Interupt functions.
Both GEN1 and GEN2 are enabled.
They are configured the same, except for the "activity reference update":
- GEN1 is set for "every time by data source"
- GEN2 is set for "one time".
I constantly move the board around, while pressing "Read".
- The reference values for GEN1 update as expected.
- The reference values for GEN2 do not update at all. It behaves the same as "manual" mode.
I have confirmed that GEN2INT_CONFIG0.act_refu=01.
Updating the reference values "every time" means that slow changes are not detected. For this, we need "one time".
"Manual" updates would work, but this increases the MCU comms traffic. Is there another solution?
Edit:
I have new insight, but it does not solve the problem.
I am now playing with the "manual update" mode. I can write to the reference registers (0x53, 0x54).
However, once written, the registers cannot be changed while the interrupt is enabled.
In the datasheet, section 4.7:
"Any change of an interrupt configuration must be executed when the corresponding interrupt is disabled."
So, to change the reference values in "manual update" mode:
1. disable the interrupt
2. change the register value
3. enable the interrupt. (Oddly, we need to enable the interrupt to make the change appear in the register.)
Using this information, I tried the "one time" update mode again.
The "one time" update mode works, but only by toggling the interrupt "enable" bit, off and on, each time the interrupt fires.
Is this how it was designed? This seems bizarre.
Additionally, toggling the "enable" bit causes the reference registers to update, even if the interrupt has not fired.
This is not expected behaviour.
Solved! Go to Solution.
09-28-2021 07:49 AM
Hello dsherman,
First, could we know what functions do you want to implement with GEN1 and GEN2?
09-29-2021 01:07 AM
I'm just trying to figure out how this interrupt works. The application is irrelevant, but I'll give you an example.
12-14-2021 07:19 AM
Hello dsherman,
For your description "This means that this interrupt cannot be used for this application", you could see it from data sheet, GEN1 and GEN2 means generic interrupt 1 and 2, these would generate interrupt.
This article will be helpful for your reference. https://community.bosch-sensortec.com/t5/Knowledge-base/BMA400-Evaluation-Guide/ta-p/6229
12-15-2021 01:26 AM - edited 12-15-2021 11:31 PM
@BSTRobin,
Three months after I tell you your product does not perform as documented, you send me a beginner's guide? Really, @BSTRobin?
In another thread, I documented a different problem with the logical combination of GEN1/GEN2, and you completely ignored it, asking instead, "What functions does your product need?" Really, @BSTRobin?
@BSTRobin, I spent many hours analyzing and documenting these problems in your chip/documentation. Now, three months later, you write back with "you could see it from data sheet"? YOUR DATASHEET IS WRONG. That's what I have been telling you.
This is the second time you have completely ignored what I am saying, @BSTRobin. Honestly, @BSTRobin, isn't this your job? It isn't mine, and yet here I am, troubleshooting your product for you, again.
When an experienced developer informs you about deep flaws in your silicon, don't ever respond with "What functions does your product need?" and send a link to a beginner's guide. That response insults my intelligence as a product designer, and it damages your company's reputation.
I have posted in three threads about the BMA400. In each case, I identified a different function that does not work as advertised:
The other moderator, @Vincent, understood what I wrote about the Orientation Changed interrupt, and admitted that there was a problem in the silicon. Your responses, @BSTRobin, have been insufficient, showing very little understanding of the product.
Okay, let's do it your way. Here's a screnshot of the datasheet, with a function outlined in red.
This function does not work. Try it. Set up a generic interrupt with "one-time" update. Read the reference values. When the interrupt triggers, read the reference values. They have not changed. They were not "updated after triggering the interrupt".
Please, please, @BSTRobin, do your job. If you can understand that these problems are real, then you will understand that Bosch should make a BMA400-B that fixes them.
At very least, the BMA400 product documentation should describe these issues as "known bugs".
Your customers are skilled engineers. We are extremely competent at product design. To be effective at our jobs, we must be able to TRUST THE DATASHEET. We select products (like this one) because they perform certain functions. When those functions don't work as described, these flaws can cause hundreds of hours of misery and lost productivity. Circuit boards are designed and produced, parts are purchased, prototypes assembled; when your products do not perform functions as described, the costs add up to many thousands of dollars.
The BMA400 is a remarkable device with unique abilities, and we will continue to use it -- but with trepidation. We do not trust the datasheet, and we are extremely disappointed that Bosch does not seem to care. On a scale of 1 to 10, Bosch gets an "10" for design, a "7" for implementation, and a "2" for product support. Bosch can do better than this.
I do not expect you to reply to this post, @BSTRobin. I have been rude, but you deserve to hear this criticism. If other potential users of the BMA400 read this post, and if it helps them to understand the chip's abilities and shortcomings, then this thread will have achieved its purpose.