Skip to content

Commit 013a47d

Browse files
authored
Merge pull request #29 from karlp/l1-sections
l1: avoid warnings on "abuse" of .data subsections
2 parents 1b91699 + c87c047 commit 013a47d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/stm32l1/stm32l1-base.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ SECTIONS
8383
.data : {
8484
_data = .;
8585
*(.data*) /* Read-write initialized data */
86+
*(.ramtext*) /* code, that needs to be in ram */
8687
. = ALIGN(4);
8788
_edata = .;
8889
} >ram AT >rom

src/stm32l1/target_stm32l1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static void flash_erase_page(uint32_t page_address)
132132
* than 64MB away from flash address space, must be a long_call.
133133
* (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78903 for noinline) */
134134
void flash_program_half_page(uint32_t *dst, const uint32_t *buf);
135-
__attribute__ ((noinline, long_call, section (".data.ramfunctions")))
135+
__attribute__ ((noinline, long_call, section (".ramtext")))
136136
void flash_program_half_page(uint32_t *dst, const uint32_t *buf)
137137
{
138138
const uint32_t *src = buf;

0 commit comments

Comments
 (0)