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.

TMDSCNCD28388D: NO_SYS for Modbus TCP Protocol using lwIP Stack

Part Number: TMDSCNCD28388D

Hi,

I'm making a program that receives TCP packets from Ethernet using enet_lwip example, I've encountered the same issue with the link below.

Modbus TCP using lwIP stack

The symptom is not being able to enter the MB_recv equation, may I know how to fix this issue?

Also, I check the Lwip_2.0.2 website, is it because of the need to implement the function for the queue?

But I can't understand how to implement "queue_try_get" function, and I don't run an OS on my system(NO_SYS).

Hope to get an answer.

Thanks in advance.

/* Check for received frames, feed them to lwIP */
lock_interrupts();
struct pbuf* p = queue_try_get(&queue);
unlock_interrupts();