[Gnuk-users] Proposed patch to fix regnual on "blue pill" board

Jeremy Drake jeremydrake+gnuk at eacceleration.com
Mon Aug 21 22:42:44 UTC 2017


On Fri, 11 Aug 2017, Jeremy Drake wrote:

> I just updated and tried it, and I think that configure needs a patch like 
> the following:

Here it is as a properly-formatted git patch (hopefully)

-- >8 --
Subject: [PATCH] Define STM32F103_OVERRIDE_FLASH_SIZE_KB to flash size.

Before it would have been implicitly defined to 1.  Also allow DEFS to be
added to on the command line.
---
 src/configure |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/configure b/src/configure
index 18f1bd3..5580e7c 100755
--- a/src/configure
+++ b/src/configure
@@ -167,7 +167,7 @@ MEMORY_SIZE=20
 # Settings for TARGET
 case $target in
 BLUE_PILL)
-  flash_override="-DSTM32F103_OVERRIDE_FLASH_SIZE_KB" ;;
+  flash_override="-DSTM32F103_OVERRIDE_FLASH_SIZE_KB=$FLASH_SIZE" ;;
 CQ_STARM|STBEE_MINI)
   if test "$with_dfu" = "default"; then
     with_dfu=yes;
@@ -368,7 +368,7 @@ else
 fi


-echo -e "DEFS=$use_sys3 $flash_override" '\n'      \
+echo -e "override DEFS+=$use_sys3 $flash_override" '\n'      \
      "$DEBUG_MAKE_OPTION" '\n'  \
      "$PINPAD_MAKE_OPTION" '\n' \
      "$HEXOUTPUT_MAKE_OPTION"   \
-- 




More information about the gnuk-users mailing list