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.
各位好:
冒昧问个问题,28377D在使用Flash API 写flash(即使用 Fapi_issueProgrammingCommand() )时,能否用ECC并且每次仅写入1个地址?
Flash API手册中关于Fapi_AutoGeneration模式的描述中并没有字长限制,如下:
Fapi_AutoGeneration – This will program the supplied data portion in Flash along with automatically generated ECC. The ECC is calculated for the data width of the bank and data not supplied is treated as 0xFF. The data restrictions for Fapi_DataOnly also exist for this option.
下面是我实验的几种情况:
(1)使用Fapi_AutoEccGeneration,每次写1个地址,中间大部分地址都没有写进去,但函数的返回值并没有提示错误
(2)使用Fapi_AutoEccGeneration,每次写2个地址,同上:
(3)使用Fapi_DataOnly,每次写1个地址,写入无误:
因为在写bootloader,在TI论坛看到要读取执行Flash,编写Flash时必须要使用ECC
望解答!
非常感谢!