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

Add MPU6050 to FATFS example

Hey guys,

I am using NRF51DK board and SDK v12. I want to add MPU6050 library to fatfs example but I have some problems. When i add "mpu6050.h" to my project i get "Not enough information to list image symbols." error. I declared my libraries, added to project items and include paths section.nRF5_SDK_12.3.0_d7731ad.7z You can examine my example in "examples/peripherals/fatfs/pca10028/blank/arm5_no_packs".

  • A header is not a library:  you also need to add the code of the library - ie, its implementation.

  • with my "mpu6050.h" file there is "mpu6050.c" file too. Did you download my SDK folder? Thanks for your answer.

  • Hi,

    It would have been easier to answer the question if you had posted the full error message. Then we would have seen which symbol was not found by the linker. I attempted to build your project, and got the following error:

    .\_build\nrf51422_xxac.axf: Error: L6218E: Undefined symbol twi_master_transfer (referred from mpu6050.o).

    This tells us that you have not compiled the twi_master_transfer function, so you need to add the relevant file to your Keil project. This is twi_hw_master.c from \components\drivers_nrf\twi_master\deprecated\. Building again you now get this error:

    ..\..\..\..\..\..\components\drivers_nrf\twi_master\deprecated\twi_hw_master.c(42): error:  #5: cannot open source input file "twi_master_config.h": No such file or directory
      #include "twi_master_config.h"
    ..\..\..\..\..\..\components\drivers_nrf\twi_master\deprecated\twi_hw_master.c: 0 warnings, 1 error

    Add  
    ..\..\..\..\..\..\components\drivers_nrf\twi_master\deprecated\config to the include path to fix this last issue.

Related