Processor Expert generating code with errors

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

Processor Expert generating code with errors

ソリューションへジャンプ
1,375件の閲覧回数
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 解決策
1,168件の閲覧回数
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 返答(返信)
1,169件の閲覧回数
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 件の賞賛
返信
1,168件の閲覧回数
louiemoye
Contributor III

Excellent!  That solved the problem. 

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