cancel
Showing results for 
Search instead for 
Did you mean: 

LwIP BYTE_ORDER compiler warning

matthewgkerr
Associate III
Posted on May 23, 2017 at 02:09

Hi,

I am using CubeMX to generate a project using LWIP. The following files is added to my project which defines BYTE_ORDER:

<project>/Middlewares/Third_Party/LwIP/system/arch/cpu.h

This define generates a compiler warning because it is defined in my toolchain:

<ac6 toolchain>/arm-none-eabi/include/machine/endian.h

To suppress the warning, i wrap the cpu.h defined with &sharpifndef BYTE_ORDER/&sharpendif

However I then need to be careful when regenerating code from CubeMX, to rejest any changes it makes to this file.

Am i doing this correctly? Or could you make the same changes to your supplied code?

Thanks,

Matt.

#lwip
1 REPLY 1
Bino
Senior
Posted on July 05, 2017 at 15:23

This issue has been fixed on newest Firmware packages (containing LwIP).

You should see this update by taking a recent 

STM32CubeMX/Firmware package version.

If not, please give the MCU and STM32CubeMX version used.

BR.

Eric