Skip to main content
CJi
Associate II
Nov 11, 2019 1:25 AM UTC
Solved

Where is global interrupt enable during STM32G4 intialization

is global interrupt is always enable during startup, is that right ?, if yes, where can i find it?

In

HAL_Init();

or

startup_stm32g474retx.s

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Nov 11, 2019 1:35 AM UTC

The processor starts with interrupts enabled. You get to enable specific peripherals ones via the NVIC

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

3 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Nov 11, 2019 1:35 AM UTC

The processor starts with interrupts enabled. You get to enable specific peripherals ones via the NVIC

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
CJi
CJiAuthor
Associate II
Nov 11, 2019 2:29 AM UTC

Thank you! Can you point to me, Where does the processor implement enable global interrupts? which file and which line:smiling_face_with_smiling_eyes:

Tesla DeLorean
Guru
Nov 11, 2019 2:56 AM UTC

What part of "starts with them enabled" is unclear here? There isn't a file/line involved.

The SCB->VTOR is reset to zero, and this means the memory mapped there (FLASH, SRAM, ROM) is controlled by BOOT pins

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..