DreamSourceLab / DSView

An open source multi-function instrument for everyone
www.dreamsourcelab.com
GNU General Public License v3.0
1.13k stars 416 forks source link

The SPI flash decoder can't handle long SPI transfers. #398

Open Crest opened 3 years ago

Crest commented 3 years ago

I'm using DSView to capture the SPI traffic between a STM32H750 and a SPI flash chip (Winbond W25Q*). To improve transfer efficiency my driver uses DMA transfers of up to 64kiB. The SPI flash protocol decoder isn't written with such long transfers in mind and slows down to such a degree the DSView becomes unusable. The symptoms manifest like this:

Changing the SPI flash driver to read the same data in proportionally more smaller transfers from the chip decodes as expected.

DreamSourceLab commented 3 years ago

@Crest Could you help to upload the dsl file? Thanks.

ma6254 commented 3 years ago

DSLogic-la-210817-212916.zip

Something similar happened to me I grabbed the spi data of w25q16jv 2Mbyte, clk about 10Mhz, 2Mbyte, and then decoded it. It took a few minutes for dsview to complete the analysis, but it couldn’t be dragged to view.

也是一样的情况,器件是w25q16jv,时钟约为10Mhz,读取了全部的2Mbyte数据 启动解析之后,花了好几分钟才100%,但是软件很卡,没办法拖动看波形,试了几次有概率会闪退或无响应 环境:

image image