This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Error: "PBM_free: Invalid Packet"

Hi,

I am writing a code that communicates with a PC using NDK. I have based my code on the helloWorld example that is included in the mcsdk's demos folder. My application receives a video frame of lenght 4096 bytes using a messaging protocol, (the frame is divided into three packets. UDP is used.) application unifies the frame and then by using the same messaging protocol it sends the exact same frame back to the receiver, During this process, first two frames are sent OK meaning that six packets are sent OK. But my code cannot send the first packet of third frame information, 7th packet. When it tries to use the sendto function, messages appear on the console saying: PBM_free: Invalid packet. This messages continuously appear until I terminate the running code, and there is a counting field starting from 00000.829. The message I see is in the following format;

00000.829 PBM_free: Invalid Packet

00000.830 PBM_free: Invalid Packet

00000.831 PBM_free: Invalid Packet

And it counts up. I am stuck here and I need to solve this problem. Can anyone help?

Thanks,

Tunc

  • Tunc,

    What is platform used in this test? C6678 EVM? What is the version of MCSDK? In your application, you called sendto() with a packet with 4096 bytes and let NDK to break it down or you call sendto() three times for each smaller frame?

    Also, maybe you can trace back: the invalid packet warning from stack\pbm\pbm.c. For example, set a break point at PBM_enq() to see if the packet pointer is null or type is incorrect? Is your packet inside local L2 (.far:NDK_PACKETMEM)? Can you also check NDK user guide spru523h.pdf, section 3.5.3.6 PBM_enq: Invalid Packet: Level DBG_ERROR?

    Regards, Eric

  • Hi,

    I am using C6678 EVM. My MCSDK version is 2.01.02.06.

    I generate an array of length around 4100 bytes but I do manually divide this large packet into smaller packets in order to get packets that are suitable for my communication protocol, so, I always provide packets to sendto function with size less than 1500, to be precise, 1411.

    I currently do not have access to my test setup but I will try your other suggestions in paragraph 2. Thank you for your response.

    Regards,

    Tunc.