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

how to assign obj file's entry address through BL51

I'v a obj file without its source code (.c file) and I must use the fuctions of this obj file in my project.The most important thing is I want to LOCATE the fuction (i.e. the obj file's entry address)at absolute address in code space(for example:3000H). How could I do it? any advices are helpful ,3x.

Parents
  • Thanks all.
    The details is
    obj file name is FPROUND.OBJ and the fuction named ?C?FPROUND in it that I use.
    I'v seen the "CODE Linker Directive" and want to set in uVision Options â€" BL51 Locate â€" Code Segments.
    Linker always reports error .WHAT IS THE CORRECT FORMAT FOR IT?

    ?PR?C?FPROUND?ROUND(0X3000) or
    ?C?FPROUND?(0X3000) or others?

    HOW TO EXPRESS THE OUTSIDE OBJ FILE IN CODE SEGMENT OPTION?
    It troubles me for a long time.

Reply
  • Thanks all.
    The details is
    obj file name is FPROUND.OBJ and the fuction named ?C?FPROUND in it that I use.
    I'v seen the "CODE Linker Directive" and want to set in uVision Options â€" BL51 Locate â€" Code Segments.
    Linker always reports error .WHAT IS THE CORRECT FORMAT FOR IT?

    ?PR?C?FPROUND?ROUND(0X3000) or
    ?C?FPROUND?(0X3000) or others?

    HOW TO EXPRESS THE OUTSIDE OBJ FILE IN CODE SEGMENT OPTION?
    It troubles me for a long time.

Children