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

Controller hangs with call to fds_init()

I'm using nrf52 with SDK version 12.0.0. I'm trying to use the FDS for my application. I used one of the existing fds example from link fds_example.

With this example, I call the function "fds_test_init" which in turn calls "fds_init". After debugging, I reached to a point where the function "sd_flash_write" is called and this function declaration is taken from the place "/nRF5SDK/components/softdevice/s132/headers/nrf_soc.h".

It is at the call of this function that the controller hangs with message "Starting target cpu" in the console window.

Below is the definitions of FS & FDS macros:

  • FS_QUEUE_SIZE = 4
  • FS_OP_MAX_RETRIES = 3
  • FS_MAX_WRITE_SIZE_WORDS = 1024
  • FDS_OP_QUEUE_SIZE = 4
  • FDS_CHUNK_QUEUE_SIZE = 8
  • FDS_MAX_USERS = 3
  • FDS_VIRTUAL_PAGES = 3
  • FDS_VIRTUAL_PAGE_SIZE = 2048

Could anyone support me here to understand why the controller hangs at the call of the function "sd_flash_write"?

Thanks in advance.

Parents
  • I understand, I just meant that maybe you could learn something from getting it to work on SDK 11 first, before porting it to SDK 12. I'm not aware of and FDS example for SDK 12, but I think there should be one in SDK 13. I don't really understand what you mean by "Starting target cpu" in the console window. What example are you using as a starting point? Maybe you can edit your question and upload your complete project so I can test it here? What SoftDevice are you using?

Reply
  • I understand, I just meant that maybe you could learn something from getting it to work on SDK 11 first, before porting it to SDK 12. I'm not aware of and FDS example for SDK 12, but I think there should be one in SDK 13. I don't really understand what you mean by "Starting target cpu" in the console window. What example are you using as a starting point? Maybe you can edit your question and upload your complete project so I can test it here? What SoftDevice are you using?

Children
No Data
Related