I am using the Bosch API that I modified to work with the nRF52832 and the Grove Step Counter Grove - Step Counter(BMA456) | Seeed Studio Wiki.
I am attempting to see the step counter output or if the interrupt triggers but it seems it doesn't as when reading either register they are always 0.
I would love to hear any ideas of how to modify my code or even if you think perhaps the Grove step counter may be to blame. Thank you for any help.
Here is the output on Putty:
This is the code I am currently working on:
I have switch to the BMA456w code as I am trying to impliment the step tracker for a wearable. The big issue is the interrupt status register never triggers the interrupt for the step tracker. When I use the dubugger and check the registers inreal time they never change values. The step counter stays zero. This BMA456 works when I use an arduino and the code from seeed. The step tracker does start counting up. Thank you so very much for any help.
There are different versions(BMA456W, BMA456H, BMA456MM, BMA456AN) of BMA456 sensor API on Github, so I used macro definitions to distinguish them. You only need to care about the macro definition and code corresponding to the step counter.
The reference code runs on an embedded platform using C language, and you can port it to nRF52832 and see the running results.