https://github.com/hi3520/STM32_Firmware_Uploader_linux
Step #1 The RAM & FLASH LENGTH are different for each ChipSet of ST. So refer data sheet modify as per your need's
Project name: BOOTLOADER
ChipSet Name: STM32F030RCT6
RAM: 32K
FLASH: 256K
IDE: STM32CUBEIDE
BootLoader Size: 20K Application Size: 256K - 20K
/* Memories Definition */
MEMORY
{
RAM (xrw) : ORIGIN = 0x200000C0, LENGTH = 32K - 192 /* 192 For Vector Table Relocate */
BOOTLOADER (rx) : ORIGIN = 0x8000000, LENGTH = 20K
/*FIRMWARE (rx) : ORIGIN = 0x8005000, LENGTH = 256K - 20K*/
}
/* Main App Start Symbol */
_main_app_start_address = 0x08005000;
/* For Main Application, change BOOTLOADER by FIRMWARE */
REGION_ALIAS("FLASH", BOOTLOADER );
Step #1 The RAM & FLASH LENGTH are different for each ChipSet of ST. So refer data sheet modify as per your need's
/* Memories Definition */
MEMORY
{
RAM (xrw) : ORIGIN = 0x200000C0, LENGTH = 32K - 192 /* 192 For Vector Table Relocate */
/*BOOTLOADER (rx) : ORIGIN = 0x8000000, LENGTH = 20K*/
FIRMWARE (rx) : ORIGIN = 0x8005000, LENGTH = 256K - 20K
}
/* Main App Start Symbol */
_main_app_start_address = 0x08005000;
/* For Main Application, change BOOTLOADER by FIRMWARE */
REGION_ALIAS("FLASH", FIRMWARE );
extern uint32_t _main_app_start_address;
#define FIRMWARE_START_ADDR (uint32_t)(&_main_app_start_address)