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 Stephen,

    Also I am trying to compile .cpp extensiopn files(main.c --> main.cpp ..). But .cpp files are not picked up for compilation and I am seeing error main not found.

    My usecase is, I have .cpp based source code which I need to include in this project and create  .axf. Is this workflow possible? 

    (To be more specific about my usecase, I am trying to include to include arm compute library to this startup project and create an app.)

    Thanks,

    Praveen.

Reply
  • Hi Stephen,

    Also I am trying to compile .cpp extensiopn files(main.c --> main.cpp ..). But .cpp files are not picked up for compilation and I am seeing error main not found.

    My usecase is, I have .cpp based source code which I need to include in this project and create  .axf. Is this workflow possible? 

    (To be more specific about my usecase, I am trying to include to include arm compute library to this startup project and create an app.)

    Thanks,

    Praveen.

Children
  • 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

  • Hi Stephen,

    Thanks for suggestion I have raised a  support case .

    I want to know if there is a quick fix for below problem.

    I have created C++ project and created .axf , however I am seeing issues while trying to run. It is not coming to main from "Start". Debug configurations are similar to the startup_cortex-r52.Attached project for your referenceACLPrototype.zip