-
Notifications
You must be signed in to change notification settings - Fork 3k
NRF52: add a separate .nvictable section and allow .noinit to be used… #7145
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
Conversation
… by the application
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@drahnr Thanks for your submission.
Could you comment on why that would be a breaking change ? To me it seems that position and the symbol name of the vector tables remain untouched; the only change is the name of the section holding the vector table.
IAR and ARMCC linker scripts needs to be updated as well.
As a side note it would be appreciated if you backport these changes to NRF51 too.
The breaking change might be applications which exploit the defined symbols based on I will look into the other linker files, but I can't promise much there since I don't have any setups for IAR nor ARMCC nor any licenses for either nor experience writing linke files for them. |
Also NRF51 does not have a dedicated section for the relocated table yet, so I am not sure this makes sense to tackle, especially since I can't even test any of those. |
Latest commit appears to be addressing comments
@pan- @marcuschangarm Mind taking another look? |
The NRF52 looks good, thank you! I don't have enough experience with the NRF51 to review it. |
/morph build |
@marcuschangarm there are no changes for NRF51 in this PR since I don't do any development with that platform nor are the changes directly applicable to the NRF51 without some additional preliminay work |
You made changes to https://github.com/drahnr/mbed-os/blob/367d95e17e14aaaa41058be41be72dd445c860e2/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF51/reloc_vector_table.c ? I don't think |
@marcuschangarm I totally messed that up, I am removing those accidentally commited changes and things should be fine. |
Build : SUCCESSBuild number : 2401 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2036 |
/morph mbed2-build |
Re-enqueueing since it looks like we hit a device allocation issue. /morph test |
@cmonr I think we are still waiting for changes. |
@marcuschangarm Ah, crud. Yeah, looks like it. |
Removed NRF51 related changes from the last commit. |
/morph build |
Build : SUCCESSBuild number : 2417 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2048 |
/morph mbed2-build |
Description
Creates a separate section for the NVIC relocated vector table.
Yields the common .noinit for application use cases.
Pull request type
This could be potentially breaking if an app does some dynamic vector table modifcation or similiar.