Procedure after fx firmware update.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Zenith
Level 3
Level 3
5 questions asked 100 sign-ins 25 replies posted

Hello.
After firmware update, open fails.
What is the proper procedure?

char p[] = "a.img";
CCyFX3Device* Fx = new CCyFX3Device();
if (Fx->IsBootLoaderRunning())
{
        cout << "IsBootLoaderRunning " << endl;
      if ( Fx->DownloadFw(p, RAM) == 0)
           cout << "FW Success !! \n" << endl;

}

CCyUSBDevice* USBDevice = new CCyUSBDevice(NULL);
int count = USBDevice->DeviceCount();
cout << hex << "Device Count = 0x" << count << endl;

if (USBDevice->Open(0) == false)
       cout << "Open Fail \n" << endl;                     // <---------------fail....

cout << "Finished. \n" << endl;

 

 

 

 

0 Likes
1 Solution
AliAsgar
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 750 replies posted

Hi,

The object Fx of the CCyFX3Device can itself be used after the downloading of the firmware onto the RAM. CCyFX3Device is an extension of the CCyUsbDevice class.

Please provide some delay after downloading firmware onto RAM to allow FX3 to enumerate with the new firmware.

Best Regards,
AliAsgar

View solution in original post

0 Likes
4 Replies
AliAsgar
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 750 replies posted

Hi,

Could you try Opening the device before Downloading the firmware onto it and check if the issue is seen

if(Fx->Open(0))

 {

  //Check if boot loader is running.

   status = Fx->IsBootLoaderRunning();

  if(status)

   {

    // Download the file C:\Bulkloop.img file to FX3 device RAM

     dwld_status = Fx->DownloadFw(p,RAM)

   }

 }

Best Regards,
AliAsgar

0 Likes
lock attach
Attachments are accessible only for community members.

Firmware update was completed normally.

0 Likes
AliAsgar
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 750 replies posted

Hi,

The object Fx of the CCyFX3Device can itself be used after the downloading of the firmware onto the RAM. CCyFX3Device is an extension of the CCyUsbDevice class.

Please provide some delay after downloading firmware onto RAM to allow FX3 to enumerate with the new firmware.

Best Regards,
AliAsgar

0 Likes

Thank you  for your support.

 

 

0 Likes