Hi, I am testing github.com/.../nRF52-fds-example
I am on nrf52832
with sdk 12.2.0
.
I can't seem to make it work.
What i have done:
- Separated FDS stuff to separate file
- Exposed the functions which are used by main file
- Added files to my Makefile
And now i'm testing it in main.c
with this code:
c = SEGGER_RTT_WaitKey(); // will block until data is available
if(c == 'r'){
SEGGER_RTT_WriteString(0, "Resetting..\n");
nrf_delay_ms(1000);
sd_nvic_SystemReset();
}
else if(c == '1')
{
SEGGER_RTT_printf(0, "1\n");
err_code = fds_test_init();
APP_ERROR_CHECK(err_code);
SEGGER_RTT_printf(0, "err_code = %08x\n", err_code);
}
else if(c == '2')
{
SEGGER_RTT_printf(0, "2\n");
err_code = fds_test_find_and_delete();
APP_ERROR_CHECK(err_code);
SEGGER_RTT_printf(0, "err_code = %08x\n", err_code);
}
else if(c == '3')
{
SEGGER_RTT_printf(0, "3\n");
err_code =fds_test_write();
APP_ERROR_CHECK(err_code);
SEGGER_RTT_printf(0, "err_code = %08x\n", err_code);
}
else if(c == '4')
{
SEGGER_RTT_printf(0, "4\n");
err_code = fds_read();
APP_ERROR_CHECK(err_code);
SEGGER_RTT_printf(0, "err_code = %08x\n", err_code);
}
All functions return 0 as a result.
But fds_read()
does not find anything.
Suggestions?