Hi,
I’m trying to modify platformio files in order to use spl with my stm32vldiscovery board.
I updated the f100rb.json file to have spl under frameworks:
I checked that my spl package contains stm32f1 files
when i try to build the project i get an error:
Resolving disco_f100rb dependencies...
Already up-to-date.
Updating metadata for the vscode IDE...
UserSideException: Processing disco_f100rb (platform: ststm32; board: disco_f100rb; framework: spl)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/disco_f100rb.html
PLATFORM: ST STM32 (17.5.0) > ST STM32VLDISCOVERY
HARDWARE: STM32F100RBT6 24MHz, 8KB RAM, 128KB Flash
DEBUG: Current (stlink) On-board (stlink) External (blackmagic, cmsis-dap, jlink)
PACKAGES:
- framework-spl @ 2.10202.0+sha.5c2d987
- toolchain-gccarmnoneeabi @ 1.70201.0 (7.2.1)
KeyError: "Invalid board option 'build.core'":
File "/Users/amitgedj/.platformio/penv/lib/python3.10/site-packages/platformio/builder/main.py", line 173:
env.SConscript("$BUILD_SCRIPT")
File "/Users/amitgedj/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 612:
return _SConscript(self.fs, *files, **subst_kw)
File "/Users/amitgedj/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 279:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/Users/amitgedj/.platformio/platforms/ststm32/builder/main.py", line 120:
target_elf = env.BuildProgram()
File "/Users/amitgedj/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Util/envs.py", line 251:
return self.method(*nargs, **kwargs)
File "/Users/amitgedj/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piobuild.py", line 61:
env.ProcessProgramDeps()
File "/Users/amitgedj/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Util/envs.py", line 251:
return self.method(*nargs, **kwargs)
File "/Users/amitgedj/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piobuild.py", line 121:
env.BuildFrameworks(env.get("PIOFRAMEWORK"))
File "/Users/amitgedj/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Util/envs.py", line 251:
return self.method(*nargs, **kwargs)
File "/Users/amitgedj/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piobuild.py", line 347:
SConscript(env.GetFrameworkScript(name), exports="env")
File "/Users/amitgedj/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 676:
return method(*args, **kw)
File "/Users/amitgedj/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 612:
return _SConscript(self.fs, *files, **subst_kw)
File "/Users/amitgedj/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 279:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/Users/amitgedj/.platformio/platforms/ststm32/builder/frameworks/spl.py", line 78:
join(FRAMEWORK_DIR, board.get("build.core"),
File "/Users/amitgedj/.platformio/penv/lib/python3.10/site-packages/platformio/platform/board.py", line 47:
raise KeyError("Invalid board option '%s'" % path)
========================== [FAILED] Took 0.21 seconds ==========================
anyone have any suggestion to solve this?
thanks