10-17-2023 11:31 AM
Hello,
I ported the bme-680 and bsec library and using the bsec_integration.c on a erf32xg22 board with cortex m33. I managed it to get it working but I m having some issues with the local buffers in the function bsec_iot_init my code stops executing it goes into the default handler(infinte loop) when this buffers are local.
uint8_t bsec_state[BSEC_MAX_STATE_BLOB_SIZE] = {0};
uint8_t bsec_config[BSEC_MAX_PROPERTY_BLOB_SIZE] = {0};
uint8_t work_buffer[BSEC_MAX_WORKBUFFER_SIZE] = {0};
But If I dynamicaly alocate them or move them as global static variables it works.
I want also to implement the state_load and state_save functions writing to internal flash. And yet again I m having issues with the buffers when it needs to call the function state_save it just stops working. If I increase the bsec_state buffer size it goes through, but then I can not load the state.
What could cause this issues?
What are the sizes for BSEC_MAX_STATE_BLOB_SIZE,BSEC_MAX_PROPERTY_BLOB_SIZE,BSEC_MAX_WORKBUFFER_SIZE?
Regards, suad
11-28-2023 03:52 AM
Hi suads,
Has BSEC been working properly on your platform?