Why am I getting "conflicting types for 'boolean'" when using MQX Lite and USB CDC class device?

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

Why am I getting "conflicting types for 'boolean'" when using MQX Lite and USB CDC class device?

1,784 Views
Symbolic
Contributor III

I am creating a project in CW MCU 10.5

I generated an MQX Lite project for the MK22D512VLK5 processor.

I added a USB CDC class device according to the USB Stack 4.1.1 Quick Start Guide

(had to disable filtering due to "filter bug" to even get the compent to show in the Components Library)

I generated code from the .pe file

I cleaned the project, then built the project.

I get an "/test_usb2/Generated_Code/types.h:62:25: error: conflicting types for 'boolean'" error message.

Investigation shows that types.h (in Generated code) defines boolean (unconditionally) as unsigned char

It shows that psptypes.h (included from mqxlite.h) defines boolean (unconditionally) as unsigned long

 

How should I resolve this conflict?

Since this is example code generated (unmodified) from a Quick Start Guide and using New Project Wizard, I don't think it is anything I have done..

Labels (1)
0 Kudos
1 Reply

1,043 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Stephen,

This behavior should be reproduced by our experts. in case you still have this problem would you submit a service request at www.freescale.com/support?

Best regards,

Carlos

0 Kudos