|
@@ -270,7 +270,7 @@ static int fal_flash_read(long offset, rt_uint8_t *buf, size_t size);
|
|
|
static int fal_flash_write(long offset, const rt_uint8_t *buf, size_t size);
|
|
|
static int fal_flash_erase(long offset, size_t size);
|
|
|
|
|
|
-const struct fal_flash_dev stm32_onchip_flash = { "onchip_flash", STM32_FLASH_START_ADRESS, STM32_FLASH_SIZE, 2048, {NULL, fal_flash_read, fal_flash_write, fal_flash_erase} };
|
|
|
+const struct fal_flash_dev stm32_onchip_flash = { "onchip_flash", STM32_FLASH_START_ADRESS, STM32_FLASH_SIZE, FLASH_PAGE_SIZE, {NULL, fal_flash_read, fal_flash_write, fal_flash_erase} };
|
|
|
|
|
|
static int fal_flash_read(long offset, rt_uint8_t *buf, size_t size)
|
|
|
{
|