K22F cdc access from .NET

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

K22F cdc access from .NET

737 Views
shuichiy
Contributor III

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      

0 Kudos
2 Replies

626 Views
shuichiy
Contributor III

Probably I have self-fixed the issue.

I needed to comment out more codes in virtualcom.c regarding to transactions.

Thanks.

0 Kudos

626 Views
shuichiy
Contributor III

I use SDK_2.4.1_MK22FN128xxx10 and both usb_device_cdc_vcom and usb_device_cdc_vcom_lite samples have the same situations.

0 Kudos