This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

UDP buffer allocation fails

Hello,

I'm trying to send UDP-packets from an LM3S9B96 to the PC. But every time when I call the Library-function "udp_get_buf(len);" I get an Hardfault-IRQ.
Receiving the UDP-Packets from the PC is no problem, so my initialization from the UDP should be ok.
Any ideas what could be wrong?

Thank you.

Regards,
Mike

Parents
  • If you are using the StellarisWare's lwIP Wrapper Module, then maybe, it is good to check the


    The lwIPInit() function is used to initialize the lwIP TCP/IP stack. The lwIPEthernetIntHandler() is
    the interrupt handler function for use with the lwIP TCP/IP stack. This handler will process transmit
    and receive packets. If no RTOS is being used, the interrupt handler will also service the lwIP
    timers. The lwIPTimer() function is to be called periodically to support the TCP, ARP, DHCP and
    other timers used by the lwIP TCP/IP stack. If no RTOS is being used, this timer function will simply
    trigger an Ethernet interrupt to allow the interrupt handler to service the timers.

Reply
  • If you are using the StellarisWare's lwIP Wrapper Module, then maybe, it is good to check the


    The lwIPInit() function is used to initialize the lwIP TCP/IP stack. The lwIPEthernetIntHandler() is
    the interrupt handler function for use with the lwIP TCP/IP stack. This handler will process transmit
    and receive packets. If no RTOS is being used, the interrupt handler will also service the lwIP
    timers. The lwIPTimer() function is to be called periodically to support the TCP, ARP, DHCP and
    other timers used by the lwIP TCP/IP stack. If no RTOS is being used, this timer function will simply
    trigger an Ethernet interrupt to allow the interrupt handler to service the timers.

Children