New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: How is NUM_IRQS determined for example for STM32F401xC #33658
Comments
@GunZi200 Though, I think the real solution would be to get this info from dts extracted information, to set the numbed dynamically depending on the number of IRQ actually enabled in the binary so we can have a irq vector table tuned to the current binary configuration and save some bytes. |
@erwango I see that all stm32f401xc have 78 interrupts. How do you get 84? It is my understanding that we count the 62 maskable interrupt channels + the 16 lines of the Cortex M4 with FPU |
@GunZi200, as I mentioned, highest IRQ number + 1: And as I said, I know the rule is questionable. |
Ok, where is this defined? I cannot find it anywhere. Is this part of some autogenerated code? I'm wondering about this because I need to determine this number for STM32L412RB but I'm not sure where to look for it to be sure I have the correct number. |
Thank you for the patience @erwango closing the issue... |
Example:
zephyr/soc/arm/st_stm32/stm32f4/Kconfig.defconfig.stm32f401xc
Line 12 in 75a74bf
I'm confused how
NUM_IRQS = 85
is determined?Looking at the datasheet for STM32F401RC: stm32f401rc.pdf
Wouldn't this mean that the number of interrupts available are
NUM_IRQS
= 62 + 16 = 78? What am I missing? 🤔The text was updated successfully, but these errors were encountered: