Skip to main content
thomasguenzel
Associate
March 10, 2020
Solved

STM32CubeMX 5.6.0 doesn't generate LwIP IP Address Settings

  • March 10, 2020
  • 2 replies
  • 1096 views

I'm using STM32CubeMX to create a project for a NUCLEO-F746ZG with the LwIP middleware.

Unfortunately, the IP Address Settings (IP, Netmask, Gateway) don't show up in the code anymore. In MX_LWIP_Init() there's just

void MX_LWIP_Init(void) {
	/* IP addresses initialization */
	/* Initilialize the LwIP stack without RTOS */
	lwip_init();
	...

without the actual address settings.

Before updating CubeMX the settings where done in between those two comments like this:

void MX_LWIP_Init(void) {
	/* IP addresses initialization */
	IP_ADDRESS[0] = 192;
	IP_ADDRESS[1] = 168;
	IP_ADDRESS[2] = 0;
	IP_ADDRESS[3] = 2;
	NETMASK_ADDRESS[0] = 255;
	NETMASK_ADDRESS[1] = 255;
	NETMASK_ADDRESS[2] = 255;
	NETMASK_ADDRESS[3] = 0;
	GATEWAY_ADDRESS[0] = 0;
	GATEWAY_ADDRESS[1] = 0;
	GATEWAY_ADDRESS[2] = 0;
	GATEWAY_ADDRESS[3] = 0;
	
	/* Initilialize the LwIP stack without RTOS */
	lwip_init();
	...

I can't seem to find them anywhere else (they only show up in the .ioc file).

Am I missing something or is this a bug in CubeMX?

I'm using CubeMX 5.6.0 and the STM32F7 MCU package 1.16.0.

Thanks,

Thomas

This topic has been closed for replies.
Best answer by Khouloud ZEMMELI

​Hello @Thomas Günzel​ 

Thanks for your feedback , the fix will be available in the next CubeMX release

Best Regards,

Khouloud

2 replies

Khouloud ZEMMELI
Khouloud ZEMMELIBest answer
ST Employee
March 10, 2020

​Hello @Thomas Günzel​ 

Thanks for your feedback , the fix will be available in the next CubeMX release

Best Regards,

Khouloud

PTiha
Associate III
April 10, 2020

Hello,

In the afternoon I tried the latest CubeMX (5.6.1). The problem is the same: the IP address settings are missing in the generated code.

Khouloud ZEMMELI
ST Employee
April 10, 2020

Hello @PTiha​ ,

The fix will be available for the 6.0.0 MX version. The 5.6.1 is an exception version for the most critical bugs.

Best regards,

Khouloud

PTiha
Associate III
April 11, 2020

Thanks for the information!

When is the next big version (maybe 6.0) expected?

Best regards,

Peter