Coder Social home page Coder Social logo

Comments (6)

KKoovalsky avatar KKoovalsky commented on June 8, 2024

You have forgotten to specify -DCMAKE_TOOLCHAIN_FILE

from stm32-cmake.

kisielk avatar kisielk commented on June 8, 2024

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.

KKoovalsky avatar KKoovalsky commented on June 8, 2024

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.

kisielk avatar kisielk commented on June 8, 2024

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.

KKoovalsky avatar KKoovalsky commented on June 8, 2024

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.

kisielk avatar kisielk commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.