Skip to main content
thomasguenzel
Associate
Mar 10, 2020 1:57 AM UTC
Solved

STM32CubeMX 5.6.0 doesn't generate LwIP IP Address Settings

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.
Khouloud ZEMMELI
Khouloud ZEMMELIBest answer
ST Employee
Mar 10, 2020 7:12 AM UTC

​Hello @Thomas Günzel​ 

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

Best Regards,

Khouloud

4 replies

Khouloud ZEMMELI
Khouloud ZEMMELIBest answer
ST Employee
Mar 10, 2020 7:12 AM UTC

​Hello @Thomas Günzel​ 

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

Best Regards,

Khouloud

PTiha
Associate III
Apr 10, 2020 1:34 PM UTC

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
Apr 10, 2020 2:05 PM UTC

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
Apr 11, 2020 9:45 AM UTC

Thanks for the information!

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

Best regards,

Peter