04-11-2022 10:03 AM
I am integrating the BMP3 driver (https://github.com/BoschSensortec/BMP3-Sensor-API) intn a TI-RTOS project.
The code in bmp3.c allocates variable-length arrays on the stack in bmp_set_regs and bmp_get_regs and this fails. I think the failure is of the ARM C compiler, not something related to TI-RTOS. Possibly the issue is the lack of heap (not even sure if my project is configured with or without a heap, I certainly do not use malloc).
Any advice? Thanks, Sivan
04-11-2022 11:13 AM
Do you mean your error appeared in the folloing line on your platform?
uint8_t temp_buff[len * 2];
04-11-2022 11:33 AM
04-11-2022 11:34 AM
And also in
uint8_t temp_buff[len + dev->dummy_byte];
04-19-2022 08:46 AM
As your software environment didn't support this type of memory allocation, you could define a global array.