Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
Question: When I change the target BSP using the TARGET variable in Makefile, the following error occurs while programming:
Error: timeout waiting for algorithm, a target reset is recommended
Error: SROM API execution failed. Status: 0x080008B4
Error: failed erasing sectors...
How can I solve this?
Answer: This error occurs when there is a mismatch between the device connected and the device targeted by the hex file. When the TARGET variable is modified in the Makefile, the project is built using the new BSP. However, the launch configurations found in Quick Panel under the Launches section do not reflect these changes. They continue to point to the hex file of the older BSP.
The error occurs due to the wrong hex file being programmed. To fix this, click Generate Launches for <AppName>;the new launch configurations will be generated, which point to the correct hex file. You should now be able to program successfully.
Note: It is recommended to use the Library Manager to change BSPs because it handles editing the Makefile TARGET and regenerating the launch configurations automatically. Use the Active BSP option in the Library Manager to switch between BSPs.