Getting Parameter mismatch error while running Poly space
4 ビュー (過去 30 日間)
古いコメントを表示
I am using a PolySpace R2021b to get static analysis of our project in which we are using TI c2000 (C2000Ware_4_00_00_00) based TMS320F280025C controller.
While we try to build our code in Polysapce, We are getting error as below,
declaration is incompatible with "long __euclidean_div_i32byu32(long, unsigned long, unsigned long)" (declared at line 33 of "C:\Program Files\Polyspace\R2021b\polyspace\verifier\extensions\ti\tmw_builtins\c28x.h") __euclidean_div_i32byu32(long numerator, unsigned long denominator); "(declared at C:\ti\ccs1040\ccs\tools\compiler\ti-cgt-c2000_20.2.5.LTS\include\stdlib.h)"
It seems stdlib.h of location(C:\ti\ccs1040\ccs\tools\compiler\ti-cgt-c2000_20.2.5.LTS\include\stdlib.h) conatins two parameter(long numerator, unsigned long denominator) for that function and c28x.h of location("C:\Program Files\Polyspace\R2021b\polyspace\verifier\extensions\ti\tmw_builtins\c28x.h") contains three paramter (long, unsigned long, unsigned long) for that function. Due to this my polyspace is unable to build completely and it is stuck.
回答 (1 件)
Arka
2023 年 8 月 9 日
Hi Sakshi,
From what I understand, there is a conflict in the definition of the function in the two header files mentioned in the error.
I would advise you to change the definition of the function inside the file c28x.h to match it with the definition of the file stdlib.h. This will help you in resolving the error.
Thanks.
2 件のコメント
Arka
2023 年 8 月 17 日
Hi Sakshi,
Try re-opening Polyspace after making the changes. It should then load the new version of c28x.h, and your analysis should work.
You can change the c28x.h file in R2021b to look like the c28x.h file in R2022b. The snippet of the code from the file c28x.h from R2022b is attached below.
Thanks.
参考
カテゴリ
Help Center および File Exchange で Troubleshooting in Polyspace Products for Ada についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!