2016-04-13 02:29 PM
For STM32Cube_FW_F4_V1.11.0:
1) mxconstants.h does not have the &sharpifdef statements to guard against multiple includes.2) stm32f4xx_hal_msp.c has ''/**tttttttttt'' as the first line. It looks like there is some crap in the template file.
Thanks for putting together HAL. I'm finding it VERY useful.Andrei from The Great White North #cubemx2016-04-14 02:18 AM
Hello,
Could you please explain your needs about #ifdef statements !It will be better to attach your .ioc file to confirm the bug ''/**tttttttttt'' in the stm32f4xx_hal_msp.cRegards-ForumSTM32-2016-04-15 11:03 AM
Find attached the ioc file that will generate the ttttt line.
As for the mxconstants.h file, what I'm talking about is something called a ''multiple include guard'' which avoids the situation where a header file can be #include-ed multiple times. Using multiple include guards is considered best practice in C (alternatively many compilers use #pragma once) and the lack of multiple include guards is even picked up in some lint programs. The other .h files generated as a part of the HAL use multiple include guards. Clear? Andrei (as seen on the embedded.fm podcast and blog) ________________ Attachments : test.ioc : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Htr2&d=%2Fa%2F0X0000000aXv%2Fu0QNstevU2FcENKSEtqGSab_k0AhedtP5dPlModh9vg&asPdf=false2016-04-15 11:23 AM
Also see MISRA 2012 Directive 4.10 (required)
''Precautions shall be taken in order to prevent the contents of a header file being included more than once''A2016-04-18 08:29 AM
Dear user,
This issue will be fixed in 4.15 release. Although we're working on enhancing CubeMX generated code to be MISRA compliant, so far only STM32Cube HAL drivers from our STM32Cube offer are MISRA compliant . Best regards2016-04-18 09:40 AM