cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F401 custom software interrupts

Tomas Raila
Associate
Posted on March 08, 2017 at 16:17

Recently I started using STM32F401 as an application chip together with nRF52 for BLE connectivity. This required some parts of nRF52 SDK to be ported for STM32. However, I had some problems with software interrupts (SWI0-SWI5) used by nRF52. STM32 does not seem to have such interrupts so as a workaround I ended up reusing EXTI0-EXTI4 interrupts and triggering them with NVIC_SetPendingIRQ calls.

I have read that Cortex-M3/M4/M7 cores support up to 240 interrupts and wondered if there is any way to add custom interrupts into STM32 interrupt vector table?

1 REPLY 1
Posted on March 08, 2017 at 17:57

Depends on the silicon implementation, they likely don't have a lot of bits/register implementing unused functionality (optimized out). Surely it wouldn't be that hard just to try it yourself? Or check the NVIC registers implemented.

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