I'm having an issue where I never get a scan complete event in my application containing critical sections (aka, scheduler and interrupts disabled). If I try running the example scan snippet, I see that a scan complete event occurs; however, in my application it does not. I have determined that this error occurs due to never receiving scan complete event from the 43362 chipset. I determined this by inspecting the status of every ASYNCEVENT_HEADER message in the event handler loop of 'wiced_process_sdpcm' in 'SDPCM.c' and logging any messages containing the correct status value.
Now, I'm running WICED 2.3.1, not 2.4.x. I understand that 2.4.x resolves some issue with SDIO Bus reliability. Is this the issue I'm seeing? Or is there something else that can trigger what I'm encountering?
Further information: I have (maybe) resolved the issue. That said I want a serious explanation as to why this "solves" the issue.
So, Early In The World, my application mallocs some tables; nothing too huge, the equivalent calls are as follows:
Currently, I don't use/need these tables, so I can get rid of these calls and everything is fine. However, we're not dealing with at Out Of Memory issue (that I can tell of), as I have reduced my static buffer usage by ~30KB and the issue still occurs. So, can someone explain what the underlying problem here is? Is there a maximum amount that can be malloced from LwIP/STM32F2 (other than the total available memory...)?