Hi
I am trying (for the first time) to deal with flash. Hence, I started by a simple app, without BLE/SD (blinker)
The problem is that, the first API call pstorage_init hangs dont know why...
#include <stdbool.h>
#include <stdint.h>
#include "nrf_delay.h"
#include "nrf_gpio.h"
#include "boards.h"
//FOR PSTORAGE
#include "pstorage.h"
#include "nrf_error.h"
int main(void)
{
uint32_t err_code;
//Configure LED PIN as OUTPUT
nrf_gpio_cfg_output(19);
//Initialize persistent storage module.
err_code = pstorage_init();
//pstorage_init overcomed?!
nrf_gpio_pin_set(19);
while(true){nrf_delay_us(1000);}
if(err_code != NRF_SUCCESS)
{
//ERROR
nrf_gpio_pin_set(19);while(true){nrf_delay_us(1000);}
}
...
LED becomes on if nrf_gpio_pin_set(19); code before pstorage_init and not becomes on using the source code above.
What could influence pstorage_init call to not return?
Env:
uC 51822 rev 2
SDK 6
NO SD
Linux
Openocd (no easy way to debug AFAIK)
Thank you
Alex