From 6cd47a860152dcf7aeb536f2cc0fb835fba4d9f8 Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Tue, 11 May 2010 01:12:53 +0200 Subject: digital/avr/modules/{flash, trace}: fix erase full command and error use * flash SST was not able to erase all the flash * test-trace was handle the error value with the wrong values --- digital/avr/modules/flash/flash_sst.avr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'digital/avr/modules/flash') diff --git a/digital/avr/modules/flash/flash_sst.avr.c b/digital/avr/modules/flash/flash_sst.avr.c index 5f0a63ec..68fb1a5e 100644 --- a/digital/avr/modules/flash/flash_sst.avr.c +++ b/digital/avr/modules/flash/flash_sst.avr.c @@ -82,7 +82,7 @@ flash_sst_erase (flash_erase_cmd_t cmd, uint32_t start_addr) sst_cmd = FLASH_SST_ERASE_64K; break; default: - return; + sst_cmd = FLASH_SST_ERASE_FULL; } flash_sst_send_command (FLASH_SST_CMD_WREN); FLASH_CS_ENABLE; -- cgit v1.2.3