AnsweredAssumed Answered

K22F cdc access from .NET

Question asked by shuichiy on Oct 17, 2018
Latest reply on Oct 18, 2018 by shuichiy

Hi all,

 

USB CDC I/F is now running on MK22FN12810LVH and a terminal program can access it normally.

However, .NET application freezes during the first data transfer (serialport.write) even if port open has no problem.

 

When I used KL27Z256 before, following workaround cleared the similar problem but it does not work this time.

Does someone has workaround to work K22F and .NET applications via CDC ?

 

#if 0
// DIsable Transaction for .NET applications
            if (acmInfo->dteStatus & USB_DEVICE_CDC_CONTROL_SIG_BITMAP_DTE_PRESENCE)
            {
                /* DTE_ACTIVATED */
                if (1 == s_cdcVcom.attach)
                {
                    s_cdcVcom.startTransactions = 1;
                }

                     - snip -
            }
            else
            {
                /* DTE_DEACTIVATED */
                if (1 == s_cdcVcom.attach)
                {
                    s_cdcVcom.startTransactions = 0;
                }
            }
#endif      

Outcomes