CMSIS and Codewarrior

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

CMSIS and Codewarrior

1,204 次查看
tobiashofbaur
Contributor I

Hello,

for an ARM Cortex M4 project, i want to use the CPU specific instructions for sqrt using the ARM Toolchain  with the ARM Compiler.

I can sucessfully include CMSIS into the project, however, it seems, that the necessary macros are not generated (e.g. compiler etc.)

Moreover, if I strip everything unnecessary from CMSIS and onyl include the bare VSQRT in the syntax of CMSIS

      __asm("VSQRT.F32 %0,%1" :  "=t"(*pOut) : "t"(in));   (wrapped in a function)

the compiler complains about the constraints.

Do you know what is going wrong, or what I have to change? Unfortunately i cannot find a detailed documentation on the Freescale Arm Compiler or the vsqrt.

Thanks

Tobias

标记 (2)
0 项奖励
6 回复数

890 次查看
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Tobias,

Which Cortex M4 MCU are you using?


Thanks in advance!

Best Regards,
Carlos Mendoza
Technical Support Engineer

0 项奖励

890 次查看
tobiashofbaur
Contributor I

Hi Carlos,

thank you for the reply.

It is a MK70FX512VMJ15

0 项奖励

890 次查看
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Tobias,

I think that the following post created by our colleague Erich Styger might be helpful for you, it explains the usage of the ARM CMSIS Libraries with Kinetis in CodeWarrior:

Tutorial: Using the ARM CMSIS Library | MCU on Eclipse 


Hope it helps!

Best Regards,
Carlos Mendoza
Technical Support Engineer

0 项奖励

890 次查看
tobiashofbaur
Contributor I

Hi Carlos,

I followed that example, and it works as far as it is applicable. However in our project we cannot use the GCC compiler, but have to use the Freescale ARM Compiler ( mwccarm )

It seem, this does not generate the necessary macros for cmsis to work/ does not recognize the cmsis syntax.

Best

Tobias

0 项奖励

890 次查看
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Tobias,

 

Which errors are you getting? Could you share an example project so I can replicate this on my side?


Thanks in advance for your response!

 

Best Regards,
Carlos Mendoza
Technical Support Engineer

0 项奖励

890 次查看
tobiashofbaur
Contributor I

Hi Carlos,

I attached a minimal "working" example. The project has the same setting as our main project.

As it is, it does not compile. If I comment the asembler line, it does compile.

If I change the compiler to ARM Ltd Windows GCC Compiler, it does compile with the asembler line.

Thank you for your help

Best

Tobias

0 项奖励