Getting Parameter mismatch error while running Poly space
6 次查看(过去 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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1443227/image.png)
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)"
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1443232/image.png)
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1458662/image.png)
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!