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
Visitor

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.

0 REPLIES 0