Enabling FPU on S32K144

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

Enabling FPU on S32K144

2,517 次查看
pietroserao
Contributor II

Goodmorning, i need to enable the FPU on S32K144.

How can i do that?


I need to compute such function with logaritmics operation using float variables.
After activation must i use some special function to use FPU or is it automatic?

 

Thanks.

标签 (1)
1 回复

1,845 次查看
raresvasile
NXP Employee
NXP Employee

Hi,

The FPU activation is done automatically based on the toolchain settings.

For S32 Design Studio:

Right click on the project and select Properties. The following window will appear:

pastedImage_2.png

In this window:

   1) Go to C/C++ build (1)

   2) Select Settings (2)

   3) From there select Target Processor (3)

   4) Configure Float ABI and FPU Type to FP instructions(hard) and fpv4-sp-d16 (4).

Click on ok and then rebuild the project.

If you need the procedure for FPU activation for different toolchains or IDE please let me know.

Best regards,

Rares