Bug: _Error_Handler generated by STM32CubeMX should have const char * file as parameter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-09-14 2:19 AM
The title says it all.
STM32CubeMx Version Version 4.22.1
Library: STM32Cube_FW_F3_V1.9.0
#bug- Labels:
-
Bug-report
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-09-14 2:20 AM
Oh, and assert_failed needs to be fixed, too. Anyone at ST compiling stuff with warnings turned on?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-09-14 6:25 AM
Hello
moritz.struebe
‌,can you share with us the warning and problems you are facing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-09-14 8:59 AM
Well.... The generated code also creates the line
_Error_Handler(__FILE__, __LINE__);
From the C-Standard:
__FILE__ The presumed name of the current source �le (a character string literal).
For reasons discussed here:
gcc legitimately puts them into the const data section, considers string literals 'const char *', and consequently emits a warning.