Memory Report: FATAL ERROR

I'm using nRF Connect SDK 2.1.0 on macOS 14.2.1 (23C71) MacBook Pro with Apple M1 Pro chip.  When I try to generate a memory report for our product, it fails as shown below.  Any ideas on how to get that working?  (The memory report does work from some other sample projects I have tried.)
[16:23:09] Command failed: west build -d /Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app/build -t footprint
FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/20d68df7e5/bin/cmake --build /Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app/build --target footprint

Command failed: west build -d /Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app/build -t footprint
FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/20d68df7e5/bin/cmake --build /Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app/build --target footprint
[16:23:38] west build --build-dir /Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app/build /Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app --pristine --board sentry_nrf52840 -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=/Users/denis/sandbox/wynd/workspace/wynd_firmware_halo -DCONF_FILE=/Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app/prj_debug.conf;/Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app/prj_common.conf;/Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app/prj_dynamic.conf
[16:23:49] Failure (code 1).
[16:24:55] west build --build-dir /Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app/build /Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app --pristine --board sentry_nrf52840 -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=/Users/denis/sandbox/wynd/workspace/wynd_firmware_halo -DCONF_FILE=/Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app/prj_debug.conf;/Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app/prj_common.conf;/Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app/prj_dynamic.conf
[16:25:04] Failure (code 1).
[16:25:34] west build --build-dir /Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app/build /Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app --pristine --board sentry_nrf52840 -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=/Users/denis/sandbox/wynd/workspace/wynd_firmware_halo -DCONF_FILE=/Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app/prj_debug.conf;/Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app/prj_common.conf;/Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app/prj_dynamic.conf
[16:25:52] Success.
[16:26:15] Command failed: west build -d /Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app/build -t footprint
Traceback (most recent call last):
File "/Users/denis/sandbox/wynd/workspace/zephyr/scripts/footprint/size_report", line 803, in <module>
main()
File "/Users/denis/sandbox/wynd/workspace/zephyr/scripts/footprint/size_report", line 790, in main
root = generate_any_tree(symbol_dict, symsize, common_path_prefix)
File "/Users/denis/sandbox/wynd/workspace/zephyr/scripts/footprint/size_report", line 560, in generate_any_tree
root = TreeNode('Root', "root")
File "/Users/denis/sandbox/wynd/workspace/zephyr/scripts/footprint/size_report", line 534, in __init__
self.size = size
AttributeError: can't set attribute
FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/20d68df7e5/bin/cmake --build /Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app/build --target footprint

Command failed: west build -d /Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app/build -t footprint
Traceback (most recent call last):
File "/Users/denis/sandbox/wynd/workspace/zephyr/scripts/footprint/size_report", line 803, in <module>
main()
File "/Users/denis/sandbox/wynd/workspace/zephyr/scripts/footprint/size_report", line 790, in main
root = generate_any_tree(symbol_dict, symsize, common_path_prefix)
File "/Users/denis/sandbox/wynd/workspace/zephyr/scripts/footprint/size_report", line 560, in generate_any_tree
root = TreeNode('Root', "root")
File "/Users/denis/sandbox/wynd/workspace/zephyr/scripts/footprint/size_report", line 534, in __init__
self.size = size
AttributeError: can't set attribute
FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/20d68df7e5/bin/cmake --build /Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/app/build --target footprint
Parents Reply Children
  • I set both to 2.1.0 and still see the same issue (see below).  BTW: I installed the available update noted on the first line, but still see that message that it is available...

    [19:38:56] Command failed: west build -d /Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/thread/build -t footprint
    Traceback (most recent call last):
    File "/Users/denis/sandbox/wynd/workspace/zephyr/scripts/footprint/size_report", line 803, in <module>
    main()
    File "/Users/denis/sandbox/wynd/workspace/zephyr/scripts/footprint/size_report", line 790, in main
    root = generate_any_tree(symbol_dict, symsize, common_path_prefix)
    File "/Users/denis/sandbox/wynd/workspace/zephyr/scripts/footprint/size_report", line 560, in generate_any_tree
    root = TreeNode('Root', "root")
    File "/Users/denis/sandbox/wynd/workspace/zephyr/scripts/footprint/size_report", line 534, in __init__
    self.size = size
    AttributeError: can't set attribute
    FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/v2.1.0/bin/cmake --build /Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/thread/build --target footprint

    Command failed: west build -d /Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/thread/build -t footprint
    Traceback (most recent call last):
    File "/Users/denis/sandbox/wynd/workspace/zephyr/scripts/footprint/size_report", line 803, in <module>
    main()
    File "/Users/denis/sandbox/wynd/workspace/zephyr/scripts/footprint/size_report", line 790, in main
    root = generate_any_tree(symbol_dict, symsize, common_path_prefix)
    File "/Users/denis/sandbox/wynd/workspace/zephyr/scripts/footprint/size_report", line 560, in generate_any_tree
    root = TreeNode('Root', "root")
    File "/Users/denis/sandbox/wynd/workspace/zephyr/scripts/footprint/size_report", line 534, in __init__
    self.size = size
    AttributeError: can't set attribute
    FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/v2.1.0/bin/cmake --build /Users/denis/sandbox/wynd/workspace/wynd_firmware_halo/applications/sentry/thread/build --target footprint
  • Memory report is working with 2.5.2, so I assume this was a bug in 2.1.0 that has since been fixed.

Related