This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

uVision2, finding last code byte location

Using uVision2, how can the last location of code space be identified?
This location is to be used as the "end of code" for a checksum procedure.

I tried dragging the file that only contained...

unsigned char code EOM;
...to the bottom of the Project Workspace, with no success. It appears the procedures are not linked in any type of order. (I have multiple Source, Assembly and Include files.)

I saw that LX51 allows you to specify the "Last" file to be linked, but I failed to find a similar command for BL51 which is used by uVision2.

I also found the hex2bin, check8, and bin2hex code at Keil but I do not wish to use that technique.

Keep in mind I am using uVision2 and not a command line for builds. Currently my uVision2 BL51 Locate has "Use memory layout" checked and the remaining lines blank. My BL Misc is blank with no check marks set.