Skip to main content
Senior
Jun 6, 2020 12:26 PM UTC
Question

Add user code region between peripherals configuration and 'MX_NVIC_Init'

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.

This topic has been closed for replies.

2 replies

TPeča.1
Associate
Jun 7, 2020 2:38 PM UTC
TPeča.1
Associate
Jun 7, 2020 2:55 PM UTC

On further thought, a cleaner solution might be to manually manage those function calls, which you can do under Advanced settings

0693W000001qBrdQAE.png