cancel
Showing results for 
Search instead for 
Did you mean: 

Knowledge Base Articles

Programming Fails when Changing Target in Makefile - KBA231391

ChaitanyaV_61
Employee

Programming Fails when Changing Target in Makefile - KBA231391

Author: DheerajK_81           Version: **

Translation - Japanese: サイプレスタイトル - KBA231391 - Community Translated (JA)

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.

pastedImage_0.png

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.

0 Likes
Version history
Revision #:
1 of 1
Last update:
‎Oct 27, 2020 07:02 AM
Updated by:
 
Contributors