STM32CubeIDE modify HAL code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-05-28 6:31 AM
We have to make minimal changes to parts of the HAL code, which would be overwritten by code generation.
Is there a recommended way to implement such changes, such that they don't get reverted by generation?
The two ways I can think of both have their problems:
- patch the firmware pack files (i.e. in our case the extracted stm32cube_fw_g0_v151.zip files). This way, the changes would be part of the generated code. This would have to be part of the workspace setup for each developer, and would have to be repeated when the pack is updated.
- patch the generated code after generation. This would be an additional manual step after code generation. Lacking a "post-generation" hook (see my other post), this is easily forgotten by developers.
Is there anything obvious that I'm missing to achieve modifying the HAL code?
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
-
STM32CubeMX
-
STM32G0 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-05-28 9:49 AM
No, you are not missing anything. Either this way, or that way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-05-28 9:49 AM
No, you are not missing anything. Either this way, or that way.
