Browse Source

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.
master
Harald Welte 6 months ago
parent
commit
53318644d4
  1. 10
      Target/Demo/ARMCM3_STM32F1_sysmocom_rfdsatt_GCC/Boot/STM32F103RB_FLASH.ld
  2. 2
      Target/Demo/ARMCM3_STM32F1_sysmocom_rfdsatt_GCC/Boot/blt_conf.h
  3. 10238
      Target/Demo/ARMCM3_STM32F1_sysmocom_rfdsatt_GCC/Boot/lib/CMSIS/Device/ST/STM32F1xx/Include/stm32f103x6.h
  4. 2
      Target/Demo/ARMCM3_STM32F1_sysmocom_rfdsatt_GCC/Boot/makefile

10
Target/Demo/ARMCM3_STM32F1_sysmocom_rfdsatt_GCC/Boot/STM32F103RB_FLASH.ld

@ -4,8 +4,8 @@
** File : stm32_flash.ld
**
** Abstract : Linker script for STM32F103RB Device with
** 128KByte FLASH, 20KByte RAM
** Abstract : Linker script for STM32F103C6 Device with
** 328KByte FLASH, 10KByte RAM
**
** Set heap size, stack size and stack location according
** to application requirements.
@ -32,7 +32,7 @@
ENTRY(Reset_Handler)
/* 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 */
_Min_Heap_Size = 0x200; /* required amount of heap */
_Min_Stack_Size = 0x400; /* required amount of stack */
@ -40,8 +40,8 @@ _Min_Stack_Size = 0x400; /* required amount of stack */
/* Specify the memory areas */
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 24K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 10K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 32K
}
/* Define output sections */

2
Target/Demo/ARMCM3_STM32F1_sysmocom_rfdsatt_GCC/Boot/blt_conf.h

@ -169,7 +169,7 @@
/** \brief Enable/disable the NVM hook function for supporting additional memory devices. */
#define BOOT_NVM_HOOKS_ENABLE (0)
/** \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. */
#define BOOT_NVM_CHECKSUM_HOOKS_ENABLE (0)

10238
Target/Demo/ARMCM3_STM32F1_sysmocom_rfdsatt_GCC/Boot/lib/CMSIS/Device/ST/STM32F1xx/Include/stm32f103x6.h
File diff suppressed because it is too large
View File

2
Target/Demo/ARMCM3_STM32F1_sysmocom_rfdsatt_GCC/Boot/makefile

@ -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
OPTFLAGS = -O2
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 += $(INC_PATH)
AFLAGS = $(CFLAGS)

Loading…
Cancel
Save