Skip to content

Fix flash offset on HY_TinySTM103T variant. #1131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions variants/HY_TinySTM103T/ldscript.ld
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
*****************************************************************************
**

** File : LinkerScript.ld
** File : ldscript.ld
**
** Abstract : Linker script for STM32F103CBTx Device with
** 128KByte FLASH, 20KByte RAM
** Abstract : Linker script for STM32F103C(8-B)Tx Device with
** 32/64/128KByte FLASH, 10/20KByte RAM
**
** Set heap size, stack size and stack location according
** to application requirements.
Expand Down Expand Up @@ -52,16 +52,16 @@
ENTRY(Reset_Handler)

/* Highest address of the user mode stack */
_estack = 0x20005000; /* end of RAM */
_estack = 0x20000000 + LD_MAX_DATA_SIZE; /* 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 */

/* Specify the memory areas */
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 128K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = LD_MAX_DATA_SIZE
FLASH (rx) : ORIGIN = 0x8000000 + LD_FLASH_OFFSET, LENGTH = LD_MAX_SIZE - LD_FLASH_OFFSET
}

/* Define output sections */
Expand Down