Erase operation failed because the pre-
compaction portion failed. The pre-compaction is
applied to all sectors on the device. The
FLASH_ST structure will return a fail address
corresponding to the first sector fails this step.
奇怪的是我用jtag仿真器将flash_api code下载到dsp中单步调试,用串口调试工具发送握手报文和擦除指令时,flash_api code正确调用了擦除函数,且返回值也是正确的0,一旦全速运行,用sdflash软件启动烧录过程,则返回值就成了24,报erase fail
请问这个错误是什么原因?应该如何解决? |