cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jean DEMARTINI
Associate II
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
4 REPLIES 4
Imen.D
ST Employee
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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Jeanne Joly
Senior III
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

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
Senior III
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