Comments (8)
Hello ted-xp,
Can you explain how to build on windows a little bit better - please?
I have tried it but what do you mean with "Prepare initial CMake cache contents build_settings setting paths proper for your installation"
thanks
mathias
from stm32-cmake.
Okay so i got it to work on windows 7
mathias
from stm32-cmake.
@mgiaco please post how you use it on windows so @ObKo could add this to the README.md
from stm32-cmake.
@mgiaco, sorry for not answering for so long - I'm pretty overloaded on my current job now -) I think it might be worth that you explain which steps were unclear to you so that I could explain it better in documentation (At least the words you cited were taken from my branch of @ObKo wonderful original work).
By the way, though I made some refactoring (mostly to suit my needs: using STM32F2 family and new StdPeriph releases) of the original code and made certain handy patches, I can't help feeling that the whole build method looks weird, complicated and difficult to maintain and to extend -(
Anyway my branch is currently used in production environment to build both under Windows and Linux. Though now I prefer to use https://launchpad.net/gcc-arm-embedded/ toolchain instead of CodeSourcery mentioned in documentation file.
from stm32-cmake.
@ted-xp and @jerryjacobs so I only use the fork from ted-xp to build a project for an STM32F1 with the latest STM Lib for the F1. I do not use the Cube stuff till now. So add a branch to my fork I named it ted_update. So I always use out of source builds with cmake so .. I added a read.me in cmsis and in stdp.. and also in the blinky. For the blinky I also added a fab file to build with fabric. That´s really nice I think you can use python fabric to cal local make stuff :-) This also works from eclipse
from stm32-cmake.
In the next days I will switch back to the original master from @ObKo because he updated the whole stuff to the new Cube Libs a few days ago :-). I only use F1 and F4 devices so I can go with it I think. My goal is to build on windows for work and linux for daily test and build. So I only tried windows now. On linux I think i do not need the the cached build settings - right?
Have you already tried to build on windows with the new master from @ObKo ?
thanks mathias
from stm32-cmake.
Since this issue becomes discussion thread, there is some further improvements I'm planning to done:
- CMSIS and HAL now used as sources, so projects for CMSIS and HAL is useless. In future, cmake scripts will search for sources directly in STM32CubeMX folders using STM32Cube_DIR variable.
- Script for searching Cube's HAL will support cmake's COMPONENTS for selecting required hal components as it already done in ChibiOS scripts.
- (maybe) Autogeneration of linker script and stm32f*_hal_conf.h
from stm32-cmake.
I use STM32L152RCT6 chip. Can you help me to use this project for this chip?
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 10
- 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 2
- 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.