Hi,
" KINETIS_50MHZ_SC_03\kinetis_50MHz_sc\k20d50m_sc_baremetal\build\cw\usb_device " example.
changing packet bytes 32 to 64?
EP_IN_Transfer(EP2,CDC_OUTPointer, 32 ); to EP_IN_Transfer(EP2,CDC_OUTPointer, 64 );
question 02:
have option ( INF ) set com port ( in Windows ) example ( install port number COM128 ) ?
thanks,
Carlos.
Hi Carlos,
I am sorry but I don't understand your questions, so would you please provide a detailed description for them? Thanks in advance!!
Have a good day!!
B.R
Kan
Hi kan,
usb_device CDC example packet size = 32 bytes
how to:
modify package size 32 bytes to 64 bytes?
thanks,
Carlos.
Hi Carlos,
The packet size can be modified by changing the definition in usb.h. For example, EP0_SIZE.
Hope that helps,
B.R
Kan
Hi Kan,
What do I see acotece modified.
#define EP0_SIZE 64// 32
#define EP1_SIZE 64// 32
#define EP2_SIZE 64// 32
#define EP3_SIZE 64// 32
0x40 bMaxPcketSize
See
buffer[] = 64 bytes....
EP_IN_Transfer(EP2,CDC_OUTPointer, 64 ); 01 not SEND buffer to PC
EP_IN_Transfer(EP2,CDC_OUTPointer, 64 ); 02 SEND buffer to PC = 64 bytes ok
only the second time it sends the packet.
void EP_IN_Transfer(uint8 u8EP,uint8 *pu8DataPointer,uint8 u8DataSize) ( usb.c ) <----
Thanks,
Carlos.