X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fstm%2Fao_flash_stm.c;fp=src%2Fstm%2Fao_flash_stm.c;h=77296c322d2f11906c2f02ae966da7e153b0a54c;hb=2108da105ed9c915fc09d1251dc655bf11203d79;hp=38618bbe53165f64138c0a3a39fa81c2740cbf20;hpb=74d5dfd1801da8efbb7693a607fd25e35ad1158d;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;