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

long BL51 line in DOS commandfile

I have to mimic a project produced by a consultant no longer in favor, and in order to match the product as it is (comparing .hex files) I must do things the following way:
.. in a DOS batchfile
.. with the same modules linked in the same sequence
.. with the modules currently in libraries in libraries.

I have all source, just no makefiles.

My problem is that when I put the '&' at the end of the first part of my BL51 line the linker stops using the .bat file and display >> on the console.

Any advice as to how to handle this using the given criteria will be greatly appreciated.

thanx in advance

Erik

  • What OS are you using?
    Remember that '&' (and "&&") is a reserved character in Win-NT (and maybe its successors?).
    You can "escape" it with '^' (caret).
    See "What's New or Different from MS-DOS" in the Win-NT Help (on the 'Start' menu).

    Have you tried the syntax:

    BL51 @commandfile

    See chapter 9 in the "Macro Assembler and Utilities for 8051 and Variants" User's Guide
    (p248 in the 07.2000 version of A51.pdf)

    uVision seems to automatically generate a Linker command-input file called <project>.lnp - you could use one of those as an example to get you started?

    Have fun!

  • Thanx Andy, the BL51 @doit.cmd did the trick.