Hi team,
I am integrating bmp180 and mpu6050 into a beacon code.While integrating,I am getting the following error
"NRF_ERROR_MODULE_ALREADY_INITIALIZED".
Please help me to solve this issue.
Thanks in advance!
Hi team,
I am integrating bmp180 and mpu6050 into a beacon code.While integrating,I am getting the following error
"NRF_ERROR_MODULE_ALREADY_INITIALIZED".
Please help me to solve this issue.
Thanks in advance!
MODULE ALREADY INITIALIZED
So don't try to initialise it when it is already initialised!
If it is not initialised,mpu sensor is not working properly.Please help me to solve !
If it wasn't already initialised, you wouldn't get that error!
Like Andrew says,
the information you gave is not enough for us to help you.
It seems to me that you have a logic somewhere which is conditional and initializes your module twice. Please attach same code samples or the file that gives you this error.
I am using nrf52840 DK board,sdk 14.2 and Keil IDE.I have the complete beacon code in which i can able to read and write,uuid,major,minor and tx power via nrf connect app.With that beacon code,I integrated mpu6050 sensor code.I got proper values.In addition to that,While I am integrating bmp180 code with that(beacon+mpu sensor code),I am getting "NRF_ERROR_MODULE_ALREADY_INITIALIZED".
While I adding the following lines to that code in main.c,I am getting that issue.
static void lfclk_config(void)
{
uint32_t err_code;
err_code = nrf_drv_clock_init();
APP_ERROR_CHECK(err_code);
nrf_drv_clock_lfclk_request(NULL);
}
I don't know where the module is initialised already.
Thanks in advance!
Although ISTR that, with some Nordic APIs, this "error" (sic) is benign - so it can just be ignored.
You need to find where this is happening in your code, and see if it actually is a problem.
Use the debugger!
Although ISTR that, with some Nordic APIs, this "error" (sic) is benign - so it can just be ignored.
You need to find where this is happening in your code, and see if it actually is a problem.
Use the debugger!