-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BMA280 Sample Code #22198
Comments
The The bma280 has two variants, default and bmc150 (differentiated in chip id). Additionally the i2c address differs for different packages (e.g. bmx055 contains 3 different sensors with one of them being bma280 compatible) and wiring (up to 3 pins pulled low or high on reset on bmx055, 1 pin on plain bma280). I2C address and variant are configured via Kconfig (old style) or device tree (new style), this was changed in: For the I2C address and chip id you have to look it up in the sensor data sheet. If you cannot find out the wiring, just try different adresses in the data sheet. I once put this together for the calliope_mini board which has a bmx055 with integrated bma280/bmc-150 variant, which i got to work by adjusting the parameters mentioned above: https://github.com/LeBlue/zephyr/commits/board-calliope-mini |
I pulled the latest changes and move to device tree option.
Device Tree correctly specifies the I2C Address which is 0x18 in my case.
It still fails at the same stage: device_get_binding.. Any more inputs to debug will be appreciated. Is there any way to check whether a particular address is present or not , like i2cdetect on linux |
@md-jamal either set a breakpoint on |
How can we set a breakpoint in zephyr? Sorry i just started using zephyr |
I got it working after adding the following into device tree overlay.
I want to use the interrupt mechanism, i don't want to continuously poll for data, i have added |
I am looking into
|
This is a hidden (internal) Kconfig symbol that gets selected when you set |
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time. |
Hi Guys,
I see we have BMA280 Support in
zephyrproject/zephyr/drivers/sensor/bma280
, but there is no sample in Samples folder.So, i tried to create a sample project for it.
Flashing the program and seeing the console logs. it fails with "Could not get BMA280 device"
There is some silly mistake i made, can you please help me in it.
The text was updated successfully, but these errors were encountered: