Skip to main content
Mark Shoe
Associate III
May 25, 2017
Question

CubeMX and LwIP (DP83848)

  • May 25, 2017
  • 2 replies
  • 1455 views
Posted on May 25, 2017 at 21:20

We now have CubeMX version 3.20 Tried to make a project for the 407 but no support for the DP83848 ??

Can somewhere share an example project using CubeMX and LwIP

    This topic has been closed for replies.

    2 replies

    ST Technical Moderator
    May 26, 2017
    Posted on May 26, 2017 at 10:06

    Hi

    Ursum.Mark

    ,

    STM32CubeMX

    allows generating C initialization code but does not provide example code for now.

    So, you can refer to the example available within STM32CubeF4 v4.16 firmware package:

    STM32Cube_FW_F4_V1.0\Projects\STM324xG_EVAL\Applications\LwIP

    Hope this bring you some help.

    Regards

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    Mark Shoe
    Mark ShoeAuthor
    Associate III
    July 8, 2017
    Posted on July 08, 2017 at 20:29

    Hi it seems hard convert the ST example code of LwIP to the CubeMX generated version. The only thing what does work is connecting my DP83848 to STM32F407 discovery board using RMII and with only putting MX_LWIP_Process() in the main while loop i get an ip adress. I can ping my board.

    Now something more, tried to input the example project http server raw into my project but now lots of errors. (array type has incomplete element type 'struct fsdata_file')

    Tried to import someones telnet program (very basic) and now error constant MEMP_SYS_TIMEOUT not found. (even with a seach of every file it comes from nowhere!

    Has someone managed to do someting with LwIP with a CubeMX gererated project? Please share an example. And ST: why are the examples that come with the hal drivers not made with CubeMX?:

    andy b
    Senior
    July 10, 2017
    Posted on July 10, 2017 at 15:12

     ,

     ,

    Hi Mark

    I have been able to do a programme using a CubeMX project and LwIP .My programme is a simple UDP echo.I have had issues with preprocessor generation especially with the MEMP_ macro.My fix for this problem was to add ♯ include 'lwip/memp.h' to my main.c file.The compiler may trig the error from time to time but  ,when deleting the error message and recompiling the program the error message should not reappear.For the DP83848 compatibility do not worry since settings for LAN8720 and DP83848 are the same(in CubeMX).

    -Andy