Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build examples/blinky #269

Closed
zzs213 opened this issue Aug 12, 2021 · 3 comments
Closed

How to build examples/blinky #269

zzs213 opened this issue Aug 12, 2021 · 3 comments

Comments

@zzs213
Copy link

zzs213 commented Aug 12, 2021

I'm a beginner of stm32. So try to build a simple example.

I'm using a docker image as work env, Which with arm toolchain gcc-arm-none-eabi-10.3-2021.07-x86_64-linux.tar.bz2 installed.

I try the flowwing commands

export STM32_TOOLCHAIN_PATH="/tools/gcc-arm-none-eabi-10.3-2021.07/bin"
export TARGET_TRIPLET=arm-none-eabi

cd examples/blinky
mkdir build
cd build
cmake ..

But Error as flowwing:

-- Detected toolchain path STM32_TOOLCHAIN_PATH in environmental variables:
-- /tools/gcc-arm-none-eabi-10.3-2021.07/bin
-- No STM32_TARGET_TRIPLET specified, using default: arm-none-eabi
-- Search for CMSIS families: STM32F4
-- Search for CMSIS RTOS: RTOS;RTOS_V2
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find CMSIS (missing: CMSIS_INCLUDE_DIRS CMSIS_SOURCES STM32F4)
(found version "v1.1.0")
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
/home/worker/roots/designs/play-stm32/stm32-cmake/cmake/FindCMSIS.cmake:296 (find_package_handle_standard_args)
CMakeLists.txt:30 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/worker/roots/designs/play-stm32/stm32-cmake/examples/blinky/build/CMakeFiles/CMakeOutput.log".
See also "/home/worker/roots/designs/play-stm32/stm32-cmake/examples/blinky/build/CMakeFiles/CMakeError.log".

As README.md said: STM32_CUBE_<FAMILY>_PATH should be set.

But I'm not known which package should be installed for STM32_CUBE_xxx.

Can somebody help me?

@atsju
Copy link
Collaborator

atsju commented Aug 12, 2021

@zzs213
warning is :
Neither STM32_CUBE_F4_PATH nor STM32_CMSIS_F4_PATH specified using default STM32_CUBE_F4_PATH

you need to clone this : https://github.com/STMicroelectronics/STM32CubeF4
and set STM32_CUBE_F4_PATH then it will work

@atsju
Copy link
Collaborator

atsju commented Aug 12, 2021

info for #246

@zzs213
Copy link
Author

zzs213 commented Aug 12, 2021

Thanks

@zzs213 zzs213 closed this as completed Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants