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

Why the app keeping reset

Hi,

the bootloader addr is start form 0x28000, and I checked my application code, it only reached 0x25B00.

I called the fstroge to erased a page Flash start from 0x27000. then I writed 4 bytes into flash address 0x27000.

everything goes fine ecepte when I re-powerUp the demo board, four LEDs keep fast blinkng, it seems keeping reset, I pressed one of the buttons, the system will enter bootloader,

I can runing the DFU, but the system is still keeping reset, I assume because the last 2 page of the applicaton code area won't erased by the bootloader, DFU can;t fix the problem.

Please help.

Parents
  • Hi,

    FDS_ERR_NO_PAGES is returned if there are no data pages or no swap page, and the page is not fully erased (see implementation of pages_init()). Therefor it seems something has corrupted the FDS pages. Do you do any writes to flash without using FDS, and could it be that you accidentally wrote to the pages used by FDS? Or is it the application that overlaps with the FDS pages? How many pages have you set aside for FDS? (Since your application ends at 0x25B00 and the bootloader starts at 0x28000 this means that you only have room for two pages - one swap and one data).

Reply
  • Hi,

    FDS_ERR_NO_PAGES is returned if there are no data pages or no swap page, and the page is not fully erased (see implementation of pages_init()). Therefor it seems something has corrupted the FDS pages. Do you do any writes to flash without using FDS, and could it be that you accidentally wrote to the pages used by FDS? Or is it the application that overlaps with the FDS pages? How many pages have you set aside for FDS? (Since your application ends at 0x25B00 and the bootloader starts at 0x28000 this means that you only have room for two pages - one swap and one data).

Children
No Data
Related