nxp-mcuxpresso / mcux-sdk

MCUXpresso SDK
BSD 3-Clause "New" or "Revised" License
301 stars 136 forks source link

CMSIS macro usage #119

Open david-hazi-arm opened 1 year ago

david-hazi-arm commented 1 year ago

Dear NXP,

Would it be possible to use CMSIS macros instead of hardcoding GCC like variables (for example Vectors => VECTOR_TABLE). If we want to use the SDK file in another project, it could cause some issues if we want to compile the SDK's source files with IAR (Armclang only works, because it using the same naming), like you can see it in TF-M: https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/tree/platform/ext/target/nxp/lpcxpresso55s69/Device/Source/startup_lpcxpresso55s69.c#n226

Thanks, Dávid Házi

mcuxsusan commented 1 year ago

Hi @david-hazi-arm, thanks! Issue has been forwarded to development team and feedback could be delayed, appreciate for your patience.

mcuxsusan commented 1 year ago

Hi @david-hazi-arm, checked with the team, NXP currently provide toolchain specific startup files so maybe toolchain macros/variables are used, that's why you have issue porting the GCC startup file to IAR toolchain. You have made a good suggestion in this issue inspiring the team to consider whether to provide a unified startup c file across different toolchains, thanks.

Backing to this issue itself, in short term we may not able to deliver a fix in this repository, we appreciate if you would like to raise a pr to contribute.