This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Issue with MPU9250 and nrf52

Hi,

I have been working on MPU9250 examples given in here.Though the program runs fine in KeilUvision 5, the output in tera term shows only 0,0,0 for Accelerometer values in X,Y and Z. I connected the MPU as specified in the header files. Can anyone help me out?

Parents
  • hi,

    i am using same example ,

    As given in  how to use section in thelink provide i have unzipped folder in C:\kirti\Nrf52dk\nRF5_SDK_14.2.0_17b948a\examples\nrf5-mpu-examples-master\nrf5-ble-mpu-data-ready-interrupts

    code shows 1 error as type #5  when i build it in keil v5 as

    1.cannot open source input file app_mpu.h

    please help how to resolve

  • right click on the folder above Application, press Options for Target '....', go to the C/C++ tab, press on the ... button to the right of include paths, scroll all the way to the bottom & change nrf5-mpu-examples to nrf5-mpu-examples-master. The app_mpu.h file is located inside this nrf5-mpu-examples-master folder. You need to go back 5 folders from the Keil project to reach the nrf5-mpu-examples-master folder, which is why the last line should look like this: ..\..\..\..\..\nrf5-mpu-examples-master

Reply
  • right click on the folder above Application, press Options for Target '....', go to the C/C++ tab, press on the ... button to the right of include paths, scroll all the way to the bottom & change nrf5-mpu-examples to nrf5-mpu-examples-master. The app_mpu.h file is located inside this nrf5-mpu-examples-master folder. You need to go back 5 folders from the Keil project to reach the nrf5-mpu-examples-master folder, which is why the last line should look like this: ..\..\..\..\..\nrf5-mpu-examples-master

Children
Related