Skip to content

_summary.bat

hello! many thanks for the work done! I can't figure out how to make a summary output. I have these fields blank. The _summary.bat file is not working correctly in my experience.

i am poor proger, but maybe:

IF "%KEIL_PROJECT_LISTING_DIR%"=="" (
  findstr /C:"Grand Totals" "%PROJECT_FOLDER%\%KEIL_PROJECT_LISTING_DIR%\%PROJECT_TARGET%\*.map"

in _summary.bat 2022-02-11_13-59-51

OUTPUT of program_size_summary.log:

11.02.2022 13:59: asd 
asd: Keil's compiler optimization: "Level 1 (-O1)" 
MDK-ARM\asd.map:     Code (inc. data)    RO Data    RW Data    ZI Data      Debug 

My *.map file output:

==============================================================================


      Code (inc. data)   RO Data    RW Data    ZI Data      Debug   

      2312        156        224         16       1024     233125   Grand Totals
      2312        156        224         16       1024     233125   ELF Image Totals
      2312        156        224         16          0          0   ROM Totals

==============================================================================

    Total RO  Size (Code + RO Data)                 2536 (   2.48kB)
    Total RW  Size (RW Data + ZI Data)              1040 (   1.02kB)
    Total ROM Size (Code + RO Data + RW Data)       2552 (   2.49kB)

==============================================================================