huge .C file including type bouble function for S32DS

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

huge .C file including type bouble function for S32DS

573 Views
steven_zhang
Contributor V

i got a xx.c file which is as big as 1 M BYTES by using generating tool, there are several functions as below:

  # typedef  real32_T;

   real32_T  tmp;

   real32_T ftest = 3.3;

   external doulbe funcx(double X);

while run the below code , the programm run away

tmp = (real32_T)funcx(ftest); ,

if i remove the codes to a small .c file ,every thing is ok

can anbbody help me?

0 Kudos
1 Reply

523 Views
stanish
NXP Employee
NXP Employee

Hi Steven,

Thank you for the question but based on the information you provided us with we can give you just some generic advices.

Could you specify:

1) which version of S32DS are yous using?

2) what MCU are you targetting?

3) can you debug the code to identify the exact statement the code will "run away"?

4) not quite understand "if i remove the codes to a small .c file ,every thing is ok" could you be more specific?

As a generic suggestion:

* Please check if there is no stack overflow event in your app (e.g. if there are too many local variables)

* you are using double precision floating point - are you building with the appropriate floating point libraries?

Hope it helps.

Stan

0 Kudos