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

defining MPU in SES insted of Keil - Target options

Hello,

I have two quastions

(1)

     I am trying to run nrf5-mpu-simple written by , but there are just Keil's examples on Github and I am working in SES. There is written : Define your MPU in Keil's "Target Options -> C/C++". Use define "MPU9255", "MPU9150", or "MPU60x0". But how can I do the same thing in SES? I tried define it as is shown in attached printscreen, but it had error saying : "too many filenames given. Type cc1 --help for sage". So how can I do this right?

(2)

Also planning to migrate to SDK15.2 with these drivers, so the question is, what changes should I do? I read on infocenter that the drivers changed a bit, so I think it will be necesary to overwrite the nrf_mpu_twi driver where the old TWI API is used and also GPIO library for interrupts (not using yet, but planning). And what should be changed in config.h when migrating to SDK15.2?

using SDK 14.2, https://github.com/Martinsbl/nrf5-mpu-examples , nRF52832 with SES and MPU6050

thank you

Parents Reply
  • I have read it already, but problem is that don't know in which format and how to pass data to function. Let me explain you, there is written in attached screen I sended that bits 0 to 2 in register 26  are responsible for lowpass filter. There is that when you pass number 7 to these bits, it will do some setup, if you pass 6 another setup... So may I pass data to this register by array format? Like this uint8_t data[8] {0,0,0,0,0,1,1,1} ? Is it right? 

    Thanks 

Children
Related