File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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) */
134134void 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 " )))
136136void flash_program_half_page (uint32_t * dst , const uint32_t * buf )
137137{
138138 const uint32_t * src = buf ;
You can’t perform that action at this time.
0 commit comments