From 7d7a7482c184ff44780f7504d48b86fb24b3fb53 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 10 May 2016 12:42:21 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9456 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32/STM32F3xx/SPI-N25Q128/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testhal/STM32') diff --git a/testhal/STM32/STM32F3xx/SPI-N25Q128/main.c b/testhal/STM32/STM32F3xx/SPI-N25Q128/main.c index c8ca4aaa4..41c8541e2 100644 --- a/testhal/STM32/STM32F3xx/SPI-N25Q128/main.c +++ b/testhal/STM32/STM32F3xx/SPI-N25Q128/main.c @@ -129,10 +129,10 @@ int main(void) { err = flashRead(&flash, 0, buffer, 128); if (err != FLASH_NO_ERROR) chSysHalt("read error"); - err = flashEraseSectors(&flash, 0, 1); + err = flashEraseSector(&flash, 0); if (err != FLASH_NO_ERROR) chSysHalt("erase error"); - err = flashVerifyErase(&flash, 0, 1); + err = flashVerifyErase(&flash, 0); if (err != FLASH_NO_ERROR) chSysHalt("verify erase error"); err = flashRead(&flash, 0, buffer, 128); -- cgit v1.2.3