X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm%2Fao_flash_stm.c;h=77296c322d2f11906c2f02ae966da7e153b0a54c;hb=e93b73d9adce883e7e4094a06f4de86f5c774567;hp=38618bbe53165f64138c0a3a39fa81c2740cbf20;hpb=3ce663875d69739cc2d43fcd88b22820cd9d6500;p=fw%2Faltos diff --git a/src/stm/ao_flash_stm.c b/src/stm/ao_flash_stm.c index 38618bbe..77296c32 100644 --- a/src/stm/ao_flash_stm.c +++ b/src/stm/ao_flash_stm.c @@ -70,7 +70,7 @@ ao_flash_wait_bsy(void) ; } -static void __attribute__ ((section(".ramtext"),noinline)) +static void __attribute__ ((section(".sdata2.flash"), noinline)) _ao_flash_erase_page(uint32_t *page) { stm_flash.pecr |= (1 << STM_FLASH_PECR_ERASE) | (1 << STM_FLASH_PECR_PROG); @@ -93,7 +93,7 @@ ao_flash_erase_page(uint32_t *page) ao_arch_release_interrupts(); } -static void __attribute__ ((section(".ramtext"), noinline)) +static void __attribute__ ((section(".sdata2.flash"), noinline)) _ao_flash_half_page(uint32_t *dst, uint32_t *src) { uint8_t i;