cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX 5.6.0 doesn't generate LwIP IP Address Settings

thomasguenzel
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
Khouloud ZEMMELI
ST Employee

​Hello @Thomas Günzel​ 

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

Best Regards,

Khouloud

View solution in original post

4 REPLIES 4
Khouloud ZEMMELI
ST Employee

​Hello @Thomas Günzel​ 

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

Best Regards,

Khouloud

PTiha
Senior

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.

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

Thanks for the information!

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

Best regards,

Peter