Skip to content

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

Merged
merged 2 commits into from
Jun 22, 2018

Conversation

drahnr
Copy link
Contributor

@drahnr drahnr commented Jun 6, 2018

Description

Creates a separate section for the NVIC relocated vector table.
Yields the common .noinit for application use cases.

Pull request type

[X] Fix
[ ] Refactor
[ ] New target
[ ] Feature
[X] Breaking change

This could be potentially breaking if an app does some dynamic vector table modifcation or similiar.

pan-
pan- previously requested changes Jun 6, 2018
Copy link
Member

@pan- pan- left a 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.

@drahnr
Copy link
Contributor Author

drahnr commented Jun 6, 2018

The breaking change might be applications which exploit the defined symbols based on __start_noinit which is not the NVIC table anymore, but an indepentend section.

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.

@drahnr
Copy link
Contributor Author

drahnr commented Jun 6, 2018

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.

@cmonr cmonr dismissed pan-’s stale review June 11, 2018 14:20

Latest commit appears to be addressing comments

@cmonr cmonr removed the needs: work label Jun 12, 2018
@cmonr cmonr requested a review from donatieng June 18, 2018 23:10
@cmonr
Copy link
Contributor

cmonr commented Jun 18, 2018

@pan- @marcuschangarm Mind taking another look?

@marcuschangarm
Copy link
Contributor

The NRF52 looks good, thank you! I don't have enough experience with the NRF51 to review it.

0xc0170
0xc0170 previously approved these changes Jun 20, 2018
@0xc0170
Copy link
Contributor

0xc0170 commented Jun 20, 2018

/morph build

@drahnr
Copy link
Contributor Author

drahnr commented Jun 20, 2018

@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

@marcuschangarm
Copy link
Contributor

@drahnr
Copy link
Contributor Author

drahnr commented Jun 20, 2018

@marcuschangarm I totally messed that up, I am removing those accidentally commited changes and things should be fine.

@mbed-ci
Copy link

mbed-ci commented Jun 20, 2018

Build : SUCCESS

Build number : 2401
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/7145/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Jun 20, 2018

@cmonr
Copy link
Contributor

cmonr commented Jun 20, 2018

/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Jun 20, 2018

@cmonr
Copy link
Contributor

cmonr commented Jun 20, 2018

Re-enqueueing since it looks like we hit a device allocation issue.

/morph test

@marcuschangarm
Copy link
Contributor

@cmonr I think we are still waiting for changes.

@cmonr
Copy link
Contributor

cmonr commented Jun 20, 2018

@marcuschangarm Ah, crud. Yeah, looks like it.
Just saw the failure come up, not the preceeding comments.

@mbed-ci
Copy link

mbed-ci commented Jun 21, 2018

@drahnr
Copy link
Contributor Author

drahnr commented Jun 21, 2018

Removed NRF51 related changes from the last commit.

@cmonr
Copy link
Contributor

cmonr commented Jun 21, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Jun 21, 2018

Build : SUCCESS

Build number : 2417
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/7145/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Jun 21, 2018

@cmonr
Copy link
Contributor

cmonr commented Jun 21, 2018

/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Jun 21, 2018

@cmonr cmonr merged commit 446de69 into ARMmbed:master Jun 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants