cancel
Showing results for 
Search instead for 
Did you mean: 

build error after i copied an example file to another location "No rule to make target"

Shaawaiz
Associate II

Good morning everyone,

i am having a problem after i copied the example from the example project folder to another location.

i am using STM32CubeIDE 1.5.0. i opened this project

 

C:\Users\Admin11\STM32Cube\Repository\STM32Cube_FW_WB_V1.16.0\Projects\P-NUCLEO-WB55.Nucleo\Applications\BLE_LLD\BLE_LLD_Chat\STM32CubeIDE

 

i build it, ran it, without any issue. the board worked correctly as it should. However, when i copied the said folder "STM32CubeIDE" to my desktop to make some changes according to my requirements, i opened a new instance of IDE, chose a different workspace, chose the project on my desktop 

C:\Users\Admin11\Desktop\NewFolder\STM32CubeIDE

clicked build, i got this error

Shaawaiz_0-1776309071440.png

 

how do i fix it? is there any other way to modify the example code according to my own requirnment without changing the original code in the example? or can i change something to get rid of the error?

your help will be appreciated :)

Thank you in advance

3 REPLIES 3
Shaawaiz
Associate II

edit: i tried copied the folder BLE_LLD_Chat instead of STM32CubeIDE. I was hit with another error

06:11:53 **** Build of configuration Debug for project BLE_LLD_Chat ****
make -j12 all
arm-none-eabi-gcc "C:/Users/ADMIN123/Desktop/NewFolder/BLE_LLD_Chat/Core/Src/main.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DBLE_LLD_WB -DUSE_HAL_DRIVER -DUSE_STM32WBXX_NUCLEO -DSTM32WB55xx -c -I../../Core/Inc -I../../STM32_WPAN/App -I../../STM32_WPAN/Target -I../../../../../../../Drivers/CMSIS/Device/ST/STM32WBxx/Include -I../../../../../../../Drivers/CMSIS/Include -I../../../../../../../Drivers/BSP/P-NUCLEO-WB55.Nucleo -I../../../../../../../Drivers/STM32WBxx_HAL_Driver/Inc -I../../../../../../../Drivers/STM32WBxx_HAL_Driver/Inc/Legacy -I../../../../../../../Utilities/lpm/tiny_lpm -I../../../../../../../Utilities/sequencer -I../../../../../../../Middlewares/ST/STM32_WPAN -I../../../../../../../Middlewares/ST/STM32_WPAN/ble_lld/hal -I../../../../../../../Middlewares/ST/STM32_WPAN/ble_lld/lld -I../../../../../../../Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread -I../../../../../../../Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/tl -I../../../../../../../Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/shci -I../../../../../../../Middlewares/ST/STM32_WPAN/utilities -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Application/User/Core/main.d" -MT"Application/User/Core/main.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Application/User/Core/main.o"
In file included from ../../Core/Inc/app_common.h:35:0,
from C:/Users/ADMIN123/Desktop/NewFolder/BLE_LLD_Chat/Core/Src/main.c:41:
../../Core/Inc/app_conf.h:25:10: fatal error: hw.h: No such file or directory
#include "hw.h"
^~~~~~
compilation terminated.
make: *** [Application/User/Core/subdir.mk:51: Application/User/Core/main.o] Error 1
"make -j12 all" terminated with exit code 2. Build might be incomplete.

06:11:54 Build Failed. 2 errors, 0 warnings. (took 359ms)

 

 

KDJEM.1
ST Employee

Hello @Shaawaiz ;

 

I recommend you to download and to use the latest STM32CubeWB firmware and the STM32CubeIDE toolchain version.

 

Please let me know if the issue is solved or not?

Thank you.

Kaouthar

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

You completely missunderstand how repository works. After you understand it , you too understand how and where clone projects...