cancel
Showing results for 
Search instead for 
Did you mean: 

How to include and call NVIC functions from core_cm7.h?

NNagy.1
Senior

I want to use NVIC_SetPriority() and NVIC_Enable_IQRn in main.c, and I have the necessary included headers, but when I try to build the program I get "undefined reference to NVIC_SetPriority".

I assume it is because the functions are headed as __STATIC_INLINE. Am I just supposed to remove the __STATIC_INLINE or is there a different way for me to access these functions?

2 REPLIES 2
NNagy.1
Senior

Never mind, it was a simple typo. I would delete this question if I could!

TDK
Guru

They just need to be in your include path. Recheck that. Should be included by stm32h7xx.h

Also make sure you typed them correctly.

the __STATIC_INLINE preprocessor token should not cause issues.

If you feel a post has answered your question, please click "Accept as Solution".