You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I noticed the version of sl_si91x_host_allocate_buffer() in malloc_buffers.c calls malloc directly, won't this cause issues with FreeRTOS's pvPortMalloc?
Also, the version of sl_si91x_host_allocate_buffer() in static_buffer.c seems to have dependencies on lwip pbuf, and doesn't seem to check the length or increment the buffer offset to allow for multiple callers? I see this function can be called by multiple callers. it also probably needs a critical section between tasks.
Thanks
The text was updated successfully, but these errors were encountered:
Hi, I noticed the version of sl_si91x_host_allocate_buffer() in malloc_buffers.c calls malloc directly, won't this cause issues with FreeRTOS's pvPortMalloc?
Also, the version of sl_si91x_host_allocate_buffer() in static_buffer.c seems to have dependencies on lwip pbuf, and doesn't seem to check the length or increment the buffer offset to allow for multiple callers? I see this function can be called by multiple callers. it also probably needs a critical section between tasks.
Thanks
Hey -
I also had this issue, though there's a relatively simple workaround (at least for IAR EWARM). Under the linker tab, add the following command line option. This should redirect any/all instances of 'malloc' within your code to 'pvPortMalloc', and ditto for 'free'.
Hi, I noticed the version of sl_si91x_host_allocate_buffer() in malloc_buffers.c calls malloc directly, won't this cause issues with FreeRTOS's pvPortMalloc?
Also, the version of sl_si91x_host_allocate_buffer() in static_buffer.c seems to have dependencies on lwip pbuf, and doesn't seem to check the length or increment the buffer offset to allow for multiple callers? I see this function can be called by multiple callers. it also probably needs a critical section between tasks.
Thanks
The text was updated successfully, but these errors were encountered: