LPC55s36 USB code not working without debug mode

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

LPC55s36 USB code not working without debug mode

Jump to solution
1,190 Views
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 Kudos
Reply
1 Solution
1,150 Views
madhubanti
Contributor III

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

View solution in original post

0 Kudos
Reply
4 Replies
1,172 Views
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 Kudos
Reply
1,150 Views
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 Kudos
Reply
1,151 Views
madhubanti
Contributor III

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

0 Kudos
Reply
1,131 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @madhubanti,

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

 

0 Kudos
Reply