LPC55s36 USB code not working without debug mode

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

LPC55s36 USB code not working without debug mode

跳至解决方案
1,189 次查看
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,149 次查看
madhubanti
Contributor III

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

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,171 次查看
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,149 次查看
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,150 次查看
madhubanti
Contributor III

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

0 项奖励
回复
1,130 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @madhubanti,

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

 

0 项奖励
回复