Skip to content

Commit c790070

Browse files
authored
Corrected instructions for Makefile flash: by removing TARGET
Previously, when a learner built the makefile by following the README, "make flash" generated an error. The issue was a reference to TARGET that didn't seem defined anywhere. (Maybe that was just me and this is invalid!) By making the change proposed, the makefile instructions align with the Makefile in Step-0-... and Step-1-... folders. Now "make flash" works for me with my main.c from the Minimal Firmware sections instructions and the Step-0-... main.c
1 parent dde0d95 commit c790070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ firmware.bin: firmware.elf
656656
$(DOCKER) $(CROSS)-objcopy -O binary $< $@
657657
658658
flash: firmware.bin
659-
st-flash --reset write $(TARGET).bin 0x8000000
659+
st-flash --reset write $< 0x8000000
660660
```
661661
662662
That's it! Now, `make flash` terminal command creates a `firmware.bin` file,

0 commit comments

Comments
 (0)