I am unable to get the inspect memory working on Ubunti platform. Everything builds fine, both realease and debug (although cannot get debug to do anything with stlinkv2, a different issue) and can also upload OK.
I have the latest pio core (5.1.1) and everything appears up to date.
When I try to run inspect memory form pio home, I just get this output:
PIO Core Call Error: "Processing Mi80_104_debug (platform: ststm8; board: stm8s003f3; framework: spl)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm8/stm8s003f3.html
PLATFORM: ST STM8 (2.0.0) > ST STM8S003F3 chip
HARDWARE: STM8S003F3P6 16MHz, 1KB RAM, 8KB Flash
DEBUG: Current (stlink) External (stlink)
PACKAGES:
- framework-ststm8spl 0.20301.181217 (2.3.1)
- tool-stm8binutils 0.230.0 (2.30)
- toolchain-sdcc 1.40100.12072 (4.1.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 4 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <src>
| |-- <src>
|-- <src>
Building in debug mode
Checking size .pio/build/Mi80_104_debug/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [===== ] 53.2% (used 545 bytes from 1024 bytes)
Flash: [======== ] 83.5% (used 6837 bytes from 8192 bytes)
Calculating size .pio/build/Mi80_104_debug/firmware.elf
text data bss dec hex filename
7440 0 0 7440 1d10 .pio/build/Mi80_104_debug/firmware.elf
Generating memory usage report...
*** [sizedata] AssertionError :
Traceback (most recent call last):
File "/home/andy/.platformio/packages/tool-scons/scons-local-4.1.0/SCons/Action.py", line 1280, in execute
result = self.execfunction(target=target, source=rsources, env=env)
File "/home/andy/.platformio/packages/tool-scons/scons-local-4.1.0/SCons/Util.py", line 658, in __call__
return self.method(*nargs, **kwargs)
File "/home/andy/.platformio/penv/lib/python3.8/site-packages/platformio/builder/tools/piosize.py", line 224, in DumpSizeData
for symbol in _collect_symbols_info(env, elffile, elf_path, sections):
File "/home/andy/.platformio/penv/lib/python3.8/site-packages/platformio/builder/tools/piosize.py", line 159, in _collect_symbols_info
symbol_locations = _get_symbol_locations(env, elf_path, symbol_addrs)
File "/home/andy/.platformio/penv/lib/python3.8/site-packages/platformio/builder/tools/piosize.py", line 56, in _get_symbol_locations
assert len(addrs) == len(locations)
AssertionError
========================== [FAILED] Took 0.47 seconds ==========================
Environment Status Duration
-------------- -------- ------------
Mi80_104_debug FAILED 00:00:00.465
==================== 1 failed, 0 succeeded in 00:00:00.465 ====================
Seems tool is throwing python [sizedata] Asserion Error. If anyone has any insight into this, help is much appreciated.