-
Notifications
You must be signed in to change notification settings - Fork 3k
nxp: fix vector redefinition from CMSIS #13064
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
@kjbracey-arm Can you review if you have better suggestion to fix this ? We could probably to this for all, just dont see how this is used within CMSIS (only found there is in toolchain headers). From CMSIS doc for this macro:
common default, but how to change it without defining the symbol itself? |
It's not used by CMSIS code itself, but it seems to be a convention to allow you to specify to the target's startup what you want it to call the vector table. This is tied in with CMSIS attempting to switch to more C-based startup code. Not sure it's viable with assembler startup. In the interim, just Or just define |
Since 5.7 CMSIS update to Mbed OS, __VECTOR_TABLE is defined in cmsis_gcc header file. Many MCU in NXP uses this symbol as linker definition, therefore we should check if already defined and undefined it. Fixes ARMmbed#13062
This fixes the issue, Confirmed
|
+1, updated |
@0xc0170, thank you for your changes. |
CI started |
Test run: SUCCESSSummary: 6 of 6 test jobs passed |
@artokin Once this merged, can we run a new tests to confirm this not only fixes the issue but has no unknown consequences (should be good). |
cc @ARMmbed/team-nxp (to make sure this is known) |
This PR does not contain release version label after merging. |
Summary of changes
Since 5.7 CMSIS update to Mbed OS, __VECTOR_TABLE is defined in cmsis_gcc header
file. Many MCU in NXP uses this symbol as linker definition, therefore we should
check if already defined and undefined it.
Fixes #13062
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers