I've generated some PIC and VB code with EASYHID. I've set the max buffersize (in/out) on 20. However now I want to change this and it is not possible.
I have changed the settings in the PBP code.
USBBufferSizeMax con 64 ' maximum buffer size
USBBufferSizeTX con 64 ' input
USBBufferSizeRX con 64 ' output
USBBuffer Var Byte[USBBufferSizeMax]
I've changed the settings in the VB code
Public Const BufferInSize = 64
Public Const BufferOutSize = 64
Public BufferIn(0 To BufferInSize) As Byte
Public BufferOut(0 To BufferOutSize) As Byte
I'm using a bootloader of Microchip, can that be a problem?, however this is not logical isn't it because in a normal boot situation it will take the boot part of your own application and not the boot part of the bootloader of microchip.
I've traced with "USBTRACE" and every time I see a transferbuffersize of 14h (20dec)
When I started playing with USB, two years ago I succeeded to regulate the ammount of bytes which was send out from the PIC. I was able to do that with the USBBufferCount however this is also not possible anymore.
Command
USBOut 1, USBBuffer, USBBufferCount, DoUSBOut
Do somebody knows wat I'm doing wrong?
Regards,
Ronald.
Bookmarks