The "Inspect" tool has an error and cannot be used

When I use the “Inspect” tool under Clion + Platformio, I encounter the following error:

PIO Core Call Error: “Processing STC8G1K08A (platform: intel_mcs51; board: STC8G1K08A)\r\n--------------------------------------------------------------------------------\r\nVerbose mode can be enabled via -v, --verbose option\r\nCONFIGURATION: https://docs.platformio.org/page/boards/intel_mcs51/STC8G1K08A.html\r\nPLATFORM: Intel MCS-51 (8051) (2.1.0) > Generic STC8G1K08A\r\nHARDWARE: STC8G1K08A 11MHz, 1.25KB RAM, 8KB Flash\r\nPACKAGES: \r\n - toolchain-sdcc @ 1.40200.0 (4.2.0)\r\nLDF: Library Dependency Finder → https://bit.ly/configure-pio-ldf\r\nLDF Modes: Finder ~ chain, Compatibility ~ soft\r\nFound 0 compatible libraries\r\nScanning dependencies…\r\nNo dependencies\r\nBuilding in debug mode\r\nCalculating size .pio\build\STC8G1K08A\firmware.hex\r\nInternal RAM layout:\r\n 0 1 2 3 4 5 6 7 8 9 A B C D E F\r\n0x00:|0|0|0|0|0|0|0|0|S|S|S|S|S|S|S|S|\r\n0x10:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|\r\n0x20:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|\r\n0x30:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|\r\n0x40:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|\r\n0x50:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|\r\n0x60:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|\r\n0x70:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|\r\n0x80:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|\r\n0x90:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|\r\n0xa0:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|\r\n0xb0:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|\r\n0xc0:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|\r\n0xd0:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|\r\n0xe0:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|\r\n0xf0:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|\r\n0-3:Reg Banks, T:Bit regs, a-z:Data, B:Bits, Q:Overlay, I:iData, S:Stack, A:Absolute\r\n\r\nStack starts at: 0x08 (sp set to 0x07) with 248 bytes available.\r\nNo spare internal RAM space left.\r\n\r\nOther memory:\r\n Name Start End Size Max \r\n ---------------- -------- -------- -------- --------\r\n PAGED EXT. RAM 0 256 \r\n EXTERNAL RAM 0 1024 \r\n ROM/EPROM/FLASH 0x0000 0x00d4 213 8192 \r\n\r\nGenerating memory usage report…\r\n\n\n*** [sizedata] ELFError : Magic number does not match\r\nTraceback (most recent call last):\r\n File "C:\Users\admin\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Action.py", line 1318, in execute\r\n result = self.execfunction(target=target, source=rsources, env=env)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File "C:\Users\admin\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Util.py", line 737, in call\r\n return self.method(*nargs, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File "C:\Users\admin\.platformio\penv\Lib\site-packages\platformio\builder\tools\piosize.py", line 207, in DumpSizeData\r\n elffile = ELFFile(fp)\r\n ^^^^^^^^^^^\r\n File "C:\Users\admin\.platformio\penv\Lib\site-packages\elftools\elf\elffile.py", line 84, in init\r\n self._identify_file()\r\n File "C:\Users\admin\.platformio\penv\Lib\site-packages\elftools\elf\elffile.py", line 569, in _identify_file\r\n elf_assert(magic == b’\x7fELF’, ‘Magic number does not match’)\r\n File "C:\Users\admin\.platformio\penv\Lib\site-packages\elftools\common\utils.py", line 78, in elf_assert\r\n _assert_with_exception(cond, msg, ELFError)\r\n File "C:\Users\admin\.platformio\penv\Lib\site-packages\elftools\common\utils.py", line 128, in _assert_with_exception\r\n raise exception_type(msg)\r\nelftools.common.exceptions.ELFError: Magic number does not match\r\n========================== [FAILED] Took 0.66 seconds ==========================”

Has anyone encountered this problem, how to solve it, please help.

Mhh I’m not sure if the ELF files generated by sdcc are so standard compliant they’re analyable :confused: Can you file an issue in GitHub - platformio/platform-intel_mcs51: Intel MCS-51 (8051): development platform for PlatformIO?