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.

[参考译文] TMS320F280037C:闪存读取错误的数据字节

Guru**** 1955920 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1454375/tms320f280037c-flash-reading-wrongly-the-data-bytes

器件型号:TMS320F280037C

工具与软件:

我要使用闪存 API 将8个字节写入闪存、并尝试通过解引用地址来读取它们、如下所示:

#define BANK1_SECTOR4_START 0x94000ul //calibration 参数
#define CALIB_PARA_SECTOR4_START

bool read_calib_para (void)

bool ret = STATUS_S_SUCCESS;
静态 uint16_t READ_DATA[8];

/*起始标志*/
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;

回流塔;
}

但在各自的地址上读取不同的数据。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    你(们)好

    您能否将完整的表达式放在方括号内、看看您是否看到同样的问题?

    此致、

    Rajeshwary

x 出现错误。请重试或与管理员联系。