geoffreymbrown / stm32-template Goto Github PK
View Code? Open in Web Editor NEWA Build Template for the STM32 Processor
A Build Template for the STM32 Processor
make: *** No rule to make target "system_stm32f10x.o", needed by "Demo.elf". Stop.
I only change paths to periph.library and to gcc.
Why it appear and how to fix it?
Hello, I am following along with your book "Discovering the STM32 Microcontroller". On page 49 there is instruction to type "make" in the demo folder. The stm32f10x.h file cannot be found despite Makefile.common pointing to the right place. I even checked by navigating to the location and looking at the file!
This is the error from make:
~/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc -c -O1 -g -mcpu=cortex-m3 -mthumb -I..
-I/gcc-arm-none-eabi_samples/STM32F10x_StdPeriph_Lib_V3.5.0/Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x
-I/gcc-arm-none-eabi_samples/STM32F10x_StdPeriph_Lib_V3.5.0/Libraries/CMSIS/CM3/CoreSupport
-I/gcc-arm-none-eabi_samples/STM32F10x_StdPeriph_Lib_V3.5.0/Libraries/STM32F10x_StdPeriph_Driver/inc
-I. -DSTM32F10X_MD_VL -DUSE_STDPERIPH_DRIVER -DUSE_FULL_ASSERT
-I../Library/ff9/src -I../Library ../startup_stm32f10x.c -o startup_stm32f10x.o
../startup_stm32f10x.c:3:23: fatal error: stm32f10x.h: No such file or directory
compilation terminated.
make: *** [../Makefile.common:66: startup_stm32f10x.o] Error 1
Please could you send help, I would like to carry on with this book.
I can see the first linked library is "-I.." could that be where the problem lies? I will carry on looking at the files and wait for your reply.
Hi,
I was working my way through your book and hoping to learn how to program STM32s using the gcc tool chain. Turns out my geekyness is not high enough... Trying to compile the modified blinky from exercise 4.1 throws a lot of "undefined reference to assert_failed" from STM32F10x_StdPeriph_Lib_V3.5.0/Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_gpio.c
I've downloaded the library from STM just yesterday. I found two suggested 'fixes' for that, none of them made it compile.
Helpless,
Stephan
Hi,
I'm using Eclipse with gnuarm plugin http://gnuarmeclipse.sourceforge.net/, trying to read BMP085 pressure sensors. Where is Status defined ? I'll try uint32_t for now.
Have a nice weekend,
Stephan
when typed "make" ... ends to this:
/home/peyman/toolchain/Sourcery/bin/arm-none-eabi-gcc -T../stm32f100.ld -mthumb -mcpu=cortex-m3 -o BlinkingLights.elf startup_stm32f10x.o system_stm32f10x.o main.o
main.o: In function main': **# /home/peyman/toolchain/STM32-Template/BlinkingLights/main.c:12: undefined reference to
RCC_APB2PeriphClockCmd'**
collect2: error: ld returned 1 exit status
../Makefile.common:61: recipe for target 'BlinkingLights.elf' failed
I think marked text says that could not include "stm32f10x_gpio.c" & "stm32f10x_rcc.c" files in "/home/peyman/toolchain/STM32F10x_StdPeriph_Lib_V3.5.0/Libraries/STM32F10x_StdPeriph_Driver" directory.
How to fix??
Hello.
I didn't find a "send a message" button so I'm creating an "issue".
I'm currently studying your STM32 book and bought (a while ago) an stm32ldiscovery board as opposed to stm32vldiscovery board.
What do you think should I do: will it be better for me to try to adopt your template for my stm32l microprocessor or should I order an stm32vldiscovery?
Hello!
I have a CMakeLists.txt
version of the Makefile
and Makefile.common
and I think it'd be a good idea to add it, some of my reasons are:
Makefiles
work well enough with IDEs but not always
CMakeLists.txt
does make life easier for debugging and suggestions/completionsCMakeLists.txt
that can be used as a template is in line with what is taught/learned through the Discovering STM32
bookNow, some details regarding the CMakeLists.txt file I have been using:
Makefile
and the Makefile.common
, I am open to changing it from 1 file to 2 files that are closer to the current Makefile
layout if it's truly wanted/needed14
to 16
which just link the library directly, instead I would add the LIBROOT
so it matches the Makefile.common
TOOLROOT
as well since my compiler is available in the search path and installed system-wide but that is not the case for everyoneMakefile
and Makefile.common
did and modifying or adding things as I needed them29
to 35
we have to manually add the files, I would add variables so we shorten this
${PERIPH_SRC}/stm32f10x_gpio.c
Excited to hear what you think about this idea!
Hello,
I'm using windows 7 and GNU ARM Embedded Toolchain from launch pad, and peripheral lib v3.5
I'm getting the following error.
D:\STM32\STM32-Template\Demo>make C:\Program Files (x86)\GNU Tools ARM Embedded\5.4 2016q3\bin\arm-none-eabi-gcc -c -O1 -g -mcpu=cortex-m3 -mthumb -I.. -ID:\STM32\STM32F10x_StdPeriph_Lib_V3.5.0 \Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x -ID:\STM32\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\CoreSupport -ID:\STM32\STM32F10x_StdPeriph_Lib_V3. 5.0\Libraries\STM32F10x_StdPeriph_Driver\inc -I. -DSTM32F10X_MD_VL -DUSE_STDPERIPH_DRIVER -DUSE_FULL_ASSERT -I..\Library\ff9\src -I..\Library ../startup_stm32 f10x.c -o startup_stm32f10x.o /usr/bin/sh: -c: line 1: syntax error near unexpected token '(x' /usr/bin/sh: -c: line 1: 'C:\Program Files (x86)\GNU Tools ARM Embedded\5.4 2016q3\bin\arm-none-eabi-gcc -c -O1 -g -mcpu=cortex-m3 -mthumb -I.. -ID:\STM32\STM3 2F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x -ID:\STM32\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\CoreSupport -ID:\STM32\S TM32F10x_StdPeriph_Lib_V3.5.0\Libraries\STM32F10x_StdPeriph_Driver\inc -I. -DSTM32F10X_MD_VL -DUSE_STDPERIPH_DRIVER -DUSE_FULL_ASSERT -I..\Library\ff9\src -I. .\Library ../startup_stm32f10x.c -o startup_stm32f10x.o' make: *** [startup_stm32f10x.o] Error 258
It seems that there is a syntax error in startup_stm32f10x.c but I haven't edited it.
Please advise.
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.