Skip to content

Commit 56bc081

Browse files
doc: migration: 4.4: add section about CONFIG_NUM_IRQS on STM32
As CONFIG_NUM_IRQS is now determined dynamically, it is possible that apps which registered ISRs outside drivers will trigger a build failure if the registered IRQn is higher than the biggest active device's IRQn. Add a note in the migration guide which describes this problem and gives the solution to tackle these build failures. Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
1 parent e82cb6f commit 56bc081

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/releases/migration-guide-4.4.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,17 @@ STM32
941941
the ``cs-gpios`` or new ``st,soft-nss`` property operate in "Soft NSS" mode, while all other
942942
instances operate in "Hard NSS" mode.
943943

944+
* :kconfig:option:`CONFIG_NUM_IRQS` is computed automatically based on active (``status = "okay";``)
945+
devices by using the new ``dt_highest_controller_irq_number`` Kconfig preprocessor function.
946+
Applications which register custom ISRs (using :c:macro:`IRQ_CONNECT()`) may encounter build
947+
failures such as the following due to :kconfig:option:`CONFIG_NUM_IRQS` having a lower value:
948+
949+
.. code-block::
950+
951+
gen_isr_tables.py: error: IRQ 114 (offset=0) exceeds the maximum of 106
952+
953+
Explicitly set :kconfig:option:`CONFIG_NUM_IRQS` to an appropriate value to solve these issues.
954+
944955
Timer
945956
=====
946957

0 commit comments

Comments
 (0)