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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
805 Views
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.

Tags (2)
0 Kudos
Reply
1 Solution
777 Views
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. 

View solution in original post

0 Kudos
Reply
2 Replies
778 Views
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 Kudos
Reply
773 Views
Gildarai
Contributor II

Thank you.

I'll try it.

0 Kudos
Reply