Skip to main content
i124q
Associate
March 19, 2024
Question

Firmware Upgrade failed CubeProgrammer_API

  • March 19, 2024
  • 2 replies
  • 1105 views

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

 

This topic has been closed for replies.

2 replies

Technical Moderator
March 19, 2024

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"".ThanksImen"
i124q
i124qAuthor
Associate
March 20, 2024

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?

Tesla DeLorean
Guru
March 20, 2024

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 VenmoUp vote any posts that you find helpful, it shows what's working..