usb_device 32 to 64 bytes

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

usb_device 32 to 64 bytes

653 Views
CCandido
Contributor V

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.

Labels (2)
Tags (1)
0 Kudos
4 Replies

373 Views
Kan_Li
NXP TechSupport
NXP TechSupport

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

0 Kudos

373 Views
CCandido
Contributor V

Hi kan,

usb_device CDC example packet size = 32 bytes

how to:

modify package size 32 bytes to 64 bytes?

thanks,

Carlos.

0 Kudos

373 Views
Kan_Li
NXP TechSupport
NXP TechSupport

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

0 Kudos

373 Views
CCandido
Contributor V

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.


0 Kudos