STM32 BM680, bsec_set_configuration

Hi,

 

How can I load the "generic_33v_3s_4d" configuation on a STM32 to bsec_set_configuration();

 

Johannes

 

Best reply by BSTRobin

Hi JohFlo,

Did you copy config file bsec_config_iaq from "BSEC_1.4.8.0_Generic_Release\config\generic_33v_3s_4d\bsec_serialized_configurations_iaq.c"?

uint32_t config_load(uint8_t *config_buffer, uint32_t n_buffer)
{
// ...
// Load a library config from non-volatile memory, if available.
//
// Return zero if loading was unsuccessful or no config was available,
// otherwise return length of loaded config string.
// ...
memcpy(config_buffer, bsec_config_iaq, sizeof(bsec_config_iaq));
return 0;
}

View original
4 replies
Resolved