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

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

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

2,071 次查看
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..

标签 (1)
0 项奖励
回复
1 回复

1,330 次查看
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 项奖励
回复