Flash ROM fixes for STM32F10X_HD

This commit is contained in:
NIIBE Yutaka
2010-11-30 14:32:56 +09:00
parent 87b0ca84b1
commit d49c33ec96
4 changed files with 23 additions and 7 deletions

6
src/configure vendored
View File

@@ -139,6 +139,11 @@ if test "$with_dfu" = "yes"; then
else
echo "Configured for bare system (no-DFU)"
ORIGIN=0x08000000
if test "$target" = "STM32_PRIMER2"; then
FLASH_PAGE_SIZE=2048
else
FLASH_PAGE_SIZE=1024
fi
if test "$target" = "STM8S_DISCOVERY"; then
FLASH_SIZE=64k
else
@@ -151,6 +156,7 @@ sed -e "s%@BOARD_MAKEFILE@%$BOARD_MAKEFILE%" \
-e "s%@DEBUG_MAKE_OPTION@%$DEBUG_MAKE_OPTION%" \
< Makefile.in > Makefile
sed -e "s/@ORIGIN@/$ORIGIN/" -e "s/@FLASH_SIZE@/$FLASH_SIZE/" \
-e "s/@FLASH_PAGE_SIZE@/$FLASH_PAGE_SIZE/" \
< gnuk.ld.in > gnuk.ld
sed -e "s/@DEBUG_DEFINE@/$DEBUG_DEFINE/" \
-e "s/@DFU_DEFINE@/$DFU_DEFINE/" \