rfdsatt: switch from STM32F103C8 to STM32F103C6

The C8 variant (64k Flash / 20k RAM) is not to be sourced anywhere
on the planet right now, so we went to a 32k Flash / 10k RAM
STM32F103C6.
This commit is contained in:
Harald Welte 2021-05-05 13:33:57 +02:00
parent 3a352025f9
commit 53318644d4
4 changed files with 10245 additions and 7 deletions

View File

@ -4,8 +4,8 @@
** File : stm32_flash.ld ** File : stm32_flash.ld
** **
** Abstract : Linker script for STM32F103RB Device with ** Abstract : Linker script for STM32F103C6 Device with
** 128KByte FLASH, 20KByte RAM ** 328KByte FLASH, 10KByte RAM
** **
** Set heap size, stack size and stack location according ** Set heap size, stack size and stack location according
** to application requirements. ** to application requirements.
@ -32,7 +32,7 @@
ENTRY(Reset_Handler) ENTRY(Reset_Handler)
/* Highest address of the user mode stack */ /* Highest address of the user mode stack */
_estack = 0x20005000; /* end of RAM */ _estack = 0x20002800; /* end of RAM */
/* Generate a link error if heap and stack don't fit into RAM */ /* Generate a link error if heap and stack don't fit into RAM */
_Min_Heap_Size = 0x200; /* required amount of heap */ _Min_Heap_Size = 0x200; /* required amount of heap */
_Min_Stack_Size = 0x400; /* required amount of stack */ _Min_Stack_Size = 0x400; /* required amount of stack */
@ -40,8 +40,8 @@ _Min_Stack_Size = 0x400; /* required amount of stack */
/* Specify the memory areas */ /* Specify the memory areas */
MEMORY MEMORY
{ {
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 10K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 24K FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 32K
} }
/* Define output sections */ /* Define output sections */

View File

@ -169,7 +169,7 @@
/** \brief Enable/disable the NVM hook function for supporting additional memory devices. */ /** \brief Enable/disable the NVM hook function for supporting additional memory devices. */
#define BOOT_NVM_HOOKS_ENABLE (0) #define BOOT_NVM_HOOKS_ENABLE (0)
/** \brief Configure the size of the default memory device (typically flash EEPROM). */ /** \brief Configure the size of the default memory device (typically flash EEPROM). */
#define BOOT_NVM_SIZE_KB (128) #define BOOT_NVM_SIZE_KB (32)
/** \brief Enable/disable hooks functions to override the user program checksum handling. */ /** \brief Enable/disable hooks functions to override the user program checksum handling. */
#define BOOT_NVM_CHECKSUM_HOOKS_ENABLE (0) #define BOOT_NVM_CHECKSUM_HOOKS_ENABLE (0)

View File

@ -104,7 +104,7 @@ STDFLAGS = -mcpu=cortex-m3 -mthumb -std=gnu11 -fstack-usage -Wall -specs=nano
STDFLAGS += -fdata-sections -ffunction-sections -Wall -g -Wno-strict-aliasing STDFLAGS += -fdata-sections -ffunction-sections -Wall -g -Wno-strict-aliasing
OPTFLAGS = -O2 OPTFLAGS = -O2
CFLAGS = $(STDFLAGS) $(OPTFLAGS) CFLAGS = $(STDFLAGS) $(OPTFLAGS)
CFLAGS += -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DSTM32F103xB CFLAGS += -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DSTM32F103x6
CFLAGS += -D__weak="__attribute__((weak))" -D__packed="__attribute__((__packed__))" CFLAGS += -D__weak="__attribute__((weak))" -D__packed="__attribute__((__packed__))"
CFLAGS += $(INC_PATH) CFLAGS += $(INC_PATH)
AFLAGS = $(CFLAGS) AFLAGS = $(CFLAGS)