Coder Social home page Coder Social logo

Comments (4)

timurey avatar timurey commented on June 15, 2024

FindCMSIS.cmake need full path to firmware package.
You should change STM32Cube_DIR to ~/STM32Cube/Repository/STM32Cube_FW_F4_Vx.x.x/

from stm32-cmake.

vveliev avatar vveliev commented on June 15, 2024

no luck

cmake -DSTM32_CHIP=STM32F411xE -DCMAKE_C_COMPILER=/usr/local/bin/arm-none-eabi-gcc -DCMAKE_CXX_COMPILER=/usr/local/bin/arm-none-eabi-g++ -DCMAKE_TOOLCHAIN_FILE=/Users/vagif/workspace/stm32/stm32-cmake/cmake/gcc_stm32f4.cmake -DCMAKE_MODULE_PATH=/Users/vagif/workspace/stm32/stm32-cmake/cmake -DTOOLCHAIN_PREFIX=/usr/local/bin/ -DSTM32Cube_DIR=~/STM32Cube/Repository/STM32Cube_FW_F4_V1.18.0/
-- STM32F411xE is 411xE device
CMake Error at /usr/local/Cellar/cmake/3.10.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find CMSIS (missing: CMSIS_SOURCES)
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.10.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /Users/vagif/workspace/stm32/stm32-cmake/cmake/FindCMSIS.cmake:152 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:6 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/Users/vagif/workspace/stm32/stm32-blinky/CMakeFiles/CMakeOutput.log".
See also "/Users/vagif/workspace/stm32/stm32-blinky/CMakeFiles/CMakeError.log".

from stm32-cmake.

timurey avatar timurey commented on June 15, 2024

Did you clear cache by rm CMakeCache.txt before building?

cmake -DSTM32_CHIP=STM32F411xE -DCMAKE_TOOLCHAIN_FILE=~/workspace/libs/stm32-cmake/cmake/gcc_stm32.cmake -DCMAKE_MODULE_PATH=~/workspace/libs/stm32-cmake/cmake -DTOOLCHAIN_PREFIX=~/opt/gcc-arm-none-eabi -DSTM32Cube_DIR=~/STM32Cube/Repository/STM32Cube_FW_F4_V1.18.0/ works fine for me.

from stm32-cmake.

satrapes avatar satrapes commented on June 15, 2024

Actually the solution for me was that the CubeF4 firmware package doesn't contain a CMSIS folder as the CubeF7 one does. So you would probably need to add it explicitly.
You can probably close this issue now.

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.