Sterling
DIIDevHeads IoT Integration Server
•Created by Sterling on 9/11/2024 in #firmware-and-baremetal
How to Manually Program an Interrupt Service Routine (ISR) for STM32F4 MCU Without Using Libraries?
Good day everyone,
I have gone through the Datasheet and User Manual for my STM32F4 Microcontroller Unit (MCU) in great detail, including PM0214 for STM32F4xx MCUs. Additionally, I have searched various online resources that provide information on programming interrupts without using a library but didn't find much guidance. My question is if NVIC's integration with hardware essentials makes it difficult to program an interrupt manually by specifying ISR address and function without relying on any libraries? Everywhere I look there are functions like:
Enable IRQn using NVIC.
Setting the priority for a specified IRQn type can be achieved by using
NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
.
What if someone desires to manually code an ISR for the purpose of learning?
Which steps do I need to take? Is there documentation available for reference? Would it be advisable or worthwhile to follow this approach?9 replies