I am trying to use mpu6050 with nrf52840, using bare metal programming. The program gets stuck at this loop -
what is the problem here? The full code I am using is -
I am trying to use mpu6050 with nrf52840, using bare metal programming. The program gets stuck at this loop -
Hi,
You are using Zephyr or doing bare-metal?
We recommend using latest SDK for new projects that is Nordic Connect SDK 2.7 as of today and is based on zephyr.
You will find many samples for connecting different kind of sensors and using zephyr API.
We also have lessons on using different on-SOC peripherals, e.g using I2C with sensor. (taking the course from start will also be beneficial).
I want to write a bare metal code. I am using VS code to write the bare metal program
Are you using NRF5 SDK? Why are you using zephyr drivers?
I would recommend you to start with some example codes provided in the SDK.
ok sir, I'll try the examples. thank you for the help
ok sir, I'll try the examples. thank you for the help