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)

ソリューションへジャンプ
812件の閲覧回数
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 解決策
784件の閲覧回数
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 返答(返信)
785件の閲覧回数
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 件の賞賛
返信
780件の閲覧回数
Gildarai
Contributor II

Thank you.

I'll try it.

0 件の賞賛
返信