cancel
Showing results for 
Search instead for 
Did you mean: 

Make file rule failures. No rule to make target for .s files (i.e. build/tx_initialize_low_level.o)

William2003
Associate

I've been trying to build example projects (i.e. Ux_Host_HID) with the make tool chain config with stm32cubeMX

So when i run make, a bunch of stuff compiles, then i get this error.

make: *** No rule to make target 'build/tx_initialize_low_level.o', needed by 'build/Ux_Host_HID.elf'.  Stop.
 
 
So when I search for that tx_initialize_low_level I find a .s assembly file in  Ux_Host/Core.Src
Also, the make file seems to already be looking for assembly files to create the .o but for some reason, make is not recognizing it has a valid rule. 

 

$(BUILD_DIR)/%.o: %.s Makefile | $(BUILD_DIR)
$(AS) -c $(CFLAGS) $< -o $@
$(BUILD_DIR)/%.o: %.S Makefile | $(BUILD_DIR)
$(AS) -c $(CFLAGS) $< -o $@

 

 

Note: all files are generated from STM32CubeMX form their examples directory.

1 REPLY 1
Ghofrane GSOURI
ST Employee

Hello @William2003 

Could you please specify which versions of STM32CubeMX and STM32CubeIDE you are using, as well as your operating system?

I used STM32CubeMX version 6.15.0 and STM32CubeIDE version 1.19.0. I built the Ux_Host_HID example for the H7 series, and the build completed successfully with zero errors and zero warnings.

GhofraneGSOURI_0-1762772512328.png

Makefile build result

GhofraneGSOURI_1-1762773405123.pngGhofraneGSOURI_2-1762773444217.png

 

FOR STM32H7S

GhofraneGSOURI_0-1762774223646.png

 

THX

Ghofrane

 

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.