Keil Logo

DS-5: WARNING(LUX47): The Image Does Not Match the Target


Information in this knowledgebase article applies to:

  • ARM Development Studio 5

SYMPTOM

The message "WARNING(LUX47): The image does not match the target" occurs when loading the debug information from an image.

CAUSE

When loading debug information from an image the debugger also checks that the image being loaded into the debugger matches the one that is loaded on your target. If the images do not match then this warning is generated. The consequence of ignoring this warning is that source level debug operations such as stepping might not work correctly, breakpoints might be set in the wrong location and examining variables might return the wrong values.

When comparing the two images, the debugger does not compare the entire contents because this can be very slow. Instead the debugger performs just a partial comparison of a few code instructions at the beginning and end of the image. Comparing the instructions at the beginning and end of the image is good enough to detect when instructions have been inserted or removed from the image, but may not catch cases where the instructions in between have changed but the total number of instructions remains the same. The comparison does not involve debug information, so using an unstripped image in the debugger and a stripped image on the target should succeed provided that the stripped image is derived from the unstripped one.

RESOLUTION

Ensure that the image you are loading into the debugger is identical to the one that is running on your target. It is acceptable for the image on the target to be stripped of debug information provided that it is derived from the same image that you are loading into the debugger.

Last Reviewed: Tuesday, January 26, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.