05-12-2024 04:39 PM
Hi,
We are working on a project that interfaces BMM350 over I2C with STM32WB microcontroller. We have integrated the BMM350-SensorAPI into our project.
In the sensor init process, init fail observed during bmm350_magnetic_reset_and_wait(). Specifically when attempting to set the BR bit in the PMU_CMD register.
Where pmu_cmd_stat_0.pmu_cmd_value is: 0x00 instead of the expected: 0x07.
More over pmu_cmd_stat_0.pmu_cmd_busy is always 1 during bmm350_get_pmu_cmd_status_0. After executing bmm350_magnetic_reset_and_wait the pmu_cmd_stat_0.cmd_is_illegal is becoming 1.
We are unable to find related to this in the datasheet. If we comment out the error check and continue on with the init process then reading the magnetometer xyz data returns the reset values (0x7F7F7F). bmm350_get_compensated_mag_xyz_temp_data is giving the values: x = -6793.00879, y = -6408.92871, z = -5296.71094, temperature = 8385.75586
We have purchased the sensor from Digi key.
Herewith I attach the schematic, that shows the hardware interface between BMM350 and STM32WB microcontroller. Could you please let me know is there any issue with hardware connections.
Thanks,
J. Chandra Sekhar
05-14-2024 09:19 AM
Hi chandrasas010,
Thanks for your inquiry.
BMM350 pin A1 INT does not require a pull-up resistor and can be directly connected to the host.
It is necessary to ensure that the C37 capacitor is used in accordance with the requirements in the BMM350 data sheet. For the 2.2uF external cpacitor a low-inductance low-ESR type is recommended.
After checking the above hardware, run the BMM350 sensor API and examples again.
05-27-2024 01:00 PM
Hi BSTRobin,
I have made the below changes as you suggested:
1. updated the C37 capacitor (2.2uF external cpacitor) to CGB4B3X7R0J225K055AB.
2. Connected pin A1 INT directly to host (MCU) with out pull-up resistor.
Still the issue remains the same as i described you in the previous query. We are provided voltage as 1.5V to VDD. Is this would cause above issue?
Request your support in resolving the query.
Thanks,
J. Chandra Sekhar