Skip to main content
Jean DEMARTINI
Associate
April 23, 2017
Question

Is there a bug in STM32CubeMX code generation with STM32F4 library and LwIP ?

  • April 23, 2017
  • 4 replies
  • 963 views
Posted on April 23, 2017 at 11:48

When enabling ICMP so that 'ping' is enable. It is(seems)  necessary to disable hardware CRC generation. In that case the choice 'software CRC generation' is (seems to be) stuck on 'disable' and 'ping' does not respond.

It is then necessary to add in lwipopts.h :

/* USER CODE BEGIN 1 */

/*** because of a bug in STM32CubeMX code generator ? ***/

&sharpundef CHECKSUM_GEN_ICMP

&sharpdefine CHECKSUM_GEN_ICMP         1

/* USER CODE END 1 */

#checksum_gen_icmp
    This topic has been closed for replies.

    4 replies

    ST Technical Moderator
    April 24, 2017
    Posted on April 24, 2017 at 16:41

    Hi

    DEMARTINI.Jean

    ,

    I will report your issue internally to our CubeMx team and come back to you as soon as possible.

    Thanks

    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
    Jeanne Joly
    Associate
    April 25, 2017
    Posted on April 25, 2017 at 17:28

    Hello

    DEMARTINI.Jean

    ,

    Could you please send us your ioc file in order to reproduce your issue?

    Thanks in advance.

    BR. Eric

    Jean DEMARTINI
    Associate
    April 26, 2017
    Posted on April 26, 2017 at 10:43

    Hello,

    Please find attached my .ioc project description.

    The problem I am encountering concern LwIP

    configuration/Checksum/CHECKSUM_GEN_ICMP: the choice list is limited to

    'disable'.

    Many thanks.

    Jean DEMARTINI

    Le 25/04/2017 à 17:29, Eric Dampierre a écrit :

    >

    STMicroelectronics Community

    <https://community.st.com/?et=watches.email.thread>

    >

    Re: Is there a bug in STM32CubeMX code generation with STM32F4

    library and LwIP ?

    reply from Eric Dampierre

    <

    in /STM32 MCUs Forum/ - View the full discussion

    <https://community.st.com/message/155304-re-is-there-a-bug-in-stm32cubemx-code-generation-with-stm32f4-library-and-lwip?commentID=155304&et=watches.email.thread#comment-155304>

    >

    ________________

    Attachments :

    BO13_trunk.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyVQ&d=%2Fa%2F0X0000000bB2%2F_484A3Qnzx.TG7wQAoRn1d.fddpl6AzIsz8QGQ8FN9A&asPdf=false
    Jeanne Joly
    Associate
    May 11, 2017
    Posted on May 11, 2017 at 11:43

    Hello

    DEMARTINI.Jean

    ,

    This issue is delivered in CubeMX4. This new release is available on ST website.

    Don't hesitate to upgrade your CubeMX with this new release (to avoid having this issue).

    BR. Eric