Skip to content

Conversation

sphw
Copy link
Contributor

@sphw sphw commented Feb 16, 2022

This PR adds the ITNS (Interrupt Target Non-secure) field to the NIVC peripheral. This field is required to write a boot loader for TrustZone-M devices, since it allows the user to use interrupts from non-secure states.

I believe I have maintained the correct padding for the next fields, but I have not tested these changes on a non M33 device. So a close review and test would be appreciated.

@sphw sphw requested a review from a team as a code owner February 16, 2022 03:22
@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @thalesfragoso (or someone else) soon.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-cortex-m labels Feb 16, 2022
@sphw sphw requested a review from adamgreig March 15, 2022 15:57
@sphw sphw force-pushed the feature/add-itns-nvic branch from 2ffb8d0 to 9bff0c8 Compare July 16, 2022 15:42
@sphw sphw requested a review from reitermarkus July 16, 2022 15:42
@macthestack
Copy link

Nice to see this! i was just about to submit a PR myself until I saw this.

Hopefully someone picks it up :)

Copy link
Member

@adamgreig adamgreig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the reminder @macthestack! This looks good now, sorry for the wait after the first round of reviews @sphw!

bors r+

@bors
Copy link
Contributor

bors bot commented Nov 12, 2022

@bors bors bot merged commit 1a21591 into rust-embedded:master Nov 12, 2022
adamgreig pushed a commit that referenced this pull request Aug 6, 2025
422: Add ITNS field to NVIC peripheral r=adamgreig a=sphw

This PR adds the ITNS (Interrupt Target Non-secure) field to the NIVC peripheral. This field is required to write a boot loader for TrustZone-M devices, since it allows the user to use interrupts from non-secure states.

I believe I have maintained the correct padding for the next fields, but I have not tested these changes on a non M33 device. So a close review and test would be appreciated.  

Co-authored-by: Sascha Wise <[email protected]>
adamgreig pushed a commit that referenced this pull request Aug 31, 2025
422: Add ITNS field to NVIC peripheral r=adamgreig a=sphw

This PR adds the ITNS (Interrupt Target Non-secure) field to the NIVC peripheral. This field is required to write a boot loader for TrustZone-M devices, since it allows the user to use interrupts from non-secure states.

I believe I have maintained the correct padding for the next fields, but I have not tested these changes on a non M33 device. So a close review and test would be appreciated.  

Co-authored-by: Sascha Wise <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-cortex-m
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants