Add user code region between peripherals configuration and 'MX_NVIC_Init'
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-06-06 5:26 AM
Sometimes, I have some code need run after 'MX_GPIO_Init()' but before 'MX_NVIC_Init()', but there is no user code region at here. I often encounter the situation, that some peripheral initialization need gpio inited first, and then enable the interrupt.
Thanks.
Labels:
- Labels:
-
STM32CubeMX
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-06-07 7:38 AM
See if my workaround at
applies to your problem.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-06-07 7:55 AM
On further thought, a cleaner solution might be to manually manage those function calls, which you can do under Advanced settings
