In our project we are using BGLIB library in the STM32 controller and using BGAPI to process the received commands and events.
So its consuming almost 8k of the RAM memory of the controller.
If we try to reduce the BGLIB_QUEUE_LEN, the application is getting crashed after couple of commands and events transaction. Is there any reason behind this fixed size of 30 for this gecko_queue ?
Is there any solution to reduce this queue length.??
What does your main loop look like? How often do you call either gecko_peek_event() or gecko_wait_event()?
The event queue length 30 seems very large to me, I would expect you can easily reduce it to 10 or even less. The only way for the queue to become full should be if there are lots of events piling up while you are waiting for response to a command. And most of the BGAPI commands execute fast and return almost immediately.