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
  • Auto generated .SCT file, note "LR_IROM1", the final size of the output being computed

    ; *************************************************************
    ; *** Scatter-Loading Description File generated by uVision ***
    ; *************************************************************
    
    LR_IROM1 0x08000000 0x00030000  {    ; load region size_region
      ER_IROM1 0x08000000 0x00030000  {  ; load address = execution address
       *.o (RESET, +First)
       *(InRoot$$Sections)
       .ANY (+RO)
      }
      RW_IRAM1 0x20000000 0x00005000  {  ; RW data
       .ANY (+RW +ZI)
      }
    }
    

Reply
  • Auto generated .SCT file, note "LR_IROM1", the final size of the output being computed

    ; *************************************************************
    ; *** Scatter-Loading Description File generated by uVision ***
    ; *************************************************************
    
    LR_IROM1 0x08000000 0x00030000  {    ; load region size_region
      ER_IROM1 0x08000000 0x00030000  {  ; load address = execution address
       *.o (RESET, +First)
       *(InRoot$$Sections)
       .ANY (+RO)
      }
      RW_IRAM1 0x20000000 0x00005000  {  ; RW data
       .ANY (+RW +ZI)
      }
    }
    

Children