2024-02-21 05:15 AM
Dears
I would like to create new project from STM32Cube_FW_MP13_V1.0.0 - based on template "BSP_BasicTemplates"
I verified Properties for this project under "Paths and Symbols" - Includes, Libraries, Source ... all looks normal as another project from Application subfolder
But compilation stop on error
make -j12 all
make: *** No rule to make target 'C:/Users/Drivers/CMSIS/Device/ST/STM32MP13xx/Source/Templates/gcc/startup_stm32mp135c_ca7.c', needed by 'Example/STM32CubeIDE/startup_stm32mp135c_ca7.o'. Stop.
"make -j12 all" terminated with exit code 2. Build might be incomplete.
Where could be problem ? I hope that templates should have all properly configured...
Best Regards
Radim
2024-02-22 12:44 AM
Hello @ravo ,
I compiled the MP13_BSP_BasicTemplates without any issues.
I used the STM32CubeIDE 1.14.1 and the projects located in STM32MP135C-DK.
Could you tell me more about your setup?
Thank you.
rgds,
David
2024-02-22 01:29 AM
Dear @DBELL.1 ,
Thanks for response. I think that I do same way. I am using latest STM32CubeIDE. I just open this project using project file from stm32cube subfolder an let IDE to copy whole project to workspace folder (to avoid doing changes to original template)
I don't do any special modifications, project config, or IDE settings...
Regards
Radim
2024-02-22 07:18 AM
Hi,
maybe look at https://wiki.st.com/stm32mpu/wiki/STM32CubeMP13_Package_-_Getting_started
Regards.
2024-02-22 08:09 AM
Hello @ravo ,
I confirm your point because I did this:
then I had the same errors as you
So I report the point, it could be due to the path of sources which are not achievable by eclipse
And we do not recommend to use it.
BTW it works well without ckeck this option.
rgds,
David
2024-02-22 08:43 AM - edited 2024-02-23 01:25 AM
Dear @DBELL.1
thanks for answer. Yes if I do it without this checkbox it works normally.
If I compare not working project (project files .cproject are same) bud generated makefiles here contain one more line in SUBDIRS secion "Drivers/CMSIS/Device/ST/STM32MP13xx/Source/Templates/gcc \"
sources.mk
SUBDIRS := \
Application/User \
Drivers/BSP/STM32MP13xx_DISCO \
Drivers/CMSIS/Device/ST/STM32MP13xx/Source/Templates/gcc \
-----
makefile contain
-include Drivers/CMSIS/Device/ST/STM32MP13xx/Source/Templates/gcc/subdir.mk
and in this subdir.mk are wrong paths which did not exists
C_SRCS += \
C:/Users/Drivers/STM32MP13xx_HAL_Driver/Src/stm32mp13xx_hal.c \
C:/Users/Drivers/STM32MP13xx_HAL_Driver/Src/stm32mp13xx_hal_dma.c \
C:/Users/Drivers/STM32MP13xx_HAL_Driver/Src/stm32mp13xx_hal_dma_ex.c \
And in working project this subdir.mk did not exist/ //Corrected later 2024-02-23: file subdir.mk exists here, but with corrected path inside.
Maybe this could cause problems...
I just tried manually copy project and open from new location but it will produce same errors.
Project structure are same... different only in Debug subfolder ( where is some subdir.mk files is wrong not-existing paths beginning C:/Users/Drivers/... for example "C:/Users/Drivers/CMSIS/Device/ST/STM32MP13xx/Source/Templates/gcc/startup_stm32mp135c_ca7.c"
So this is problem to use this template as "start project"
Best Regards Radim
2024-02-22 08:45 AM - edited 2024-02-22 11:19 PM
2024-02-23 01:17 AM
Hello @ravo ,
I shared with development team what you found, I guess it will help to enhance the tool and the template usage.
Regards,
David B.
2024-02-23 01:20 AM
Dear @DBELL.1
Thanks for response. I think that this could be corrected but I don't know how... I tried all but nothing helped me.
I will wait what your colleagues found.
Regards
Radim
2024-02-23 02:10 AM
Hello @ravo ,
It could be due to an eclipse limitation.
I don't think it will be corrected right away.
Best case in the next release.
Rgds,
David B.