how do you change TCPIP_MBOX_SIZE in LWIP in S32 Design Studio

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how do you change TCPIP_MBOX_SIZE in LWIP in S32 Design Studio

1,064 Views
MattJCole
Contributor V

 

I changed ENET_RXBD_NUM in the processor expert but I need to change TCPIP_MBOX_SIZE DEFAULT_UDP_RECVMBOX_SIZE, DEFAULT_TCP_RECVMBOX_SIZE, and DEFAULT_RAW_RECVMBOX_SIZE to handle the new value I set ENET_RXBD_NUM. How do I change these #defones using the processor expert?

0 Kudos
5 Replies

1,011 Views
MattJCole
Contributor V

I just tried that and I still get the warning. The problem is the define added in the "user settings" tab is put in lwipcfg.h and the define I am trying to change is still in lwipopts.h with the old value. I think the reason you are not seeing the warning is because you are setting DEFAULT_UDP_RECVMBOX_SIZE to the same value that is in lwipopts.h.

0 Kudos

941 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hmm, that's strange, I used several values and the warning disappeared after rebuilding the project.

Regards,

Lukas

0 Kudos

1,028 Views
MattJCole
Contributor V

That gives a compiler warning. The other #define in lwipopts.h is set to old value.

C:/TestArea/BuoyOper/BuoyOper_Z4_0/Generated_Code/lwipcfg.h:113:0: warning: "DEFAULT_UDP_RECVMBOX_SIZE" redefined

#define DEFAULT_UDP_RECVMBOX_SIZE 20

0 Kudos

1,021 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

You need to clean and rebuild the project. Then it should work.

Regards,

Lukas

0 Kudos

1,034 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

this can be added to User Settings like this:

lukaszadrapa_0-1649845317509.png

Regards,

Lukas

0 Kudos