Fix for 64KB STM32F103.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 6 Oct 2017 08:04:45 +0000 (17:04 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 6 Oct 2017 08:04:45 +0000 (17:04 +0900)
ChangeLog
src/configure

index cd47246..732f650 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-10-06  NIIBE Yutaka  <gniibe@fsij.org>
+
+       * src/configure (flash_override): Fix suggested by Jeremy Drake.
+
 2017-10-06  NIIBE Yutaka  <gniibe@fsij.org>
 
        * src/gnuk.ld.in (.stacks): Specify NOLOAD type.
index 9e04f94..7c0be27 100755 (executable)
@@ -175,8 +175,10 @@ MEMORY_SIZE=20
 
 # Settings for TARGET
 case $target in
-BLUE_PILL)
-  flash_override="-DSTM32F103_OVERRIDE_FLASH_SIZE_KB" ;;
+BLUE_PILL|STM8S_DISCOVERY)
+  # It's 64KB version of STM32F103, but actually has 128KB
+  flash_override="-DSTM32F103_OVERRIDE_FLASH_SIZE_KB=128"
+  ;;
 CQ_STARM|STBEE_MINI)
   if test "$with_dfu" = "default"; then
     with_dfu=yes;
@@ -193,9 +195,6 @@ STBEE)
   if test "$with_dfu" = "default"; then
     with_dfu=yes;
   fi  ;;
-STM8S_DISCOVERY)
-  FLASH_SIZE=64
-  ;;
 *)
   ;;
 esac