Skip to content
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

[buildmgr] AC6 options for Cortex-M85 #1928

Open
jeromecoutant opened this issue Jan 21, 2025 · 7 comments
Open

[buildmgr] AC6 options for Cortex-M85 #1928

jeromecoutant opened this issue Jan 21, 2025 · 7 comments
Labels
question Further information is requested

Comments

@jeromecoutant
Copy link
Contributor

Hi

I try to compare
https://developer.arm.com/documentation/ka005067/latest/
with
https://github.com/Open-CMSIS-Pack/devtools/blob/main/tools/buildmgr/cbuildgen/config/AC6.6.16.2.cmake#L197-L211

=> "--cpu=Cortex-M85.no_mvefp" looks not correct ?

and with
https://github.com/Open-CMSIS-Pack/devtools/blob/main/tools/buildmgr/cbuildgen/config/AC6.6.16.2.cmake#L447-L462

=> should we use lower case ?
=> "-mcpu=Cortex-M85+nomve.fp -mfloat-abi=hard" looks not correct ?

Thx

@jeromecoutant jeromecoutant added the bug Something isn't working label Jan 21, 2025
@ReinhardKeil
Copy link
Collaborator

Unfortunately Arm Compiler 6.16.2 does not support Cortex-M85.
See the list here https://developer.arm.com/documentation/107873/latest/ - under 1.2

The 6.22.1 FuSa version covers Cortex-M85 support
https://developer.arm.com/documentation/109905/062201/Release-overview/Product-description

@ReinhardKeil ReinhardKeil added question Further information is requested wontfix This will not be worked on and removed bug Something isn't working labels Jan 21, 2025
@jeromecoutant
Copy link
Contributor Author

M85 was introduced in #305 with 6.18 version
File was renamed into 6.16 later...

@jeromecoutant
Copy link
Contributor Author

The 6.22.1 FuSa version covers Cortex-M85 support https://developer.arm.com/documentation/109905/062201/Release-overview/Product-description

And options in AC6.6.16.2.cmake M85 options are correct for that?

@ReinhardKeil ReinhardKeil removed the wontfix This will not be worked on label Jan 21, 2025
@ReinhardKeil
Copy link
Collaborator

OK, I get your point. The issue is that we support with one make file all AC6 compiler versions.

@ReinhardKeil
Copy link
Collaborator

@jeromecoutant do you actually get an error? I believe the mcpu option is not case senstive as we compile a lot for Cortex-M85 and did not see any problem.

@jeromecoutant
Copy link
Contributor Author

do you actually get an error?

For now yes... But I don't find any clear docs for mcpu options...
And
if(MVE STREQUAL "MVE") set(ARMCLANG_CPU "-mcpu=Cortex-M85+nomve.fp
seems wrong, nomve sould be removed?

we compile a lot for Cortex-M85 and did not see any problem.

Note Windows is not very case sensitive...

@brondani
Copy link
Collaborator

@jeromecoutant All CPUs in this file have had historically capitalized names, the OS should be irrelevant in this case.
Please share the error you are getting and possibly the conditions to reproduce it.

If we stricly attain to the mentioned table indeed there is no entry for "Integer MVE included + FP MVE not included + Scalar FP included" which would correspond to -mcpu=Cortex-M85+nomve.fp, so we should rather return "Error: CPU is not supported!", is that your expectation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants