LPC55s36 USB code not working without debug mode

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

LPC55s36 USB code not working without debug mode

ソリューションへジャンプ
1,201件の閲覧回数
madhubanti
Contributor III

Hi 

I am using the lpcxpresso55s36usb_dev_cdc_vcom_lite_bm example from the SDK examples to run USB for my application. I added a customized function in the USB_DeviceCdcAcmBulkOut callback function. 

 

This gets perfectly executed in the debug mode. But when i power cycle the EVK board and use PUTTY to communicate to the application, the callback function is not getting called. 

 

I am using the USBFS pins.

 

Please help me fix this issue. 

0 件の賞賛
返信
1 解決策
1,161件の閲覧回数
madhubanti
Contributor III

The code is working on standalone now. I didn't do anything! 

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
1,183件の閲覧回数
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @madhubanti,

What is the customized function you call under "USB_DeviceCdcAcmBulkOut"? Does the "USB_DeviceCdcAcmBulkOut" function get called, but not your function? or neither get called? When you mention that in debug mode it does occur, do you mean you step into it, or do you just let the code run and the callback gets issued?

BR,
Edwin.

0 件の賞賛
返信
1,161件の閲覧回数
madhubanti
Contributor III

I am attaching the code file with this reply.

This is the code i am running. When i select Debug as option and run, then everything works as expected. But when i power cycle the EVK and run it as standalone and access the port through PUTTY it doesn't work. Doesn't work in the sense the heartbeat function is getting executed. but when i type on the terminal the callback is not getting fired.

0 件の賞賛
返信
1,162件の閲覧回数
madhubanti
Contributor III

The code is working on standalone now. I didn't do anything! 

0 件の賞賛
返信
1,142件の閲覧回数
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @madhubanti,

Sounds good. Let me know if the issue comes back.

 

0 件の賞賛
返信