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

Linker region-related symbols

Hi,

I saw many post on the forum, but did not find my needs :

What is the linker region-related symbol for LR_IROM1 COMPRESSED SIZE ?

Or in case it does not exist :

How can I inject a constant value into my object file after compilation ? (As I could read my former symbol in the MAP file ...)

Thanks for help.

Regards
Hervé.

  • As this variable is not available in the linker symbols, I wonder if it is possible to get it during runtime.

    After performing variable decompression, the register R0 hold the end of the initialisation table.
    Up to the __scatterload_zeroinit the register R0 is not used

    SO I put that code into the Lpc23xx_keil.s

    The problem is that I can't go back to the original initialisation function :

    How can I call the original scatterload_zeroinit entry point after storing my data ?

                                    EXPORT  __scatterload_zeroinit
                                    IMPORT  CodeZoneEnd
    __scatterload_zeroinit
                    LDR     R1, =  CodeZoneEnd   ; give access to the backup function
                    STR     R0, [R1]
                    BX      LR