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

How to handle flashwrit in an safe way.

Hi,

i need to store data in my Flash, for that i use the flashwrite example. Am i right taht i can use the remain of my application flash? So all flash = 256 kB - App = 20 kB = Flash i can use to write my Data to ?

I read that if i use flashwrite and the Softdevie, that i have to halt the Softdevie becauose of the latncy of flahswriting is that right? How can i handle this in a safe way?

Best reagrds Nils

Parents
  • Hi Ole,

    ok i understand, but in my case i don't need the softdevice so i write to the flash when the softdevie is not needed, so how can i stop the softdevice?

    In the exampkle of the sdk there is used this: pg_size = NRF_FICR->CODEPAGESIZE; pg_num = NRF_FICR->CODESIZE - 1; // Use last page in flash // Start address: addr = (uint32_t *)(pg_size * pg_num); So is this safe for me, am i writing then in the flash area over my application and the softdevie?

    And in the Code the use "page_size" what is ment by this, i dont't realy understand what they mean with pages in the flash, is there any Information about that?

    Thanks for your help :)

Reply
  • Hi Ole,

    ok i understand, but in my case i don't need the softdevice so i write to the flash when the softdevie is not needed, so how can i stop the softdevice?

    In the exampkle of the sdk there is used this: pg_size = NRF_FICR->CODEPAGESIZE; pg_num = NRF_FICR->CODESIZE - 1; // Use last page in flash // Start address: addr = (uint32_t *)(pg_size * pg_num); So is this safe for me, am i writing then in the flash area over my application and the softdevie?

    And in the Code the use "page_size" what is ment by this, i dont't realy understand what they mean with pages in the flash, is there any Information about that?

    Thanks for your help :)

Children
No Data
Related