This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF9160: size_report seems to be broken in latest ncs1.4.0

Hi,

I see the "ninja rom_report" fails in ncs v1.4.0, see the log below.

C:\Data\GIT\ncs\v1.4.0\nrf\applications\serial_lte_modem\build>ninja rom_report
[0/20] Performing build step for 'spm_subimage'
ninja: no work to do.
[1/18] Performing build step for 'mcuboot_subimage'
ninja: no work to do.
[5/16] Linking C executable zephyr\zephyr_prebuilt.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      313184 B     441856 B     70.88%
            SRAM:      120056 B       128 KB     91.60%
        IDT_LIST:         152 B         2 KB      7.42%
[15/16] cmd.exe /C "cd /D C:\Data\GIT\ncs\v1.4.0\nrf\applications\serial_lte_modem\b...input C:/Data/GIT/ncs/v1.4.0/nrf/applications/serial_lte_modem/build/partitions.yml"
 (0x100000 - 1024kB):
+------------------------------------------+
| 0x0: mcuboot (0xc000)                    |
| 0xc000: EMPTY_0 (0x4000)                 |
+---0x10000: mcuboot_primary (0x78000)-----+
| 0x10000: mcuboot_pad (0x200)             |
+---0x10200: mcuboot_primary_app (0x77e00)-+
| 0x10200: spm (0xc000)                    |
| 0x1c200: app (0x6be00)                   |
| 0x88000: mcuboot_secondary (0x78000)     |
+------------------------------------------+
[15/16] cmd.exe /C "cd /D C:\Data\GIT\ncs\v1.4.0\nrf\applications\serial_lte_modem\b... --json C:/Data/GIT/ncs/v1.4.0/nrf/applications/serial_lte_modem/build/rom.json rom"
Traceback (most recent call last):
  File "C:/Data/GIT/ncs/v1.4.0/zephyr/scripts/footprint/size_report", line 643, in <module>
    main()
  File "C:/Data/GIT/ncs/v1.4.0/zephyr/scripts/footprint/size_report", line 605, in main
    print("WARN: Symbol '{0}' is not in RAM or ROM".format(sym['name']))
TypeError: string indices must be integers
FAILED: zephyr/cmake/reports/CMakeFiles/rom_report
cmd.exe /C "cd /D C:\Data\GIT\ncs\v1.4.0\nrf\applications\serial_lte_modem\build\zephyr\cmake\reports && C:\Data\GIT\ncs\v1.4.0\toolchain\opt\bin\python.exe C:/Data/GIT/ncs/v1.4.0/zephyr/scripts/footprint/size_report -k C:/Data/GIT/ncs/v1.4.0/nrf/applications/serial_lte_modem/build/zephyr/zephyr.elf -z C:/Data/GIT/ncs/v1.4.0/zephyr -o C:/Data/GIT/ncs/v1.4.0/nrf/applications/serial_lte_modem/build --json C:/Data/GIT/ncs/v1.4.0/nrf/applications/serial_lte_modem/build/rom.json rom"
ninja: build stopped: subcommand failed.

Working log in  1.3.1

5342.ncs1.3.1_rom_report,log.txt

Parents Reply Children
Related