How can I use the linker to place a variable in a specific location in ROM? I'm using a bootloader and would like for the application code to be able to read the bootloader version number etc...
I would try the search function at the upper right hand section of this page. Type in "variable at address" or something similar, change the menu coice from Board to Community, then click Search. I got a lot of hits. Some of them may be relevant to what you need. I cannot be any more specific because you did not mention what target you were developing for.
- Which CPU are you targeting (HC08, HC12, Coldfire, ..) - Which version of CodeWarrior are you using?
To retrieve that info: - Start CodeWarrior - Select Help -> About Freescale CodeWarrior - Click on "Install Products" - CodeWarrior version used is displayed on top in the Installed Products dialog.
Retrieving data ...