-
Notifications
You must be signed in to change notification settings - Fork 11
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
having support for cortex-m7 #6
Comments
Hi, I never worked with a M7 but it sounds it would be easy to adapt from M4/FPU: both cores use the ARMv7-EM architecture, the only noticeable difference from the ISA perspective seems to be the FPU version: v4-SP-D16 for M4, v5 for M7 - although the latter seems to exist in single and double precision variants, what a mess... I think I read at some point that VFP versions where backward compatible, i.e. VFPv5 could execute all the instructions for VFPv4 , but I need to find this reference... I think M4/F toolchain could generate code for a M7 w/o any change. Did you give it a try? However, FPU operation would only use single precision instructions. Are you targeting a double precision core? |
Yeap I am targeting stm32f767ZI which is double precision. I did try to compile gcc myself but didn't make it work correctly. I thought that multilib could be a way to make it compatible with hard and soft and all variant of VFP but haven't been able to figure out how to configure it properly. My guess was that clang make a mess there. |
I'm not sure to understand what you meant: what kind of mess? |
Using an awful C snippet such as
and the following command line:
the output file seems to match the expected format:
There is this nasty ARMv8-A VFP format, but I'm not sure it is not a limitation of the ELF decoder and the generated object file disassembles into
If I'm not mistaken, some VFP instructions such as Now compiling another C snipped using the math library:
and compiling/linking with
give a ELF executable with match the expected format:
and the math library does use VFP5-d16 as well ( |
Hi
How difficult would it be to have support for the baremetal cortex-m7 + hard float?
Thanks
The text was updated successfully, but these errors were encountered: