cwalter-at / freemodbus

BSD licensed MODBUS RTU/ASCII and TCP slave
768 stars 393 forks source link

LWIP rx pool allocation fails with modbus #42

Open MatTab3335 opened 11 months ago

MatTab3335 commented 11 months ago

Hello! I'm trying to run modbus tcp on lwip stack (NUCLEO-H755ZI-Q), so the problem:

Modbus init sequence:

 if(eMBTCPInit(0) != MB_ENOERR)
    return;

  if(eMBSetSlaveID( 1, TRUE, Vendor, sizeof(Vendor)) != MB_ENOERR)
    return;

  if(eMBEnable() != MB_ENOERR)
    return;

  while(1) 
  {   
    eMBPoll();
    MX_LWIP_Process();    
  }