Skip to content
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

STM32F103C8 - bme.begin (); - program stops #114

Open
EmilM256 opened this issue May 28, 2020 · 3 comments
Open

STM32F103C8 - bme.begin (); - program stops #114

EmilM256 opened this issue May 28, 2020 · 3 comments

Comments

@EmilM256
Copy link

My program stops when I have a BME280 sensor connected to the board via I2C. Exactly on the command:
bme.begin ();
If the sensor is not connected to the board, the program works correctly, it does not stop. I get the message on the serial port:
Could not find BME280I2C sensor!
repeated every second. I used the example BME280_Modes.

This happens on the configuration:

MCU: STM32F103C8 blue pill
Arduino IDE version 1.8.12
Official Core 1.9.0
Library version 2.3.0

Interestingly, the sample sketch works correctly on the configuration:

MCU: STM32F103C8 blue pill
Arduino IDE version 1.8.12
Roger's core 2020.5.16
Library version 2.3.0

It also receives correct measurement results.

Unfortunately, I would like the library to work with the Official Core due to other peripherals and libraries.
Please help.

@finitespace
Copy link
Owner

Did you try calling Wire.begin() before bme.begin()?

@tkalfaoglu
Copy link

I have the same issue -- wire.begin() works fine but it hangs at bme.begin()

@finitespace
Copy link
Owner

Its really hard for me to give any useful advice without know what hardware you are running on, examples of code, etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants