How to use stdfix.h in my project(s12z series, CW 11.1)

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

How to use stdfix.h in my project(s12z series, CW 11.1)

跳至解决方案
804 次查看
Gildarai
Contributor II

Hello all.

I'm beginner with nxp s12z and CW 11.1.

I want to use "stdfix.h". But there is some problem with include stdfix.h.

1. I cannot found "stdfix.h" file anywhere my directory(C:\Freescale\).

2. I downloaded "stdfix.h" and copied at "C:\Freescale\CW MCU v11.1\MCU\S12lisa_Support\s12lisac\include". And then, I can include "stdfix.h" but I cannot use library function(e. bitsr(), rbits(), ...).
I can see the error messaege when I compiled my project "function has no prototype".

I included the Search System Path of Access Path of S12Z Compiler, 

  "${MCUToolsBaseDir}/S12lisa_Support/s12lisac/include"

  "${MCUToolsBaseDir}/S12lisa_Support/s12lisac/src"

  "${MCUToolsBaseDir}/S12lisa_Support/s12lisac/lib_medium"

 

Libraries of Input of S12Z Linker

 "${MCUToolsBaseDir}/S12lisa_Support/s12lisac/lib_medium/ansii.lib"

  

Please help me to I can include/use "stdfix.h" correctly.

 

Best Regards.

标记 (2)
0 项奖励
回复
1 解答
776 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

unfortunately stdfix is not supported in CodeWarior. For fixed point arithmetic you can use AMMCLib which is default part of installation. AMMCLib is located in "${MCUToolsBaseDir}/S12lisa_Support/ folder. 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
777 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

unfortunately stdfix is not supported in CodeWarior. For fixed point arithmetic you can use AMMCLib which is default part of installation. AMMCLib is located in "${MCUToolsBaseDir}/S12lisa_Support/ folder. 

0 项奖励
回复
772 次查看
Gildarai
Contributor II

Thank you.

I'll try it.

0 项奖励
回复