I can confirm that CubeMX 6.12.0 most definitely does not generate this line, cannot comment on 6.13.0. The examples also put it within the user code section. I believe this function call should be generated automatically, so the issue is definitely ...