STM32L4: Use buffered flash model.

This commit is contained in:
Gareth McMullin 2016-09-30 12:09:37 -07:00
parent 517881f551
commit 2e9660910c
1 changed files with 4 additions and 2 deletions

View File

@ -131,8 +131,10 @@ static void stm32l4_add_flash(target *t,
f->length = length;
f->blocksize = blocksize;
f->erase = stm32l4_flash_erase;
f->write = stm32l4_flash_write;
f->align = 8;
f->write = target_flash_write_buffered;
f->done = target_flash_done_buffered;
f->write_buf = stm32l4_flash_write;
f->buf_size = 2048;
f->erased = 0xff;
sf->bank1_start = bank1_start;
target_add_flash(t, f);