how do you change TCPIP_MBOX_SIZE in LWIP in S32 Design Studio

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how do you change TCPIP_MBOX_SIZE in LWIP in S32 Design Studio

2,352件の閲覧回数
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 件の賞賛
返信
5 返答(返信)

2,299件の閲覧回数
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 件の賞賛
返信

2,229件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

Regards,

Lukas

0 件の賞賛
返信

2,316件の閲覧回数
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 件の賞賛
返信

2,309件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

Regards,

Lukas

0 件の賞賛
返信

2,322件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

this can be added to User Settings like this:

lukaszadrapa_0-1649845317509.png

Regards,

Lukas

0 件の賞賛
返信