Skip to content

Commit 4772b98

Browse files
mathieuchopstmMaureenHelm
authored andcommitted
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 16abaad commit 4772b98

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
@@ -947,6 +947,17 @@ STM32
947947
the ``cs-gpios`` or new ``st,soft-nss`` property operate in "Soft NSS" mode, while all other
948948
instances operate in "Hard NSS" mode.
949949

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

0 commit comments

Comments
 (0)