Why return code of BlueNRG-X_Flasher_Launcher.exe is always 1 when calling it through C++
Hello,
My C++ code calls BlueNRG-X_Flasher_Launcher.exe with all relevant arguments. I can successfully program the BLE module STB1132-25. I have used the c standard function system(const char*) to call BlueNRG-X_Flasher_Launcher.exe. the issue is, when flash is unsuccessful or some error occurred in the flash launcher, I always get return code 1. I supposedly should get return code 0. In the same way, I am also calling ST-link utility and whenever an error occurs in the utility, I always get a return value 0. Can anyone please tell me what is correct way to call BlueNRG-X_Flasher_Launcher.exe from C++ code? and Why the return code of BlueNRG-X_Flasher_Launcher.exe is always 1 irrespective of errors.
