问答

汇集网友智慧,解决技术难题

ljm9823

TA的家园币:238  

  • AT32F435VMT7基于FAL+QSPI驱动W25Q128。连续读取超过512K字节报错

    用QSPI驱动W25Q128.驱动应该没问题。但是读取的时候,数据超过512K就会失败。512K以内就正常,1M就失败。我把FLASH分区,一个512K分区,一个1M分区,同时跑falbench。结果如下:```msh/>falbench4096yesErasing524288bytesdata,waiting...Erasebenchmarksuccess,totaltime:1.896S.Writing524288bytesdata,waiting...Writebenchmarksuccess,totaltime:2.048S.Reading524288bytesdata,waiting...Readbenchmarksuccess,totaltime:0.144S.msh/>falprobeupdate2Probedaflashpartition|update2|flash_dev:norflash0|offset:1048576|len:1048576|.msh/>falbench4096yesErasing1048576bytesdata,waiting...Erasebenchmarksuccess,totaltime:3.844S.Writing1048576bytesdata,waiting...Writebenchmarksuccess,totaltime:4.096S.Reading1048576bytesdata,waiting...5857283057f1ff.5857283058f2ff.5857283059f3ff.......5857284090faff.5857284091fbff.5857284092fcff.5857284093fdff.5857284094feff.DatacheckERROR!Pleasecheckyouflashbyothercommand.Readbenchmarkhasanerror.Errorcode:-1.Thisoperatehasanerror.Errorcode:-1.msh/>```不知道什么原因。而且分区擦除和写入都成功了,读取失败了!```msh/>sfprobeqspi20FindaWinbondflashchip.Sizeis16777216bytes.sf_cmdflashdeviceisinitializesuccess.ProbeSPIflashsf_cmdbySPIdeviceqspi20success.16MBsf_cmdiscurrentselecteddevice.msh/>sfbenchyesErasingthesf_cmd16777216bytesdata,waiting...Erasebenchmarksuccess,totaltime:41.318S.Writingthesf_cmd16777216bytesdata,waiting...Writebenchmarksuccess,totaltime:65.537S.Readingthesf_cmd16777216bytesdata,waiting...DatacheckERROR!Pleasecheckyouflashbyothercommand.Readsf_cmdfailed,alreadyrdfor788480bytes,read256eachtimeReadbenchmarkhasanerror.Errorcode:3.Thisflashoperatehasanerror.Errorcode:3.```

    SFUD FAL QSPI bench AT32

    2023-05-22 22