cancel
Showing results for 
Search instead for 
Did you mean: 

Firmware Upgrade failed CubeProgrammer_API

i124q
Associate II

I am testing firmware upgrade API from CubeProgrammer_API. For some reason, it keeps printing that the firmware upgrade failed, but when i check the firmware version of my device, the firmware has been updated. Does anyone know what is the cause of it? The code below is taken from the source code


bool retValueFusUp = firmwareUpgrade(L"../test file/stm32wb5x_BLE_LLD_fw.bin", 0x08065000, FIRST_INSTALL_NOT_ACTIVE, START_STACK_NOT_ACTIVE, VERIFY_FILE_DOWLOAD_FILE);
    if (retValueFusUp == false)
    {
        logMessage(Error, "\nFUS Upgrade  failed\n");
        return(1);
    }
i124q_0-1710863192582.png

 

3 REPLIES 3
Imen.D
ST Employee

Hello @i124q ,

Make sure to use the latest version of CubeProgrammer.

Try to follow the steps on this wiki page about the firmware upgrade service (FUS). 

 

 

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
i124q
Associate II

I am on the latest version of CubeProgrammer (v2.16.0). I dont have an ST Link connection. Could that be the reason why it is failing?

Well I'm pretty sure it's going to limit your success..

Perhaps add some checks upstream that will catch that before it gets here?

Perhaps also test it can find/open the file too.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..