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

bluetooth and flash storage does not work together

I am new to Nordic and i am using nRF52840 microcontroller,  - SDK 15.2.0s140

When i program the microcontroller it gives me error message that my flash storage is full. I have defined my own Flash storage to save the Paramter Objects in to memory. My program was running fine until i included bluetooth in my application.

  • Bluetooth & my flash storage does not work together - my program crashes in Peer manager
  • bluetooth works if I disable my flash storage
  • flash storage works if I disable bluetooth 

After debugging i believe the error is happening because bluetooth uses FDS storage which  does not work with my storage . how do i solve this issue?

Thanks & Regards

S Oommen

Parents
  • Hello, 

    Can you please elaborate on what your project does? Are you basing it on one of our examples? Have you looked at the FDS example?

    My program was running fine until i included bluetooth in my application.

    Please read the detailed description of the Peer Manager module. It uses Flash Data Storage (FDS) to interface with persistent storage. The Peer Manager needs exclusive use of certain FDS file IDs and record keys.

    I also suggest reading the Flash Data Storage documentation:  "When the space is exhausted, write requests return the error FDS_ERR_NO_SPACE_IN_FLASH, and you must run garbage collection and wait for completion before repeating the call to the write function. The function fds_stat can return useful information to determine if there are any dirty records in flash which can be garbage collected"

    Kind regards,

    Øyvind

Reply
  • Hello, 

    Can you please elaborate on what your project does? Are you basing it on one of our examples? Have you looked at the FDS example?

    My program was running fine until i included bluetooth in my application.

    Please read the detailed description of the Peer Manager module. It uses Flash Data Storage (FDS) to interface with persistent storage. The Peer Manager needs exclusive use of certain FDS file IDs and record keys.

    I also suggest reading the Flash Data Storage documentation:  "When the space is exhausted, write requests return the error FDS_ERR_NO_SPACE_IN_FLASH, and you must run garbage collection and wait for completion before repeating the call to the write function. The function fds_stat can return useful information to determine if there are any dirty records in flash which can be garbage collected"

    Kind regards,

    Øyvind

Children
Related