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

Keil Firmware size

Hello,

I would like to store the firmware size in ROM. Can keil calculate the firmware size and store it in a variable post compilation. This would allow me to just grab the variable without have to create a function to calculate the firmware size.

Thanks,

Eric Micallef

Parents
  • Hi Clive,

    after placing the LR stuff into the startup.s file I am getting a linker error

    .\Objects\bootloader_adv.axf: Error: L6218E: Undefined symbol Load$$LR$$LR_IROM1$$Length (referred from arm_startup_nrf52.o).

    I have been looking around on the web and stumbled across some sites like this one

    infocenter.arm.com/.../index.jsp

    I tried adding in the R0, RW, and ZI regions but still no luck. here is what mine looks like in

    ; Reset Handler

    Reset_Handler PROC EXPORT Reset_Handler [WEAK] IMPORT SystemInit IMPORT __main

    LDR R0, =SystemInit BLX R0 LDR R0, =__main BX R0 ENDP

    IMPORT ||Load$$LR$$LR_IROM1$$R0$$Length|| EXPORT romlen
    romlen DCD ||Load$$LR$$LR_IROM1$$R0$$Length||

    ; Dummy Exception Handlers (infinite loops which can be modified)

    NMI_Handler PROC

Reply
  • Hi Clive,

    after placing the LR stuff into the startup.s file I am getting a linker error

    .\Objects\bootloader_adv.axf: Error: L6218E: Undefined symbol Load$$LR$$LR_IROM1$$Length (referred from arm_startup_nrf52.o).

    I have been looking around on the web and stumbled across some sites like this one

    infocenter.arm.com/.../index.jsp

    I tried adding in the R0, RW, and ZI regions but still no luck. here is what mine looks like in

    ; Reset Handler

    Reset_Handler PROC EXPORT Reset_Handler [WEAK] IMPORT SystemInit IMPORT __main

    LDR R0, =SystemInit BLX R0 LDR R0, =__main BX R0 ENDP

    IMPORT ||Load$$LR$$LR_IROM1$$R0$$Length|| EXPORT romlen
    romlen DCD ||Load$$LR$$LR_IROM1$$R0$$Length||

    ; Dummy Exception Handlers (infinite loops which can be modified)

    NMI_Handler PROC

Children