This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Unable to run the neon instructions in startup_Cortex-R52

Hi,

I am planning to execute few neon add instructions using startup_Cortex-R52 example project. I have created assembly file with neon instructions and added it to project. I have modified the target settings to use -march "armv8-r", mfpu to "neon" and float-abi to "Hardware(Software FPO Linkage)".

Is there any startup code that I need to add for enabling neon extension. Let me know how can I proceed regarding this.

Thanks,

Praveen. 

Parents
  • Hi Praveen

    That's strange - renaming main.c to main.cpp works for me with the startup_Cortex-R52 example supplied, after fixing up any call-outs (name mangling, etc) from the C++ file to extern C or assembler files.

    However, if the bulk of your application will be C++, then you must create a new C++ project.  The startup_Cortex-R52 example supplied is only based on a C project template, not C++.

    To create a new C++ project, use File > New > Project, then expand C/C++ and select "C++ Project".  Then copy across all the project settings (processor, fpu, "-x assembler-with-cpp", --entry=Start --scatter, etc) from your existing project to the new project.

    If you need more help with this interesting project, I suggest you open an official Support case with Arm, using the "Support > Open a Support Case" option at the top of this page.

    Hope this helps

    Stephen

Reply
  • Hi Praveen

    That's strange - renaming main.c to main.cpp works for me with the startup_Cortex-R52 example supplied, after fixing up any call-outs (name mangling, etc) from the C++ file to extern C or assembler files.

    However, if the bulk of your application will be C++, then you must create a new C++ project.  The startup_Cortex-R52 example supplied is only based on a C project template, not C++.

    To create a new C++ project, use File > New > Project, then expand C/C++ and select "C++ Project".  Then copy across all the project settings (processor, fpu, "-x assembler-with-cpp", --entry=Start --scatter, etc) from your existing project to the new project.

    If you need more help with this interesting project, I suggest you open an official Support case with Arm, using the "Support > Open a Support Case" option at the top of this page.

    Hope this helps

    Stephen

Children