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

Control of Object-Hex Converter from source

hi,
Is it possible to change output .hex filename at preprocessor time, something like:

#define _BOARD_REV_ 1
...

#if (_BOARD_REV_ == 1)
HEX_FILENAME("board_1.hex")
#else
HEX_FILENAME("board_old.hex")
#endif

Which directive should I use for such purposes or is there another way to control OH51 "on the fly"?

Thank you,
Oleg

Parents
  • "I want to do it automatically when I define X or Y. I don't think two targets is the answer here."

    From what you say there, you are looking at it backwards:

    When you select Target X, that automatcially defines X for you, and uses the output name X.
    Isn't that exactly what you want?

Reply
  • "I want to do it automatically when I define X or Y. I don't think two targets is the answer here."

    From what you say there, you are looking at it backwards:

    When you select Target X, that automatcially defines X for you, and uses the output name X.
    Isn't that exactly what you want?

Children
No data