-
Notifications
You must be signed in to change notification settings - Fork 3k
FUTURE_SEQUANA: Add suport for ARMC6 #10346
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
This change moves all PDL drivers into common source and include directories to alleviate issue with Windows version of GNU Make 4.x maximum command line length limit.
Also enabled ARMC6 compiler for FUTURE_SEQUANA family of targets.
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.
Please add volatile for the unused variables
@@ -615,11 +615,13 @@ __STATIC_INLINE void Cy_IPC_Drv_SetInterrupt(IPC_INTR_STRUCT_Type* base, uint32 | |||
*******************************************************************************/ | |||
__STATIC_INLINE void Cy_IPC_Drv_ClearInterrupt(IPC_INTR_STRUCT_Type* base, uint32_t ipcReleaseMask, uint32_t ipcNotifyMask) | |||
{ | |||
uint32_t unused; |
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.
i think you should add volatile so the compiler wont optimize that out
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.
I was thinking about it, but the ARM clang reference manual states (section 7.12 Qualifiers):
Value computation of an lvalue expression with a volatile qualified type constitutes an access to the corresponding object, even when the value is discarded.
So I think it's ok, as it's hw register (data field), that is declared volatile. Variable unused
could be skipped.
Same holds true for GCC.
@lrusinowicz, thank you for your changes. |
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
This PR adds necessary set of changes to support ARMC6 compiler for FUTURE_SEQUANA family of targets. I've run default set of mbed tests on it and tests generally pass, except for a few failures related to device_key and flash API. I strongly suspect these are unrelated and would rather fix them separately.
Intended to fix #9578.
Pull request type
Reviewers
Release Notes