AnsweredAssumed Answered

USB CDC RX issue on KW24

Question asked by Fabrice TOCCI on Jan 8, 2016
Latest reply on Jan 12, 2016 by Fabrice TOCCI

Hi,

I'm trying to get USB CDC working full duplex on TWR_KW24D512

I have built my prooject with beekit release 3.0.2, HaOnOffSwitch_EndDevice.

I can send and received data on UART1 (TWR_KW24 <--> Teraterm)

 

I have included the files needed to support USB CDC and added initialisation calls as follow:

 

in BeeAppInit.c void Main()

#if gVirtualCOMPort_d

  // Initializes USB vitual COM port //

  USB_Init();

  (void)CDC_ModuleInit();

#endif // #if gVirtualCOMPort_d

 

 

in BeeApp.c (void BeeAppIni (void))

 

#if gVirtualCOMPort_d

  // USB data log and Command Port Rx CallBack Setting

  CDC_SetRxCallBack(BS_SerialRxCallback);

#endif //gVirtualCOMPort_d

 

I can send without any problem logs to tera term window calling:

CDC_Transmit(pBuf, bufLen, pfCallBack)

 

 

There is a problem on USB CDC RX side:

BS_SerialRxCallback function, is not called everytime data are sent from teraterm to TWR-KW24.

It is called only two times and no more.

 

First data frame is not seen

second data frame is not seen

third data frame is not seen

 

Forth data frame is properly received

 

5th data frame is not seen

6th data frame is not seen

7th data frame is not seen

9th data frame is not seen

 

10th data frame is properly received

 

All following frames are not seen!!!??

 

What can be the rout cause of this behavior?

 

Thank you for your support

Best regards.

Fabrice.

Outcomes