huge .C file including type bouble function for S32DS

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

huge .C file including type bouble function for S32DS

1,155件の閲覧回数
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 件の賞賛
返信
1 返信

1,105件の閲覧回数
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 件の賞賛
返信