Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf52 with MPU9255

Hi ,I am using nrf52 DK with mpu9255.I am using source code given here here.of this link,I have taken  'nrf5-ble-data-ready-interrupts' example .code  builts fine in keil v5 though.I am not getting accel values.

help will be appreciated.

Parents Reply
  • Hi,

    Can you try download a fresh copy of the examples from github and try again: Please use the pin described in the example:

    In nrf_drv_mpu_spi.c:

    #define MPU_SPI_MISO_PIN    28 // MPU SDO. 'AD0' on MPU breakout board silk screen
    #define MPU_SPI_MOSI_PIN    4  // MPU SDI. 'SDA' on MPU breakout board silk screen
    #define MPU_SPI_SCL_PIN     3  // MPU SCLK. 'SCL' on MPU breakout board silk screen
    #define MPU_SPI_CS_PIN      29 // MPU nCS. 'NCS' on MPU breakout board silk screen

    In main.c

    #define MPU_MPU_INT_PIN     30

    And remember to program the Softdevice in addition to the application. 

    It should work straight out of the box. If it doesn't there must be something wrong with your kit, sensor, or wiring. 

Children
Related