hi
here i have use block size 16 byte and block count 5096. this is my start address 0x27000
i have tried to clear 79 pages.
and read data from flash with specific block.
write data to flash memory.
it was stopped by soft device. it hass long process.
may i know, can i disable softdevice and start to flash process without softdevice
nReturnValue += pstorage_block_identifier_get(&block_id,TYPE_STATUS_STORE_NUMBER,&block_0_id);
if (nReturnValue != 0)
{
LED_ON(ORANGE,3,250);
return INTIAL_GET_TYPE_WRONG_1;
}
nReturnValue += pstorage_load(&header->KType,&block_0_id,1,0);
if (nReturnValue != 0)
{
return INTIAL_GET_TYPE_WRONG_2;
}
// check if key == 'U'?
if (header->KType!= 'U')
{
nReturnValue += pstorage_block_identifier_get(&block_id,KEY_ID_STORE_NUMBER,&block_0_id);
if (nReturnValue != 0)
{
return INTIAL_GET_TYPE_WRONG_3;
}
for (i=0;i<79;i++)
{
nReturnValue += pstorage_clear(&block_0_id,1024);
if (nReturnValue != 0)
{
return INTIAL_GET_TYPE_WRONG_4;
}
nrf_delay_ms(30);
block_0_id.block_id += 1024;
}
}