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

I want to specify the one library to dedicated code ram address. May I learn how to do it?

Dear Sir,

  In my project, there are some c files, startup file and a library file (.LIB) which is built from my another project.

There are 2 code ram in my project file, ex: 0x0~0x1FFF and 0x8000~0x9FFF, I have several questions, please help

Q1: I want to place the LIB to 0x0~0x1FFF, May I learn how to do it?

Q2: Could I specify the C51 Lib at another code ram , ex 0x8000~0x9FFF

Thanks for your help.

BR,

Eddie

Parents
  • Hi,

    Or I should specify  the address for every functions (segments) of the LIB  in the Option > BL51 Locate > Code

    ex: 0 - 0x1FFF, 0x8000 - 0x9FFF , ?PR?PROTOCOL_VARIABLE_INIT?PROTOCOL(0x8000) , ?PR?_API_SENDEVENTTOPROTOCOLTX?PROTOCOL (0x803A)

    If this is only one way to specify the functions (segments) one by one in the  Code space,

    Is it possible that I don't need to specify the address for ?PR?_API_SENDEVENTTOPROTOCOLTX?PROTOCOL , I want it just follows the  ?PR?PROTOCOL_VARIABLE_INIT?PROTOCOL ?

    Thanks for your help.

    BR,

    Eddie

Reply
  • Hi,

    Or I should specify  the address for every functions (segments) of the LIB  in the Option > BL51 Locate > Code

    ex: 0 - 0x1FFF, 0x8000 - 0x9FFF , ?PR?PROTOCOL_VARIABLE_INIT?PROTOCOL(0x8000) , ?PR?_API_SENDEVENTTOPROTOCOLTX?PROTOCOL (0x803A)

    If this is only one way to specify the functions (segments) one by one in the  Code space,

    Is it possible that I don't need to specify the address for ?PR?_API_SENDEVENTTOPROTOCOLTX?PROTOCOL , I want it just follows the  ?PR?PROTOCOL_VARIABLE_INIT?PROTOCOL ?

    Thanks for your help.

    BR,

    Eddie

Children