Skip to content

stm32n6: allow appli exection from non-secure context#344

Open
etienne-lms wants to merge 3 commits intozephyrproject-rtos:mainfrom
etienne-lms:n6-non-secure
Open

stm32n6: allow appli exection from non-secure context#344
etienne-lms wants to merge 3 commits intozephyrproject-rtos:mainfrom
etienne-lms:n6-non-secure

Conversation

@etienne-lms
Copy link
Collaborator

@etienne-lms etienne-lms commented Feb 27, 2026

Update STM32N6 HAL integration support Zephyr application execution from both secure and non-secure context.

This requires default using the non-secure address ranges for peripheral memory mapped interface. Changes in Zephyr SoC DTSI files (zephyrproject-rtos/zephyr#104765) modifies the path of pinctrl node, impacting pinctrl DTSI files from the HAL module. This P-R overcomes the issue change pinctrl DTSI file generation to rely on pinctrl node label (always defined in Zephyr SoC DTSI files) instead of the node path.

@etienne-lms etienne-lms force-pushed the n6-non-secure branch 2 times, most recently from 9b699a3 to 48bfd2c Compare March 4, 2026 09:37
@etienne-lms
Copy link
Collaborator Author

Rebased.

@etienne-lms
Copy link
Collaborator Author

Fixed the genpinctrl test part that was not updated.

Change genpinctrl.py tool to use the pinctrl node label instead of the
node path in the generated pinctrl DTSI files.

This change simplifies pinctrl DTSI file and specific case as for
STM32N6xx series where the pinctrl node will move into a subnode of
the soc node.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Update generated pinctrl DTSI files using pinctrl node label instead
of the node path.

No functional changes.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Consider when the application executes from non-secure CPU context
that is when CONFIG_TRUSTED_EXECUTION_NONSECURE is enabled.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
@etienne-lms
Copy link
Collaborator Author

Fixed 'no-new-line' issue in genpinctrl test reference.
CI should pass now.

@erwango erwango requested a review from mathieuchopstm March 18, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants