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

Locating Code

I wish to install a bootloader in a specific sector of the LPC2106. How can I place a section of code to start at a specific address?

Thanks

Rich

Parents
  • First, do I have to manually locate every function when I want an entire portion of C code located in a certain area?

    You may use wildcards in the segment specifications. For example, ?PR?*?MYFILE selects all program segments from the MYFILE source file.

    The above results in a linker error L110 cannot find segment error.

    Compile and link without using the SEGMENTS directive. Scan thru the MAP file for the segment name to use. You should only specify the physical address. The C: prefix which is required in the 8051 tools is not allowed in the ARM tools (since memory is von Neumann).

    Jon

Reply
  • First, do I have to manually locate every function when I want an entire portion of C code located in a certain area?

    You may use wildcards in the segment specifications. For example, ?PR?*?MYFILE selects all program segments from the MYFILE source file.

    The above results in a linker error L110 cannot find segment error.

    Compile and link without using the SEGMENTS directive. Scan thru the MAP file for the segment name to use. You should only specify the physical address. The C: prefix which is required in the 8051 tools is not allowed in the ARM tools (since memory is von Neumann).

    Jon

Children