FULL SPEED USB [FRDM-MCXA153] - importing USB stack to new project giving error

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

FULL SPEED USB [FRDM-MCXA153] - importing USB stack to new project giving error

ソリューションへジャンプ
1,193件の閲覧回数
Gurunath
Contributor II

Hi , i created a new project and added usb software SDK component , USB Device class CDC, for FRDM-MCXA153 in MCUXprresso IDE. I want to implement a simple usb send transfer from device to host to replace my UART0 debug printf. I am trying to send a message from device to host in a while(1) loop in main() with a delay.

When i use a function USB_DeviceCdcAcmSend() in main() , it gives me error when i compile : 

"undefined reference to `USB_DeviceCdcAcmSend' ". 

i have also checked the include paths for all required headers in project settings.

It would be of great help to me if you  please let me know how to integrate USB CDC device stack into any project and how to avoid undefined reference errors.  please find below the attached project

 

ラベル(2)
0 件の賞賛
返信
1 解決策
1,147件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @Gurunath 

Please change 

/*! @brief CDC ACM instance count */

#ifndef USB_DEVICE_CONFIG_CDC_ACM

#define USB_DEVICE_CONFIG_CDC_ACM (0U)

to

/*! @brief CDC ACM instance count */

#ifndef USB_DEVICE_CONFIG_CDC_ACM

#define USB_DEVICE_CONFIG_CDC_ACM (1U)

Alice_Yang_0-1722854164737.png

Then rebuild your project. 

 

BR

Alice

 

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,142件の閲覧回数
Gurunath
Contributor II

thank you It solved the error

0 件の賞賛
返信
1,148件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @Gurunath 

Please change 

/*! @brief CDC ACM instance count */

#ifndef USB_DEVICE_CONFIG_CDC_ACM

#define USB_DEVICE_CONFIG_CDC_ACM (0U)

to

/*! @brief CDC ACM instance count */

#ifndef USB_DEVICE_CONFIG_CDC_ACM

#define USB_DEVICE_CONFIG_CDC_ACM (1U)

Alice_Yang_0-1722854164737.png

Then rebuild your project. 

 

BR

Alice

 

0 件の賞賛
返信