How to add usb package to a new project?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to add usb package to a new project?

636件の閲覧回数
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 返信

592件の閲覧回数
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 件の賞賛
返信