Processor Expert generating code with errors

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Processor Expert generating code with errors

Jump to solution
1,111 Views
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.

Labels (1)
1 Solution
904 Views
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!

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

View solution in original post

0 Kudos
3 Replies
905 Views
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 Kudos
904 Views
louiemoye
Contributor III

Excellent!  That solved the problem. 

904 Views
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 Kudos