2024-03-19 08:43 AM - edited 2024-03-19 08:47 AM
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);
}
2024-03-19 01:00 PM
2024-03-20 07:54 AM
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?
2024-03-20 07:59 AM - edited 2024-03-20 08:00 AM
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.