Skip to main content
NNagy.1
Associate III
March 10, 2020
Question

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

  • March 10, 2020
  • 2 replies
  • 1065 views

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?

This topic has been closed for replies.

2 replies

NNagy.1
NNagy.1Author
Associate III
March 10, 2020

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

TDK
Super User
March 10, 2020

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""."