From 5b12f003803de8fba14ef561889e182126fb4b67 Mon Sep 17 00:00:00 2001
From: Daniele Cattaneo <daniele3.cattaneo@mail.polimi.it>
Date: Sat, 27 May 2023 17:15:12 +0200
Subject: [PATCH] stm32f072rb_stm32f0discovery: Enable make program using
 st-flash.

Signed-off-by: Terraneo Federico <fede.tft@miosix.org>
---
 miosix/config/Makefile.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/miosix/config/Makefile.inc b/miosix/config/Makefile.inc
index 6f2a9037..da3d7015 100644
--- a/miosix/config/Makefile.inc
+++ b/miosix/config/Makefile.inc
@@ -2537,7 +2537,7 @@ else ifeq ($(ARCH),cortexM0_stm32f0)
         ## The command must provide a way to program the board, or print an
         ## error message saying that 'make program' is not supported for that
         ## board.
-        PROGRAM_CMDLINE := echo 'make program not supported.'
+        PROGRAM_CMDLINE := st-flash --reset write main.bin 0x8000000
 
     ##-------------------------------------------------------------------------
     ## End of board list
-- 
GitLab