This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

fds_init stopped with unknown function at 0x000008C4

SDK 13, softdevice 132

uint32_t my_fs_init() {
  ret_code_t err_code;
  err_code = fds_register(fds_evt_handler);
  if (err_code != FDS_SUCCESS)
    return err_code;

  m_fds_initialized = false;
  err_code = fds_init();
  if (err_code != FDS_SUCCESS)
    return err_code;

  // wait for initialization to finish
  while (!m_fds_initialized) {
    sd_app_evt_wait();
  }

  return 0;
}

function fds_register results FDS_SUCCESS

by calling the function fds_init debugger stops, see comment in function below, and i see "unknown function at 0x000008C4"

thanks for helping ;-)

// Reads a page tag, and determines if the page is used to store data or as swap.
static fds_page_type_t page_identify(uint32_t const * const p_page_addr)
{
    if (p_page_addr[FDS_PAGE_TAG_WORD_0] != FDS_PAGE_TAG_MAGIC)  <<<<<<< here stops the debugger
    {
        return FDS_PAGE_UNDEFINED;
    }

    switch (p_page_addr[FDS_PAGE_TAG_WORD_1])
    {
    case FDS_PAGE_TAG_SWAP:
        return FDS_PAGE_SWAP;
    
    case FDS_PAGE_TAG_DATA:
        return FDS_PAGE_DATA;
    
    default:
        return FDS_PAGE_UNDEFINED;
    }
}

Related