05-08-2022 08:51 AM - edited 05-08-2022 08:58 AM
Regards, Is it faulty BME280 or Chinese chip is inadequate defined by chip_id (0x60)? `pressure: 3000,temperature and humidity: 0`
05-08-2022 05:33 PM
Hi Root,
The data is not correct.
Could we know more about your hardware and software?
05-09-2022 01:18 AM - edited 05-09-2022 01:19 AM
Thank you BSTRobin for your attention to my problem.
- STM32f103RCT6
- GY-BM E/P 280 (Chinese module with BME280) 6 soldered wires 15cm
- SEGGER JLink
- VSCode + xpack-windows-build-tools-4.3.0-1 + xpack-arm-none-eabi-gcc-10.3.1-2.3
- latest CubeMX project makefile with Include driver bme280
- use HAL freeRTOS.
- SPI1 hardware, Full-Duplex master , interrupt disable, Frame format motorola, Data Size 8 Bits, First Bit MSB first. Prescaler 8, Baud Rate 9.0 MBits/s, NSS Hardware, Polarity low, Phase 1 edge.
Perhaps these are all my settings.
05-09-2022 09:35 AM
Hi Root,
Thanks for your feedback.
You could migrate BME280 official github example code to your platform and test it again.
https://github.com/BoschSensortec/BME280_driver/tree/master/examples
05-09-2022 03:26 PM
Good day BSTRobin
I use the code from the example, but I still get incorrect data.
Well, I can not do without a logical analyzer.
Thank you for your time