Comments (6)
You have forgotten to specify -DCMAKE_TOOLCHAIN_FILE
from stm32-cmake.
Same thing happens:
cmake . -DCMAKE_TOOLCHAIN_FILE=../cmake/gcc_stm32.cmake -DCMAKE_MODULE_PATH=../cmake -DSTM32_CHIP=STM32F407IG
CMake Error at /Users/kamil/intellijel/eurorack/ARM/stm32-cmake/cmake/FindCMSIS.cmake:3 (STM32_GET_CHIP_TYPE):
Unknown CMake command "STM32_GET_CHIP_TYPE".
Call Stack (most recent call first):
CMakeLists.txt:6 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
See also "/Users/kamil/intellijel/eurorack/ARM/stm32-cmake/stm32-blinky/CMakeFiles/CMakeOutput.log".
from stm32-cmake.
Whats Your directory tree? Maybe there is a mistake in setting relative directory? I can see that You're invoking cmake .
from current directory and setting CMAKE_MODULE_PATH
to ../cmake
. Try to use absolute paths.
from stm32-cmake.
You can see the directory tree in the error messages. I'm executing cmake from within the stm32-blinky
subdirectory, so the relative path of ../cmake
should work.
For the actual project I'm going to be using this with I need to use relative paths, so I need to get it to work using this method.
from stm32-cmake.
Please, try it with absolute path first to check if the relative path is correct.
the relative path of ../cmake should work
so You're not really sure about that.
I can't see Your directory tree from logs.
Try also to invoke cmake
providing working directory as the last argument:
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/gcc_stm32.cmake -DCMAKE_MODULE_PATH=../cmake -DSTM32_CHIP=STM32F407IG .
from stm32-cmake.
Ok I'm not sure what was wrong, but I deleted the repository and checked it out again, now when I copy and paste the code from my original comment it works (after also adding -DTOOLCHAIN_PREFIX
and -DSTM32Cube_DIR
)
from stm32-cmake.
Related Issues (20)
- Unable to configure/build Blinky example on windows 10. (No STM32_TARGET_TRIPLET specified) HOT 7
- CMake CMP0057 Policy Error HOT 2
- Check the cmake version and inform the user if it's not at least the requested one
- Support Dual Core Project WL55JCX HOT 11
- Add Branch with only CMAKE functions called `lib ` HOT 5
- FetchContent_Declare does not show progress HOT 5
- Wrong HAL family in find_package HOT 2
- quotes in --sysroot breaks clangd HOT 3
- To the next release and beyond HOT 1
- Multiple warnings from HAL HOT 6
- we need integration of H5 family and C0 family HOT 6
- How to include middleware? HOT 3
- How to include CMSIS arm_math? HOT 8
- Target all HAL libraries for a family HOT 9
- Template on multi-level directories with custom libraries HOT 2
- Calling find_package() to find CMSIS multiple times leads to errors HOT 7
- Incorrect TARGET_TRIPLET variable handling
- Linking fails with `-lstm_cube: no such file or directory` HOT 1
- UT: Make unit test run for all existing and future families HOT 1
- Default linker script interferes with custom linker script HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stm32-cmake.