While migrating from SDK 12.2 to SDK 14.2 DFU fails while flashing application and the pages assigned get in the switch case of FDS_PAGE_UNDEFINED always ,thus jumping from one page to next and not finding anything on the pages assigned.
It always finds itself in this loop-
else
{
// The page contains non-FDS data.
// Do not initialize or use this page.
total_pages_available--;
m_pages[page].p_addr = p_page_addr;
m_pages[page].page_type = FDS_PAGE_UNDEFINED;
page++;
}
and after that it doesnt finds the minimum FDS pages -
if (total_pages_available < 2)
{
ret &= NO_PAGES;
}
thus returning NO_PAGES.
Can someone help me with this problem.
The configuration that I am using is
#define FDS_VIRTUAL_PAGES 5
#define FDS_VIRTUAL_PAGE_SIZE 2048