mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
fix long standing bug where the last pages of NVM were not erased
properly.
This commit is contained in:
parent
36361e1eb0
commit
beb75cd355
@ -50,8 +50,8 @@
|
||||
#define uart_init uart1_init
|
||||
|
||||
/* nvm-read */
|
||||
#define READ_ADDR 0x1E000
|
||||
#define READ_NBYTES 8
|
||||
#define READ_ADDR 0x1f000
|
||||
#define READ_NBYTES 1024
|
||||
|
||||
/* nvm-write */
|
||||
#define WRITE_NBYTES 8
|
||||
|
@ -101,7 +101,7 @@ void main(void) {
|
||||
dbg_putstr("\n\r");
|
||||
|
||||
/* erase the flash */
|
||||
err = nvm_erase(gNvmInternalInterface_c, type, 0x4fffffff);
|
||||
err = nvm_erase(gNvmInternalInterface_c, type, 0x7fffffff);
|
||||
|
||||
dbg_putstr("nvm_erase returned: 0x");
|
||||
dbg_put_hex(err);
|
||||
|
Loading…
Reference in New Issue
Block a user