Skip to main content
ZeroOne
Associate II
September 14, 2022
Question

Newcomer questions~Why is there only NVIC with no definition?And where can I find the "user manual" about the Core-CM4 HAL function configure method?

  • September 14, 2022
  • 3 replies
  • 1721 views

As titled, with little definition, how do I configure the NVIC_Type struct ? Directly use the numbers that are difficult to maintain later? Or in fact they have official definitions, but they were hidden somewhere else ?0693W00000SvJi8QAF.pngAnd another question, where can I find the "user manual" about the Core-CM4 HAL function configure method? The HAL-user-manual only have the configuration method for stm32 peripherals. It doesn't have the configuration method for core-cm4 peripherals just like how to configure the NVIC peripheral.

This topic has been closed for replies.

3 replies

Danish1
Lead III
September 14, 2022

You need to look at the “programming manual�? for information about the bits of your stm32 designed by ARM - the processor core, NVIC, systick.

I understand the frustration of having two documents, one written by ARM and the other by ST but it’s just something we have to live with. And don’t forget the data sheet as well.

Hope this helps,

Danish

Tesla DeLorean
Guru
September 14, 2022

Programming Manual, or ARM TRM.

IRQ allocations, per device model, should be in CMSIS compliant include files.​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Nikita91
Lead II
September 14, 2022

Most of the time you don't have to use direclly the c struct. Use the functions provided by the CMSIS file core_cmX.h, like:

NVIC_SetPriorityGrouping

NVIC_SetPriority

NVIC_SystemReset

NVIC_EnableIRQ

NVIC_DisableIRQ

etc