I just discovered your channel and I can't understand why the YT algorythm isn't boosting you more. Your guides are amazing and I'm very much looking forward to learn STM32 & their tools with your videos! Thanks for doing them!
3 роки тому+1
Thank you for kind words. I'm glad that you find my content helpfull which is my intent. If you find any video lacking in certain explanation regarding a topic or I dont have a video for a topic published, please do comment.
@ STM32 Ethernet PHY with LwIP do you have knowlegde about this topic? I thinks its an interesting topic for DIY IoT in combination with MQTT etc. Thankyou
Amazing channel, really comprehensive guides explaining every step of the way, the reasons for every choise as well as the alternatives. Your build playlist definitelly saved me more than a week of work trying to figure all this on my own
thank you so mutch. it is so nice explained. I was happy to heare that you also discribe the side effects of common configurations and there potetial errors! So usefull. you show the big picture of build system. just great, i want to learn more from you.
I always use plain Makefiles. Sometimes one for whole project, sometimes the GUI generated one includes the custom Makefile where own sources are. The extra abstraction layer of Cmake probably would make sense when using other compilers. For my embedded it is always gcc
For windows user: 1. Default make generator is Nmake. Cmake use default generator, so have to use cmake with additional '-G' flag. In Makefile in ur project (not "PROJECT") folder have to write one more line "-G "MinGW Makefiles" \" 2. It is worth pointing out, that to use cmake u have to install mingw32-make (u can use ninja also, but then u dont use make). First I installed "Make-3.81 for Windows", but can't choose that make in cmake as available generator. Maybe is possible to use "GnuWin32 make" as MinGW, but I failed. Matej Great Job thanks a lot! Greatings from Poland :)
3 роки тому+1
Thank you for providing notes for windows users as well. Regards!
Hi, How to make target compile option flags visible for all other cmake target libraries in my project ? I don't want to add flags in my toolchain file to make it global. Can I do it in my top level Cmakelist.txt file somehow ?
Рік тому+1
You can add those options in the global file before sourcing/including other libraries in subdirectories. This way they will inherit the settings as well. You can also add some local depending on the library.
I am trying to build cortex M4 in visual Studio for stm32mp157c-dk2 target, using zephyr rtos If any reference plzz suggest.
2 роки тому
I was working on a project that used the 2 core stm32mp1 from Ka-Ro and used their yocto linux template for building custom operating system. Apart from that I don't have any direct experience.
greatt but please can you share some books ablout stm32 or where can I learn more about embedded and stm32. thank you so much
2 роки тому+1
I haven't read any books on stm32 or embedded in general so I'm unable to recommend. Only book I have used was on C++11 and some uni courses on embedded design and electronics. Most of what I know is self taught and working on projects at companies around very experienced people. STM32 datasheets and reference manuals are great to study workings of peripherals along with websites like Analog Elektronics.
"The C compiler is not able to compile a simple C test program" - I got this error, I already installed three tools that you listed in Readme.md, and the program is successfully compiled by a makefile that is manually written by myself. But when I tried with the CMake, I got the error. Do you know how to solve it? Thanks!
2 роки тому
I explain at 10:23 that without including `CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY` cmake will try to test the compiler, but with no cpu model it fails. If you're using the example on github, which is now in `Example` folder, it should compile with no problem. I assume that you forgot to add the toolchain file or just copied a part of it and that's where the cmake configuration hanged.
@ I already added the "CMAKE", "Arm toolchain" and "cygwin" path to "Environment variables".
2 роки тому
@Thanh Trinh Linh I see that cygwin is a windows utility. I don't know how you installed gcc-arm-none-eabi on your computer, but I tried the same on ubuntu, fedora and arch and found, that arch and fedora carry `newlib` package separately and without it you get the same error as you had ... but it also mentioned somewhere that it could not find newlib. Maybe try looking into that. Also I updated my `stm32-cmake` repository readme: github.com/prtzl/stm32-cmake Edit: I also tested the problem and working behaviour on the original `046_BUILDING-PT5-cmake` project from the video and it was the same as with `stm32-cmake` repository. There are no major differences.
Im working on the project about this and YT algorithm blessed me with your video! Thx!. Although I have a question. With your Cmake files, I can compile and build the software and flash it into the board just fine. But when I try to use FreeRTOS, it seems like the CMSIS stuff refuse to compile for some reason. The error I got looks something like this /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: CMakeFiles/NUCLEOH7_CMAKE.dir/Core/Src/main.c.obj: in function `main': /home/rawinza555/Freertos_Make/TestFreeRTOSMake/Core/Src/main.c:123: undefined reference to `osKernelInitialize' Could you help me identify what's wrong? I set the source file and include path based on what's on makefile from CubeMX
3 роки тому
Looks like the linker is complaining that it cannot find it. Maybe you don't compile all the files that you would need. Can you check if you have all the files included?
@ I believe I did it right. Is there a way I can send you my github repo? I really appreciate your help here. I can use make to compile the code and it flashed and run just fine.
3 роки тому
You can share the link and I could take a look.
3 роки тому
@Rawin Pinkoh I found your repository before youtube delted it, I don't know why. I forked it to my github and applied changes. Now it compiles with no problem. Please review the readme I added and comment in CMakeLists.txt file. Regards. github.com/prtzl/STM32-CMAKE-FREERTOS
Out of words, haven't seen such an useful video on cmake. You are not only expert but have a good sense how and what to explain.
I just discovered your channel and I can't understand why the YT algorythm isn't boosting you more. Your guides are amazing and I'm very much looking forward to learn STM32 & their tools with your videos! Thanks for doing them!
Thank you for kind words. I'm glad that you find my content helpfull which is my intent. If you find any video lacking in certain explanation regarding a topic or I dont have a video for a topic published, please do comment.
@ STM32 Ethernet PHY with LwIP do you have knowlegde about this topic? I thinks its an interesting topic for DIY IoT in combination with MQTT etc. Thankyou
Amazing channel, really comprehensive guides explaining every step of the way, the reasons for every choise as well as the alternatives. Your build playlist definitelly saved me more than a week of work trying to figure all this on my own
thank you so mutch. it is so nice explained. I was happy to heare that you also discribe the side effects of common configurations and there potetial errors! So usefull.
you show the big picture of build system. just great, i want to learn more from you.
I always use plain Makefiles. Sometimes one for whole project, sometimes the GUI generated one includes the custom Makefile where own sources are. The extra abstraction layer of Cmake probably would make sense when using other compilers. For my embedded it is always gcc
when you make that Cmake file, does the backslah or forward slash matter, in other words is the file OS dependent when it comes to paths
can someone tell how to install this to project into the stm32 device?
Great stuff again! Can't wait for the next video!
what a wonderful explanation .. no one explained better than you .. thanks a TON
Thanks for the comment. I'm glad my video helped you :)
These videos are really super good and that's why I pay the money for the internet. Thank you !
For windows user:
1. Default make generator is Nmake. Cmake use default generator, so have to use cmake with additional '-G' flag. In Makefile in ur project (not "PROJECT") folder have to write one more line "-G "MinGW Makefiles" \"
2. It is worth pointing out, that to use cmake u have to install mingw32-make (u can use ninja also, but then u dont use make).
First I installed "Make-3.81 for Windows", but can't choose that make in cmake as available generator. Maybe is possible to use "GnuWin32 make" as MinGW, but I failed.
Matej Great Job thanks a lot!
Greatings from Poland :)
Thank you for providing notes for windows users as well. Regards!
Hi, How to make target compile option flags visible for all other cmake target libraries in my project ? I don't want to add flags in my toolchain file to make it global. Can I do it in my top level Cmakelist.txt file somehow ?
You can add those options in the global file before sourcing/including other libraries in subdirectories. This way they will inherit the settings as well. You can also add some local depending on the library.
Nice Explanation :D ...Although this is the first time I have seen someone use a Makefile to drive CMake 😆. Usually it is the other way around.
I used the Makefile to run CMake to run more Makefiles :)
I am trying to build cortex M4 in visual Studio for stm32mp157c-dk2 target, using zephyr rtos
If any reference plzz suggest.
I was working on a project that used the 2 core stm32mp1 from Ka-Ro and used their yocto linux template for building custom operating system. Apart from that I don't have any direct experience.
Awesome video! Really thorough and beginner friendly.
I just want to say thank you so much for your videos
libsupc++ and at the same time no-rtti, is that OK!?
Yes, I missed that, thank you!
greatt but please can you share some books ablout stm32 or where can I learn more about embedded and stm32. thank you so much
I haven't read any books on stm32 or embedded in general so I'm unable to recommend. Only book I have used was on C++11 and some uni courses on embedded design and electronics.
Most of what I know is self taught and working on projects at companies around very experienced people.
STM32 datasheets and reference manuals are great to study workings of peripherals along with websites like Analog Elektronics.
Thanks a lot! Great video.
Awesome, thanks!
i Love this tutorial awesome
thank you very much))))))))))))))
"The C compiler is not able to compile a simple C test program" - I got this error, I already installed three tools that you listed in Readme.md, and the program is successfully compiled by a makefile that is manually written by myself. But when I tried with the CMake, I got the error. Do you know how to solve it? Thanks!
I explain at 10:23 that without including `CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY` cmake will try to test the compiler, but with no cpu model it fails. If you're using the example on github, which is now in `Example` folder, it should compile with no problem. I assume that you forgot to add the toolchain file or just copied a part of it and that's where the cmake configuration hanged.
@ I used the project "046_BUILDING-PT5-cmake", I didn't change anything there and then I got the error
@ I already added the "CMAKE", "Arm toolchain" and "cygwin" path to "Environment variables".
@Thanh Trinh Linh I see that cygwin is a windows utility. I don't know how you installed gcc-arm-none-eabi on your computer, but I tried the same on ubuntu, fedora and arch and found, that arch and fedora carry `newlib` package separately and without it you get the same error as you had ... but it also mentioned somewhere that it could not find newlib. Maybe try looking into that.
Also I updated my `stm32-cmake` repository readme: github.com/prtzl/stm32-cmake
Edit: I also tested the problem and working behaviour on the original `046_BUILDING-PT5-cmake` project from the video and it was the same as with `stm32-cmake` repository. There are no major differences.
@ It seems to have so many problems with using CMAKE and GCC-arm -embedded-toolchain on windows environment.
Im working on the project about this and YT algorithm blessed me with your video! Thx!.
Although I have a question. With your Cmake files, I can compile and build the software and flash it into the board just fine. But when I try to use FreeRTOS, it seems like the CMSIS stuff refuse to compile for some reason. The error I got looks something like this
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: CMakeFiles/NUCLEOH7_CMAKE.dir/Core/Src/main.c.obj: in function `main':
/home/rawinza555/Freertos_Make/TestFreeRTOSMake/Core/Src/main.c:123: undefined reference to `osKernelInitialize'
Could you help me identify what's wrong? I set the source file and include path based on what's on makefile from CubeMX
Looks like the linker is complaining that it cannot find it. Maybe you don't compile all the files that you would need. Can you check if you have all the files included?
@ I believe I did it right. Is there a way I can send you my github repo? I really appreciate your help here.
I can use make to compile the code and it flashed and run just fine.
You can share the link and I could take a look.
@Rawin Pinkoh I found your repository before youtube delted it, I don't know why. I forked it to my github and applied changes. Now it compiles with no problem. Please review the readme I added and comment in CMakeLists.txt file. Regards.
github.com/prtzl/STM32-CMAKE-FREERTOS
@ Thanks for the help! May the youtube algorithm god bless your channel even further!