NSAPI_ERROR_NO_MEMORY on network

Hello,

I want to redirect a MPEG TS video stream using STM32H743. I try to read UDP packets and send them without a change to another IP/Port. But at some point I get NSAPI_ERROR_NO_MEMORY error and video is not playable. The device doesn’t read/send all the packets.
1- What does NSAPI_ERROR_NO_MEMORY means when using sendto network function?
2- Why 480MHz CPU can’t handle a 4Mbps video?

Anything will be appreciated.
Thank you

It sounds as if you’re running out of RAM. Try using the memory tracing API to analyse how you’re using memory and see available space on the heap and stack - this way you’ll be able to trace at which exact point you run out of memory and hopefully see why.

The frequency of the CPU clock is seemingly irrelevant in this case!

Adam