D:\github\mbed-ce-hello-world>mkdir build
D:\github\mbed-ce-hello-world>cd build
D:\github\mbed-ce-hello-world\build>cmake .. -GNinja -DCMAKE_BUILD_TYPE=Develop -DMBED_TARGET=TEENSY_40
-- Found Python3: D:/Program Files/Python311/python.exe (found version "3.11.2") found components: Interpreter
-- Checking for Python package intelhex -- found
-- Checking for Python package prettytable -- found
-- Checking for Python package future -- found
-- Checking for Python package jinja2 -- found
-- Checking for Python package mbed_tools -- found
-- Mbed: First CMake run detected, generating configs...
ERROR: Failed to decode JSON data in the file located at 'D:\github\mbed-ce-hello-world\mbed_app.json'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\Program Files\Python311\Lib\site-packages\click\core.py", line 1130, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Program Files\Python311\Lib\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "D:\Program Files\Python311\Lib\site-packages\mbed_tools\cli\main.py", line 38, in invoke
super().invoke(context)
File "D:\Program Files\Python311\Lib\site-packages\click\core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Program Files\Python311\Lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Program Files\Python311\Lib\site-packages\click\core.py", line 760, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Program Files\Python311\Lib\site-packages\mbed_tools\cli\configure.py", line 85, in configure
_, output_path = generate_config(mbed_target, toolchain, program)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Program Files\Python311\Lib\site-packages\mbed_tools\build\config.py", line 36, in generate_config
config = assemble_config(
^^^^^^^^^^^^^^^^
File "D:\Program Files\Python311\Lib\site-packages\mbed_tools\build\_internal\config\assemble_build_config.py", line 42, in assemble_config
return _assemble_config_from_sources(target_attributes, mbed_lib_files, mbed_app_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Program Files\Python311\Lib\site-packages\mbed_tools\build\_internal\config\assemble_build_config.py", line 55, in _assemble_config_from_sources
app_data = source.from_file(
^^^^^^^^^^^^^^^^^
File "D:\Program Files\Python311\Lib\site-packages\mbed_tools\build\_internal\config\source.py", line 23, in from_file
return prepare(decode_json_file(config_source_file_path), source_name=default_name, target_filters=target_filters)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Program Files\Python311\Lib\site-packages\mbed_tools\lib\json_helpers.py", line 19, in decode_json_file
return json.loads(path.read_text())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Program Files\Python311\Lib\json\__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Program Files\Python311\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Program Files\Python311\Lib\json\decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 6 column 13 (char 151)
CMake Error at mbed-os/tools/cmake/mbed_generate_configuration.cmake:115 (message):
mbedtools configure failed! Cannot build this project. Command was
D:/Program Files/Python311/python.exe -c import mbed_tools.cli.main;
exit(mbed_tools.cli.main.cli()) configure -t GCC_ARM -m TEENSY_40
--mbed-os-path D:/github/mbed-ce-hello-world/mbed-os/tools/cmake/../..
--output-dir D:/github/mbed-ce-hello-world/build --app-config
D:/github/mbed-ce-hello-world/mbed_app.json
Call Stack (most recent call first):
mbed-os/tools/cmake/app.cmake:42 (include)
CMakeLists.txt:12 (include)
-- Configuring incomplete, errors occurred!