Trying again to resolve issue with uploading firmware of Zephyr SDK example to a SWAN via OpenOCD and STLink V3. I notice this error after Zephyr build within the container and wonder if the source of the issue and how to resolve?
Snippet from “main.c”, #include <zephyr/drivers/gpio.h> is marked as error:
/*
* Copyright (c) 2023 Blues Inc.
*
* MIT License. Use of this source code is governed by licenses granted
* by the copyright holder including that found in the LICENSE file.
*
* Author: Zachary J. Fields
*/
// Include Zephyr Headers
#include <zephyr/drivers/gpio.h>
#include <zephyr/kernel.h>
Additional symptom. Upon deleting Container, Images, Volumes and reloading and reopening the Docker Container, a CMake error occurs related to Board Definition?
[proc] Executing command: cmake --version
[proc] Executing command: cmake -E capabilities
[variant] Loaded new set of variants
[proc] Executing command: /usr/bin/cmake --version
[proc] Executing command: /usr/bin/cmake -E capabilities
[main] Configuring project: note-zephyr
[proc] Executing command: /usr/bin/cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -S/workspaces/note-zephyr -B/workspaces/note-zephyr/build -G Ninja
[cmake] Loading Zephyr default modules (Zephyr base).
[cmake] Not searching for unused variables given on the command line.
[cmake] -- Application: /workspaces/note-zephyr
[cmake] -- CMake version: 3.22.1
[cmake] -- Found Python3: /usr/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter
[cmake] -- Cache files will be written to: /home/blues/.cache/zephyr
[cmake] -- Zephyr version: 3.6.99 (/home/blues/zephyrproject/zephyr)
[cmake] -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
[cmake] CMake Error at /home/blues/zephyrproject/zephyr/cmake/modules/extensions.cmake:3195 (message):
[cmake] BOARD is not being defined on the CMake command-line, in the environment or
[cmake] by the app.
[cmake] Call Stack (most recent call first):
[cmake] /home/blues/zephyrproject/zephyr/cmake/modules/boards.cmake:56 (zephyr_check_cache)
[cmake] /home/blues/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:132 (include)
[cmake] /home/blues/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
[cmake] /home/blues/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
[cmake] CMakeLists.txt:11 (find_package)
[cmake]
[cmake]
[cmake] -- Configuring incomplete, errors occurred!
[proc] The command: /usr/bin/cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -S/workspaces/note-zephyr -B/workspaces/note-zephyr/build -G Ninja exited with code: 1