2019-01-04 01:26 AM
Why has the __func__ and __line__ been removed as argument from error_handler in CubeMX V5.0 generated code?
(tested for STM32L4R9 microcontroller)
By just calling Error_Handler() instead of the former _error_handler(__func__,__line__), tracing the error is much harder as the corresponding function is not directly visible.
If space consumption is an issue, introduce a macro which enables or disables the feature!
With the default setting of maximum optimization, it is sometimes almost impossible to trace back by just setting a break point in the error handler.
2019-02-15 06:19 PM
Any response to this matter? Why change this!? It has broken my existing code when I migrated to v5.
If we can get an official response with some logic behind the decision then we can plan to make work arounds. If the official response is that its a bug, we can wait for it to be fixed.
Is this a feature or a bug?
2019-06-13 04:38 PM
Several versions back it was like this too i.e. _func__,__line__ did not exist so I guess this is a "feature"