Announcements

Equip yourself to optimize AURIX™ MCUs for Evs at the EV Webinar. Click here to register.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

AURIX™ Forum Discussions

User39504831
Level 2
Level 2
First like received First solution authored 10 replies posted

Hi

Am using TC37x lite kit and implementing UDP using lwip stack. 

Here's how am using `pbuf`

`

char buffer[100] = "hello world";

struct pbuf *p = pbuf_alloc(PBUF_TRANSPORT, sizeof(buffer), PBUF_RAM);
`
after this am getting `p` as NULL.
 
Am using default linker script ( generated from ADS), psram_x = 64k and heap = 4k
This udp implementation is the only one currently running on my board. So am confused as to why memory is not getting allocated
Need some help
Thanks
0 Likes
1 Reply
dw
Moderator
Moderator
Moderator
100 likes received 750 replies posted 10 likes given

Please trace into pbuf_alloc, and then should know the reason. 

0 Likes