Skip to main content
Senior
June 6, 2020
Question

Add user code region between peripherals configuration and 'MX_NVIC_Init'

  • June 6, 2020
  • 2 replies
  • 781 views

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
June 7, 2020
TPeča.1
Associate
June 7, 2020

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

0693W000001qBrdQAE.png