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
Probably I have self-fixed the issue.
I needed to comment out more codes in virtualcom.c regarding to transactions.
Thanks.
I use SDK_2.4.1_MK22FN128xxx10 and both usb_device_cdc_vcom and usb_device_cdc_vcom_lite samples have the same situations.