This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
I am writing 8 bytes to flash using flash API and trying to read them by deferencing the address as below:
#define BANK1_SECTOR4_START 0x94000ul //CALIBRATION parameters
#define CALIB_PARA_SECTOR_ADDRESS BANK1_SECTOR4_START
bool read_calib_para(void)
{
bool ret = STATUS_S_SUCCESS;
static uint16_t read_data[8];
/* Starting Flag */
read_data[0] = *(volatile uint16_t *)LAT_PARA_SECTOR_ADDRESS;
read_data[1] = *(volatile uint16_t *)LAT_PARA_SECTOR_ADDRESS+ 1Ul;
read_data[2] = *(volatile uint16_t *)LAT_PARA_SECTOR_ADDRESS+ 2Ul;
read_data[4] = *(volatile uint16_t *)LAT_PARA_SECTOR_ADDRESS+ 3Ul;
read_data[5] = *(volatile uint16_t *)LAT_PARA_SECTOR_ADDRESS + 4Ul;
read_data[6] = *(volatile uint16_t *)LAT_PARA_SECTOR_ADDRESS+ 5Ul;
read_data[7] = *(volatile uint16_t *)LAT_PARA_SECTOR_ADDRESS+ 6Ul;
return ret;
}
but reading different data on the respective addresses.
Hi
Can you please put complete expression inside the brackets and see if you see the same issue?
Regards,
Rajeshwary