Can't compile Demo code of CORTEX_A9_Cyclone_V_SoC_DK

m0o3atef wrote on Tuesday, July 18, 2017:

Hello Everybody,

I’m trying to just cross-compile the demo code of CORTEX_A9_Cyclone_V_SoC_DK.
At first, I tried to do that using arm-linux-gnueabi-gcc and give all the required directories to it, but it always gave me errors at the extern variables and functions.
Then, I installed Eclipse ARM DS-5 and started to use it. I followed the steps mentioned in FreeRTOS website, but some header files were not seen to it, so I added their directories to the PATH in Eclipse and these errors have disappeared.
Now, I’m getting errors saying:
selected processor does not support ‘cpsid i’ in ARM mode
selected processor does not support ‘dsb’ in ARM mode
selected processor does not support ‘fmxr FPSCR,r3’ in ARM mode
selected processor does not support ‘isb’ in ARM mode

I don’t know where these modes are defined nor who has chosen them. Anyone knows what to do to solve this problem?

Thnx in advance.

rtel wrote on Tuesday, July 18, 2017:

Those errors will come from the compiler option that sets the core type,
which is evidently wrong, which in turn comes from a change in the
project format expected by the DS-5 tools since the project was created.
This has been mentioned a few times on the forum, as has, I think, the
solution. Try searching through the archive for similar posts.

I meet the same problem. Sorry, I search and not find similar posts. Can you tell me the key word to search? Thanks.

I’ve encountered these problems, it is a mixture of a couple of issues. first, check the toolchain that you using, it should be arm-altera-eabi-gcc.

Second, fxmr is part of the vector floating point instructions section in the ARM processor, therefore you’re probably missing a compiler or assembler flag, try adding this to the settings tab, it tells the toolchain that there these vector floating-point instructions are supported by the hardware:

Generally speaking, if you’re missing one compiler flag you should check that the others are in place as well:


Good luck with your project
ePiccolo Engineering