2020-04-29 01:26 AM
Hello,
I have installed STM32Cube FW_L4 v1.15.1 in CubeMx.
When generating new project STM32L476RG nucleo with Additional Software "STMicroelectroncs.X-CUBE_BLE1.5.0.0", a file "Core/Inc/stm32l4xx_nucleo_errno.h" is created.
In top of the file, there is
#ifdef __cplusplus
extern "C" {
#endif
but the correspondent
#ifdef __cplusplus
}
#endif
does not exist.
Thus the additional software cannot be used in C++ projects...
I am sure there is an error in code generation of CubeMX.
BR
Paul
2020-04-29 01:38 AM
Hello,
of course each time I modify something in the ioc file, the error is re generated and I must re correct manually. It's tiresome...
2020-04-29 01:49 AM
Work arround:
#include "main.h"
#ifdef STM32L4XX_NUCLEO_ERRNO_H
#ifndef STM32L4XX_NUCLEO_ERRNO_H_CORRECTION
#define STM32L4XX_NUCLEO_ERRNO_H_CORRECTION
#ifdef __cplusplus
}
#endif
#endif // STM32L4XX_NUCLEO_ERRNO_H_CORRECTION
#endif // STM32L4XX_NUCLEO_ERRNO_H
2020-04-29 03:31 AM
Hello @PADAM.1 , did you mean that this condition is not present in your case ? could you please explain more your request and share your ioc file ?
Best Regards,
Khouloud
2020-04-29 07:30 AM
@PADAM.1 Issue confirmed and it will be fixed , but could you please share your ioc file to check it?
regards,
Khouloud
2020-04-29 09:29 AM
2020-05-06 04:24 AM
Hello @PADAM.1
Your request is raised internally to be analysed.
Best Regards,
Khouloud