|
Hello,Bob,
nice to meet you again here.
The situation is that:
I designed my application software and firmware. I download the firmware with
Cyconsole.exe.They works very well. So I decided to do the last work-add the
function of downloading the firmware into my application software. And the module
programm of downloading firmware has been validated. it can work.
I thought I could finished the work finally. However after the firmware
downloaded and after the firmware began running, the transfer are all failed. I
am sure the downloaded firmware was running because the LEDs worked right as I
set them. I am sure the transfer code in both application software and firmware
are right because they run well before I add the firmware-selfdownloading code
segment.I am sure the firmware downloading code segment is right because the
firmware was running(the LEDs worked). so the problem is like this: A is right, B
is right, C is right. but put together the A,B,C it doesn't work.
The application software is developed with VC6.0.
I used gloabal variables, they are
CCyUSBDevice *USBDevice = new CCyUSBDevice();
CCyControlEndPoint *ept = USBDevice->ControlEndPt;
CCyBulkEndPoint *BulkInEpt = NULL;
I used the same CCyControlEndPoint *ept and CCyBulkEndPoint *BulkInEpt in both download the firmware and the transfers. Maybe this was the problem. I would try it tommorow.
|