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

fds problems sdk14

I'm migrating from sdk13 to sdk14 with work app. Can't solve one weird problem. When my app start first time I initialize some data with saving by fds library to flash. There were no any problem to do it in sdk 13. Now I save all data good except two intead of saving my values (0x0000 and 0x0001) it saves something weird 0x200034BC

ret_code_t fds_write_value(uint32_t* value, uint16_t file_id, uint16_t rec_key)
{
		fds_record_desc_t record_desc;
		fds_record_t        record;
		// Set up record.
		record.file_id              = file_id;
		record.key              		= rec_key;
		record.data.p_data = value;
		record.data.length_words   = 1;
		write_flag = 0;
				
	  ret_code_t ret = fds_record_write(&record_desc, &record);
		if (ret != FDS_SUCCESS)
		{
				return ret;
		}
		 SEGGER_RTT_printf(0,"Writing Record ID = %d, value = %d\r\n",record_desc.record_id, *value);
		return NRF_SUCCESS;
}

in RTT terminal I see right values, but then I go into debug mode and check memory, there are wrong values

here's my values definition image description the same I can see in terminal image description but in memory I can see that "11" value is updated to something wrong, and second just wrong.image description image description

Related