cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4 lwIP

Doug Kehn
Senior
Posted on June 25, 2016 at 14:29

Hi Everyone,

I'm needing to attach a 4G radio (USB/Serial/PPP) to an STM32L475V. I would like

to use the STM32CubeMX Middlewares to enable and configure lwIP; however, lwIP

is not a Middlewares option when the selected MCU is STM32L475V. It appears that

lwIP is only available in STM32CubeMX (version 4.15.1) when the MCU has an ETH

peripherial. The STM32Cube_FW_L4_V1.5.0 Firmware Library does not contain lwIP.

My thought was to select an MCU that had an ETH peripheral (e.g. STM32F7),

enable/configure lwIP, generate code, then copy the generated lwIP code to the

STM32L475V project.

Does this sound like a reasonable alternative approach? Has anyone done

something similiar?

Thanks and Regards,

...doug

1 REPLY 1
slimen
Senior
Posted on June 27, 2016 at 14:38

Hi kehn.doug,

It’s possible to use STM32CubeMX which allows generating initialization code.

But, you have to choose another chip with Ethernet, as you don't have LwIP support on STM32L4.

Also, I recommend you to have a look to the other LwIP examples under STM32cubeF7 package:

STM32Cube_FW_F7_V1.4.0\Projects\STM32756G_EVAL\Applications\LwIP

It can help you as an implementation example to develop your own application.

For more details about LwIP, you can refer to the following resources, it may help you in your application:

-

http://www.st.com/content/ccc/resource/technical/document/application_note/fd/5d/64/cf/7c/38/4c/30/DM00036052.pdf/files/DM00036052.pdf/jcr:content/translations/en.DM00036052.pdf

: “LwIP TCP/IP stack demonstration for STM32F4x7 microcontrollersâ€� 

-

http://http://www.st.com/content/ccc/resource/technical/document/user_manual/65/e8/20/db/16/36/45/f7/DM00103685.pdf/files/DM00103685.pdf/jcr:content/translations/en.DM00103685.pdf

: “Developing applications on STM32Cube with LwIP TCP/IP stackâ€� 

-

http://www.st.com/content/ccc/resource/technical/document/user_manual/10/c5/1a/43/3a/70/43/7d/DM00104712.pdf/files/DM00104712.pdf/jcr:content/translations/en.DM00104712.pdf

: paragraph ''B.3.6 LwIP'' for the STM32CubeMX LwIP side.

Regards