ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.
Moderator: RoccoMarco
ep.hobbyiest
Posts: 94 Joined: Sun Jun 26, 2016 5:22 pm
Has thanked: 4 times
Been thanked: 1 time
Post
by ep.hobbyiest » Fri Dec 15, 2017 3:34 pm
I got following error while compiling existing project.
Controller: STM32F4
Chibios veriosn : ChibiStudio_Preview17.7
error is:
Code: Select all
make all Compiler Options arm-none-eabi-gcc -c -mcpu=cortex-m4 -Os -ggdb -fomit-frame-pointer -falign-functions=16 -ffunction-sections -fdata-sections -fno-common -flto -Wall -Wextra -Wundef -Wstrict-prototypes -Wa,-alms=build/lst/ -DCORTEX_USE_FPU=FALSE -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -MD -MP -MF .dep/build.d -I. -I../../chibios30/os/license -I../../chibios30/os/common/startup/ARMCMx/compilers/GCC -I../../chibios30/os/common/startup/ARMCMx/devices/STM32F4xx -I../../chibios30/os/common/ext/CMSIS/include -I../../chibios30/os/common/ext/CMSIS/ST/STM32F4xx -I../../chibios30/os/rt/include -I../../chibios30/os/common/ports/ARMCMx -I../../chibios30/os/common/ports/ARMCMx/compilers/GCC -I../../chibios30/os/hal/osal/rt -I../../chibios30/os/hal/include -I../../chibios30/../ChibiOS-Contrib/os/hal/include -I../../chibios30/os/hal/ports/common/ARMCMx -I../../chibios30/os/hal/ports/STM32/STM32F4xx -I../../chibios30/os/hal/ports/STM32/LLD -I../../chibios30/os/hal/ports/STM32/LLD/DACv1 -I../../chibios30/os/hal/ports/STM32/LLD/GPIOv2 -I../../chibios30/os/hal/ports/STM32/LLD/I2Cv1 -I../../chibios30/os/hal/ports/STM32/LLD/OTGv1 -I../../chibios30/os/hal/ports/STM32/LLD/RTCv2 -I../../chibios30/os/hal/ports/STM32/LLD/SPIv1 -I../../chibios30/os/hal/ports/STM32/LLD/TIMv1 -I../../chibios30/os/hal/ports/STM32/LLD/USARTv1 -I../../chibios30/os/hal/ports/STM32/LLD/USBHv1 -I../../chibios30/os/hal/ports/STM32/LLD/FSMCv1 -I../../chibios30/../ChibiOS-Contrib/os/hal/ports/STM32/LLD/CRCv1 -I../../chibios30/../ChibiOS-Contrib/os/hal/ports/STM32/LLD/DMA2Dv1 -I../../chibios30/../ChibiOS-Contrib/os/hal/ports/STM32/LLD/FSMCv1 -I../../chibios30/../ChibiOS-Contrib/os/hal/ports/STM32/LLD/LTDCv1 -I../../chibios30/../ChibiOS-Contrib/os/hal/ports/STM32/LLD/TIMv1 -I../../chibios30/../ChibiOS-Contrib/os/hal/ports/STM32/LLD/USBHv1 -I../../chibios30/../ChibiOS-Contrib/os/hal/ports/STM32/LLD -I../../chibios30/os/hal/boards/ST_STM32F4_DISCOVERY -I../../chibios30/test/rt -I../../chibios30/os/hal/lib/streams -I../../chibios30/os/various/shell -I../../chibios30/ext/fatfs/src -I../../chibios30/os/various main.c -o main.o Compiling crt0_v7m.S make: *** No rule to make target `chcoreasm_v7m.S', needed by `build/obj/chcoreasm_v7m.o'. Stop.
Giovanni
Site Admin
Posts: 14893 Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times
Post
by Giovanni » Fri Dec 15, 2017 3:36 pm
It means that the path to that source file is wrong or the file is missing (chcoreasm_v7m.S). Giovanni
ep.hobbyiest
Posts: 94 Joined: Sun Jun 26, 2016 5:22 pm
Has thanked: 4 times
Been thanked: 1 time
Post
by ep.hobbyiest » Fri Dec 15, 2017 5:26 pm
i checked and copied files there but then also i got same error.
i copied files chcoreasm_v7m.s and chcoreasm_v6m.s to C:\ChibiStudio\chibios30\os\rt\ports\ARMCMx\compilers\GCC path..
Now also if i create new project with copy base of old existing project that time also i get error as follows..
Code: Select all
22:33:57 **** Incremental Build of configuration Default for project sim **** make -j4 all Compiling crt0_v7m.s Compiling chcoreasm_v7m.s Compiling crt1.c Compiling vectors.c ../../chibios3/os/common/ports/ARMCMx/compilers/GCC/chcoreasm_v7m.s:51:2: error: #error "invalid chconf.h" #error "invalid chconf.h" ^ make: *** [build/obj/chcoreasm_v7m.o] Error 1 make: *** Waiting for unfinished jobs.... 22:34:01 Build Finished (took 3s.919ms)
steved
Posts: 834 Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 138 times
Post
by steved » Fri Dec 15, 2017 7:23 pm
If you are still using Chibi 3.0, did you use a Chibi 3.0 example as the basis for your make file? There have been a lot of changes in that area between then and the current svn, and I usually find errors such as yours to be caused by a failure to keep everything in step.
ep.hobbyiest
Posts: 94 Joined: Sun Jun 26, 2016 5:22 pm
Has thanked: 4 times
Been thanked: 1 time
Post
by ep.hobbyiest » Sat Dec 16, 2017 4:59 am
Thanks for figuring out.
Currently i am using chibi studio which has folder name as
chibios3 , i am not able to find out the os version from that. i checked following versions but everyone has folder name as chibios30.
Code: Select all
ChibiStudio_Preview16.7 ChibiStudio_Preview17.7 ChibiStudio_Preview18.7 ChibiStudio_Preview19.7If i use other version then i get error which is mentioned in post #1.
Please tell how to avoid version dependencies in project and makefile.
--------Updated
I found the repo from where i did sync. here is the link
https://github.com/peterzcc/ChibiStudio/ i think i should adapt to new chibistudio.