Я сделал проект как учебник https://blog.jetbrains.com/clion/2019/02/clion-2019-1-eap-clion-for-embedded-development-part-iii/?gclid=CjwKCAjwhOD0BRAQEiwAK7JHmKUzvoJnORtCn3YxpsSb00Ep_dE0gNQOytiXVgFj6EXOjyCAIH9XTBoCngQQAvD_BwE&gclsrc=aw.ds
Я получаю набор инструментов для рук из https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads
Добавить папку bin в PATH, используя. bashr c. Консольная команда работает хорошо:
$ arm-none-eabi-gcc arm-none-eabi-gcc: fatal error: no input files
После создания проекта в Clion с STM32CubeMX cmake не настраивается:
-- The C compiler identification is unknown -- The CXX compiler identification is unknown -- The ASM compiler identification is unknown -- Found assembler: arm-none-eabi-gcc CMake Error at CMakeLists.txt:34 (PROJECT): The CMAKE_C_COMPILER: arm-none-eabi-gcc is not a full path and was not found in the PATH. Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.
Но папка bin уже в PATH !!!
Clion смотрите компиляторы, если установите toolchail с помощью pacman или скопируйте все содержимое папки bin в / usr / bin /, но не нашли другие файлы, такие как nano.specs, nosys.specs, stdint.h и другие, включая.
Надеюсь не знаю, как указать Clion и CubeMX правильный путь к цепочке инструментов.
Кажется, что ваш cmake не может найти компилятор C / C ++. В настройках CLion Toolchain вы можете указать пути к компилятору (arm-none-eabi-g cc и arm-none-eabi-g ++ в вашем случае) или просто передать их CMkae через CMAKE_C_COMPILER и CMAKE_CXX_COMPILER define.
CMAKE_C_COMPILER
CMAKE_CXX_COMPILER