cancel
Showing results for 
Search instead for 
Did you mean: 

Proper way to use Cube_FW_ templates?

john doe
Lead
Posted on January 17, 2017 at 05:21

How am I supposed to use these? I'm using SW32STM Workbench and can build projects from STM32CubeMX-generated code. I can build and run code from the Cube_FW_Fx examples.

But when I try to copy the files from the Templates into a new directory then import it, it takes some hand-waving to add all the includes, and even then, it complains of a missing target.

Building file: /Users/john/src/stm32/stm32f7xx/templt/SW4STM32/startup_stm32f769xx.s

Invoking: MCU GCC Assembler

/Users/john/src/stm32/stm32f7xx/templt/SW4STM32/STM32F769I_DISCOVERY_AXIM-FLASH/Debug

arm-none-eabi-as -mcpu=cortex-m7 -mthumb -mfloat-abi=hard -mfpu=fpv5-sp-d16 -g -o 'Example/SW4STM32/startup_stm32f769xx.o' '/Users/john/src/stm32/stm32f7xx/templt/SW4STM32/startup_stm32f769xx.s'

Finished building: /Users/john/src/stm32/stm32f7xx/templt/SW4STM32/startup_stm32f769xx.s

 

make: *** No rule to make target `/Users/john/src/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.c', needed by `Drivers/STM32F7xx_HAL_Driver/stm32f7xx_hal.o'.  Stop.

21:25:23 Build Finished (took 2s.702ms)

I'm doing something improperly and I am not sure what. Goal is a template that includes BSP and syscalls.c Please advise.

2 REPLIES 2
Imen.D
ST Employee
Posted on January 17, 2017 at 11:11

Hello

doe.john.016

,

You can refer to this thread it will hep you on

https://community.st.com/0D50X00009XkeN3SAJ

.

In the STM32CubeF7 firmware package, you may find pre-configured projects for the SW4STM32IDE as well as a template project.

You may use them as a start pointto have more idea on how configuration/implementation is done.

Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on January 17, 2017 at 12:42

The templates only work when I use them in place with their original name. How do I copy the template into a different filename and still get everything to resolve?