Question
Is there a bug in STM32CubeMX code generation with STM32F4 library and LwIP ?
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