1 Reply Latest reply on Aug 27, 2020 9:37 PM by JayakrishnaT_76

    Using AN84868 FPGA configuration utility, I can not send 32MBytes upper data.

    KIMI_4749046

      Hello,

         

      I use the FPGA_Configuration utitliy program.(c# program).

       

      AN84868_Project_files

       

       

      Normally, the program has no problems.

       

      But transfering larger file (more than 32MB) over USB3. I can not sent the data.

      Please give me the reason. or please help me.

       

      <Form1.cs>

      private void button2_Click_1(object sender, EventArgs e)
              {
                  int len = 0;
                  byte[] buf = new byte[16];
                 

                  buf[0] = (Byte)(file_bytes & 0x000000FF);
                  buf[1] = (Byte)((file_bytes & 0x0000FF00) >> 8);
                  buf[2] = (Byte)((file_bytes & 0x00FF0000) >> 16);
                  buf[3] = (Byte)((file_bytes & 0xFF000000) >> 24);
                  if (myDevice != null)
                  {
                      rtConsole.AppendText ("Writing data to FPGA........\n");
                      StatLabel1.Text = "NEXT STEP: Wait ... ";
                      CtrlEndPt = myDevice.ControlEndPt;
                      CtrlEndPt.Target = CyConst.TGT_DEVICE;
                      CtrlEndPt.ReqType = CyConst.REQ_VENDOR;
                      CtrlEndPt.Direction = CyConst.DIR_TO_DEVICE;
                      CtrlEndPt.ReqCode = 0xB2;
                      CtrlEndPt.Value = 0;
                      CtrlEndPt.Index = 1;
                      len = 16;
                      CtrlEndPt.XferData(ref buf, ref len);//send vendor command to start configuration
                      // myDevice.BulkOutEndPt.TimeOut = 100000;
                      myDevice.BulkOutEndPt.XferSize = 4096;//set transfer size as 4096

       

                      success = myDevice.BulkOutEndPt.XferData(ref file_buffer, ref file_bytes); //check if transfer successful

       

      upper red code start to happen problem.

       

      Thanks .