2055829_en-US

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

2055829_en-US

2055829_en-US

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

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.

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

Thank you.

I'll try it.

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

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. 

Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 02:30 PM
Updated by: