temperature values is always 0

Hi ,

 

I am trying to integrate BESEC software to interface BME680  with EFR32BG22(Cortex M33).I sucessfully integrate libalgobsec.a file for GCC cortex M33F into my project.The project get  compiled sucessfully without any error.

I have problem with the output data from the BME680.The temperature value remain 0 all the time, and CO2,Iaq and breath values take quiet long time to show-up (initially they all shows 0 values)

My program take reading every 3 sec. I am using simplicity studio IDE and GNU ARM v10.2.1 compiler.

I susppect there is  someting wrong with bsec_init()(initialization in BESEC library) function .It looks like  temperature functionality of BME680 is not getting initialize properly.

I am attaching the snapshot output console:

Please help me to resolve this issue.

 

Thank You

 

Best reply by Minhwan

Hello, 

 

I looked into your code, and your sleep fucntion is USTIMER_Delay which could be micro second delay. 

However, our sleep function is mili second based. 

/*!
* @brief System specific implementation of sleep function
*
* @param[in] t_ms time in milliseconds
*
* @return none
*/
void sleep(uint32_t t_ms)
{
// ...
// Please insert system specific function sleep or delay for t_ms milliseconds
// ...
}

Could you modify it and run it again ?

Thanks, 

 

View original
30 replies
Resolved