Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

Programming Fails when Changing Target in Makefile - KBA231391

Programming Fails when Changing Target in Makefile - KBA231391

ChaitanyaV_61
Employee
Employee
50 questions asked 25 likes received 25 sign-ins

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
473 Views
Contributors