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

Can you only save Uint32_t to FDS ?

I was trying to save this :

         char a = 'r';
         uint8_t save  = a ;
         record_chunk.p_data         = &save;

Or even this :

              char *point ;
             char word[5]="lala";
             point =word
             record_chunk.p_data         =  point;

On the first I get error on write, the second would write but will read empty .

                            uint8_t *msg = (uint8_t*)flash_record.p_data;
              for (uint8_t i=0;i<flash_record.p_header->tl.length_words;i++)
				{
 
                          NRF_LOG_INFO("record ID: %d and data: %d ",record_desc.record_id,msg[i]);
                            				
			

None works. Is there a way to save other vars instead of Uint32_t ?

Related