How to add usb package to a new project?

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

How to add usb package to a new project?

378 次查看
lins2
Contributor I

Hi,

I want to use usb cdc vcom in a new project, for example the hello_world project. I add the usb package in the Manage SDK components window. 

屏幕截图 2023-07-05 211300.png 

Then I copy the source file from  usb cdc vcom example and build it.

I get the error msg:

"undefined reference to `USB_DeviceCdcAcmRecv"  

"undefined reference to `USB_DeviceCdcAcmSend"

 

I check the includ path it is the same with the vcom demo. I have put the project file in the attachment.

I wonder what is the correct way to add usb function, any doc or guide?

Thanks.

屏幕截图 2023-07-05 211320.png屏幕截图 2023-07-05 212320.png

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

334 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi @lins2 ,

Please add USB_DEVICE_CONFIG_CDC_ACM into Defined Symbols(-D) list.

jingpan_0-1688699803411.png

 

Regards,

Jing

0 项奖励
回复