flash/nor/rp2040: fix size of flash write buffer
authorTomas Vanek <vanekt@fbl.cz>
Sun, 11 Sep 2022 10:11:31 +0000 (12:11 +0200)
committerTomas Vanek <vanekt@fbl.cz>
Tue, 27 Sep 2022 08:39:58 +0000 (08:39 +0000)
commit84d73d0225407594ed9cf646fa3dd8a5752df7ad
tree8c046f84301e6720af48ef872a9cefa6faae980c
parent47ed1c1eab82ee329915e04ea61f857dae89fc6a
flash/nor/rp2040: fix size of flash write buffer

The size of the flash write buffer should be rounded
down to the multiply of flash page size.
Using write chunks of unadjusted size results in write of chunks
unaligned to flash pages.

Change-Id: If7931362ee193dff4dc2df7ec78f13530658cf08
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/7187
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/flash/nor/rp2040.c