How to add usb package to a new project?

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

How to add usb package to a new project?

376 Views
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

Labels (1)
0 Kudos
Reply
1 Reply

332 Views
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 Kudos
Reply