- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Am using TC37x lite kit and implementing UDP using lwip stack.
Here's how am using `pbuf`
`
char buffer[100] = "hello world";
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please trace into pbuf_alloc, and then should know the reason.
By default, lwIP utilizes a static heap for mem_malloc(), but you have the option to use the C standard library malloc () and free() instead. Additionally, lwIP allows custom memory pools to emulate dynamic allocation.
You can check which of the three memory allocation methods mentioned above is being used by your system and ensure that the memory is properly initialized.
Reference 1: Buffer and Memory Management
Chapters: 6.1 Packet Buffers (Pbufs) and 6.2 Memory Management
Link: https://www.artila.com/download/RIO/RIO-2010PG/lwip.pdf
Reference 2: lwIP Application Developers Manual
Chapter: lwipopts.h
Section: Memory Management (RAM Usage)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please trace into pbuf_alloc, and then should know the reason.
By default, lwIP utilizes a static heap for mem_malloc(), but you have the option to use the C standard library malloc () and free() instead. Additionally, lwIP allows custom memory pools to emulate dynamic allocation.
You can check which of the three memory allocation methods mentioned above is being used by your system and ensure that the memory is properly initialized.
Reference 1: Buffer and Memory Management
Chapters: 6.1 Packet Buffers (Pbufs) and 6.2 Memory Management
Link: https://www.artila.com/download/RIO/RIO-2010PG/lwip.pdf
Reference 2: lwIP Application Developers Manual
Chapter: lwipopts.h
Section: Memory Management (RAM Usage)