You were right,
Other pointer point to usbram memory:
inPtr =(byte *) &controlTransferBuffer;
were controlTransferBuffer is:
#pragma udata usbram5 controlTransferBuffer
volatile byte controlTransferBuffer[E0SZ];
changing code to:
inPtr =(__data byte *) &controlTransferBuffer;
fixed my problems
Hi,
some time before I successfully compiled this stack with SDCC 2.9.x (I don't
remember yet) for PIC18F2455. Then I ported the stack to USB CDC and bulk
transfers.
If you still need it, I will try to look into my archives and send it to you.
Vaclav
--
Hi,
Of course I checked it, pointers point to correct tables with correct
values. I printed out (via serial) vaules send to host
durning InDataStage but I cut it off from the previous post. This is
the debug fragment with InDataStage call:
[...]
GetDescriptor
DEVICE_DESCRIPTOR
InDataStage bufferSi
On 11/9/11 11:54, "M L" wrote:
>outPtr = &deviceDescriptor;
>so I changed it to
>outPtr = (byte *)&deviceDescriptor;
>From the top of my head and not looking at the code,
pointers in SDCC/PIC come in three types depending weather
they refer to RAM, ROM or are generic.
Your cast above may be gene