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

how to read the data from flashstorage which is written in flash

Hi folks,

I am working on ble_app_uart example program nRF52 SDK 15.2 Verion , in this case i am writing the data in flash for future use , Now i am to get the specific  data from flash, how to do that? 

guide me 

Parents
  • Hi

    Are you able to see any output at all on the terminal you're printing to? Is the problem that you're trying to print a string when name and newname are characters and not strings? You can add a loop to see if the operations succeed as well using an if loop like this, so that the application only prints if the operation was a success, and handles the error/ prints the error code if not.

    if (rc == NRF_SUCCESS)
    {
        /* The operation was accepted.
           Print your data            */
        
    }
    else
    {
        /* Handle error.*/
    }

    Best regards,

    Simon

Reply
  • Hi

    Are you able to see any output at all on the terminal you're printing to? Is the problem that you're trying to print a string when name and newname are characters and not strings? You can add a loop to see if the operations succeed as well using an if loop like this, so that the application only prints if the operation was a success, and handles the error/ prints the error code if not.

    if (rc == NRF_SUCCESS)
    {
        /* The operation was accepted.
           Print your data            */
        
    }
    else
    {
        /* Handle error.*/
    }

    Best regards,

    Simon

Children
No Data
Related