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
CMSIS for ARMCLANG and arm_compat.h #1211
Comments
|
Hi @CanastraRF, thanks for pointing this out. I'll check that for the upcoming release. -Jonatan |
|
Hi @CanastraRF, It looks like the current CMSIS Compiler header do conflict with I could guard the definition in the compiler header. This would only cover the case when Would it be enought from your point of view to enhance CMSIS Compiler abstraction with equivalents to Thanks, |
|
Hi Jonatan and similar to __disable_irq() At the moment I've no time to contribute. |
|
Hi @CanastraRF, Yes, including The challenge is to have this properly implemented for all supported compilers. Cheers, |
|
Hi Jonatan But now __enable_irq() and __disable_irq() are defined in both files. Reto Felix |
|
Hi Reto, I concern we can change the names in CMSIS, easily. What else do you miss from Jonatan |
|
Hi Jonatan, So in any case we must modify our code in any way.
->the smalles modification is to modify cmsis_armclang.h Reto Felix |
The arm_compat.h defines the ArmCC compatibility functions __enable_irq and __disable_irq. These are (re)defined in CMSIS which cause a clash if both are used at a time.
|
Hi Reto, I've now added the preprocessor guards to work around your immediate issue. Cheers, |
|
Hi Jonatan |
Reference: CMSIS 5.8.0 known issues and ARM-software/CMSIS_5#1211 This fixes the error about redefinition of enable/disable irq. we need compat header because of semihosting (not yet provided in CMSIS).
Reference: CMSIS 5.8.0 known issues and ARM-software/CMSIS_5#1211 This fixes the error about redefinition of enable/disable irq. we need compat header because of semihosting (not yet provided in CMSIS).
Reference: CMSIS 5.8.0 known issues and ARM-software/CMSIS_5#1211 This fixes the error about redefinition of enable/disable irq. we need compat header because of semihosting (not yet provided in CMSIS).
Reference: CMSIS 5.8.0 known issues and ARM-software/CMSIS_5#1211 This fixes the error about redefinition of enable/disable irq. we need compat header because of semihosting (not yet provided in CMSIS).
Reference: CMSIS 5.8.0 known issues and ARM-software/CMSIS_5#1211 This fixes the error about redefinition of enable/disable irq. we need compat header because of semihosting (not yet provided in CMSIS).
We upgraded CMSIS core to the current version V5.4.3 for cmsis_armclang.h.
Now arm_compat.h is no longer included but some functions are copied to cmsis_armclang.h.
ex.
__enable_irq()
__disable_irq()
So cmsis_armclang.h and arm_compat.h can't no longer used together in one project.
But we use more compatibility function from arm_compat.h.
ex:
__current_pc()
__current_sp()
So please add all compat function to CMSIS or guard in CMSIS the copied functions.
The text was updated successfully, but these errors were encountered: