Processor Expert generating code with errors

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Processor Expert generating code with errors

跳至解决方案
2,220 次查看
louiemoye
Contributor III

Anyone know why Processor Expert is generating this error with Processor Expert Generated code?

 

"conflicting types for 'ExtIntLdd1_GetVal'. 

 

I'm using MQX 4.1, CW10.6, K70 processor.  I've added an ExtInt_LDD component, and when I select toggle Enable/Disable GetVal(), I get this error.

 

Thanks in advance.

标签 (1)
1 解答
2,013 次查看
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Louie,

In order to fix this error please try the following:

- Go to menu Project > Properties.

- Select C/C++ Build > Settings and open the Tool Settings tab.

- Navigate to ARM Ltd Windows GCC C Compiler > Preprocessor.

- Add the following definition in the Defined Symbols: bool=_Bool

- Clean and Build the project.

pastedImage_0.png

Hope it helps!

Best Regards,

Carlos Mendoza

Technical Support Engineer

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,014 次查看
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Louie,

In order to fix this error please try the following:

- Go to menu Project > Properties.

- Select C/C++ Build > Settings and open the Tool Settings tab.

- Navigate to ARM Ltd Windows GCC C Compiler > Preprocessor.

- Add the following definition in the Defined Symbols: bool=_Bool

- Clean and Build the project.

pastedImage_0.png

Hope it helps!

Best Regards,

Carlos Mendoza

Technical Support Engineer

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
2,013 次查看
louiemoye
Contributor III

Excellent!  That solved the problem. 

2,013 次查看
louiemoye
Contributor III

I can correct the problem temporarily by changing the function return type to unsigned char in the source document, and leaving the header file as return type bool.  The problem with this is my changes will be overwritten as soon ans PE regenerates the code.  Does anyone know of a workaround?  I would like to upgrade to MQX4.2 (assuming the problem has been fixed) but we are deep into my project, and do not have time to upgrade.  

0 项奖励
回复