QSPI读写flash及擦除
<p style="margin-left:48px; text-indent:0cm; text-align:justify">本来是想测试一下低功耗,看到要割板子,就留后面再测试,先来跑一下外挂flash的功能。</p><p style="margin-left:48px; text-indent:0cm; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif"">1.<span style="font-family:宋体">确定硬件部分</span></span></span></p>
<p style="margin-left:24px; text-align:justify; text-indent:21pt"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><span style="font-family:宋体">(</span>1<span style="font-family:宋体">)我们先查看</span>datasheet<span style="font-family:宋体">确定</span>SPI0<span style="font-family:宋体">接口如下</span></span></span></p>
<p style="margin-left:24px; text-align:justify; text-indent:21pt"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""> PB3<span style="font-family:宋体">:</span>SPI_SCK</span></span></p>
<p style="margin-left:24px; text-align:justify; text-indent:21pt"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""> PB4<span style="font-family:宋体">:</span>SPI0_MISO</span></span></p>
<p style="margin-left:24px; text-align:justify; text-indent:21pt"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""> PB5<span style="font-family:宋体">:</span>SPI0_MOSI</span></span></p>
<p style="margin-left:24px; text-align:justify; text-indent:21pt"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""> PB6<span style="font-family:宋体">:</span>SPI0_IO2</span></span></p>
<p style="margin-left:24px; text-align:justify; text-indent:21pt"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""> PB7<span style="font-family:宋体">:</span>SPI0_IO3</span></span></p>
<p style="margin-left:24px; text-align:justify; text-indent:21pt"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""> PB1<span style="font-family:宋体">:</span>SPI0_CS</span></span></p>
<p style="margin-left:24px; text-align:justify; text-indent:21pt"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><span style="font-family:宋体">(</span>2<span style="font-family:宋体">)查找一下</span>flash<span style="font-family:宋体">管脚图</span></span></span></p>
<p style="margin-left:24px; text-align:justify; text-indent:21pt"> </p>
<p style="margin-left:24px; text-align:justify; text-indent:21pt"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><span style="font-family:宋体">(</span>3<span style="font-family:宋体">)搭一个</span>flash<span style="font-family:宋体">小板,对应上面</span>IO<span style="font-family:宋体">,电源,</span>GND<span style="font-family:宋体">连到开发板。</span></span></span></p>
<p style="margin-left:24px; text-align:justify; text-indent:21pt"> </p>
<p style="margin-left:24px; text-align:justify; text-indent:21pt"> </p>
<p style="margin-left:24px; text-align:justify; text-indent:21pt"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif"">2.<span style="font-family:宋体">添加软件部分</span></span></span></p>
<ol>
<li style="margin-left:74px; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><span style="font-family:宋体">添加驱动部分</span>Soft_Drive<span style="font-family:宋体">(</span>gd25qxx.c<span style="font-family:宋体">和</span>gd25qxx.h<span style="font-family:宋体">);</span></span></span></li>
<li style="margin-left:74px; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><span style="font-family:宋体">初始化</span><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#008200">SPI0 GPIO and parameter</span></span></span></span></span></li>
</ol>
<p style="margin-left:76px; text-indent:27.0pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black">spi_flash_init(); </span></span></span></span></span></p>
<ol start="3">
<li style="margin-left:74px; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><span style="font-family:宋体">擦除</span>flash</span></span></li>
</ol>
<p style="margin-left:114px; text-indent:0cm; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#006699">void</span></span></span></b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black"> spi_flash_sector_erase(uint32_t sector_addr); </span></span></span></span></span></p>
<p style="margin-left:114px; text-indent:0cm; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><span style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:宋体"><span style="color:black">擦除一个</span></span></span><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#008200">sector</span></span></span><span style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:宋体"><span style="color:#008200">:</span></span></span> <span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black"> 0x0000-0x0fff </span></span></span></span></span></p>
<p style="margin-left:114px; text-indent:0cm; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#006699">void</span></span></span></b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black"> spi_flash_block_erase(uint8_t block_addr); </span></span></span></span></span></p>
<p style="margin-left:114px; text-indent:0cm; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><span style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:宋体"><span style="color:black">擦除一个</span></span></span><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#008200">block</span></span></span><span style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:宋体"><span style="color:#008200">:</span></span></span> <span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black"> 0x000000-0x00ffff </span></span></span></span></span></p>
<p style="margin-left:114px; text-indent:0cm; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#006699">void</span></span></span></b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black"> spi_flash_bulk_erase(</span></span></span><b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#006699">void</span></span></span></b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black">); </span></span></span></span></span></p>
<p style="margin-left:114px; text-indent:0cm; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><span style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:宋体"><span style="color:black">擦除整个</span></span></span><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#008200">chip</span></span></span></span></span></p>
<ol start="4">
<li style="margin-left:74px; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><span style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:宋体"><span style="color:#008200">读写</span></span></span><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#008200">flash</span></span></span></span></span></li>
</ol>
<p style="margin-left:66px; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#008200">/* write block of data to the flash using qspi */</span></span></span> </span></span></p>
<p style="margin-left:28px; text-indent:21.0pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#006699">void</span></span></span></b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black"> qspi_flash_buffer_write(uint8_t *pbuffer, uint32_t write_addr, uint16_t num_byte_to_write); </span></span></span></span></span></p>
<p style="margin-left:28px; text-indent:21.0pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""> <span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#008200">/* read a block of data from the flash using qspi */</span></span></span> </span></span></p>
<p style="margin-left:28px; text-indent:21.0pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#006699">void</span></span></span></b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black"> qspi_flash_buffer_read(uint8_t *pbuffer, uint32_t read_addr, uint16_t num_byte_to_read);</span></span></span></span></span></p>
<p style="margin-left:28px; text-indent:21.0pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#006699">(5)</span></span></span></b><b><span style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:宋体"><span style="color:#006699">下载程序,打印结果</span></span></span></b></span></span></p>
<p style="margin-left:28px; text-indent:21.0pt; text-align:justify"> </p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#006699">3.</span></span></span></b><b><span style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:宋体"><span style="color:#006699">关于不同</span></span></span></b><b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#006699">flash,quad</span></span></span></b><b><span style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:宋体"><span style="color:#006699">模式的设置</span></span></span></b></span></span></p>
<div style="border-left:solid #6ce26c 2.25pt; padding:0cm 0cm 0cm 0cm; margin-left:24px">
<ol>
<li align="left" style="border:none; text-align:left; padding:0cm"><span style="background:white"><span style="font-size:10.5pt"><span style="background:white"><span style="10.5pt"><span style="tab-stops:list 36.0pt"><span style="font-family:Calibri,"sans-serif""><b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#006699">void</span></span></span></b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black"> qspi_flash_quad_enable(</span></span></span><b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#006699">void</span></span></span></b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black">) </span></span></span></span></span></span></span></span></span></li>
<li align="left" style="border:none; text-align:left; padding:0cm"><span style="background:white"><span style="font-size:10.5pt"><span style="background:#f8f8f8"><span style="10.5pt"><span style="tab-stops:list 36.0pt"><span style="font-family:Calibri,"sans-serif""><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black">{ </span></span></span></span></span></span></span></span></span></li>
<li align="left" style="border:none; text-align:left; padding:0cm"><span style="background:white"><span style="font-size:10.5pt"><span style="background:white"><span style="10.5pt"><span style="tab-stops:list 36.0pt"><span style="font-family:Calibri,"sans-serif""> <span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#008200">/* enable the write access to the flash */</span></span></span> </span></span></span></span></span></span></li>
<li align="left" style="border:none; text-align:left; padding:0cm"><span style="background:white"><span style="font-size:10.5pt"><span style="background:#f8f8f8"><span style="10.5pt"><span style="tab-stops:list 36.0pt"><span style="font-family:Calibri,"sans-serif""><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black"> spi_flash_write_enable(); </span></span></span></span></span></span></span></span></span></li>
<li align="left" style="border:none; text-align:left; padding:0cm"><span style="background:white"><span style="font-size:10.5pt"><span style="background:white"><span style="10.5pt"><span style="tab-stops:list 36.0pt"><span style="font-family:Calibri,"sans-serif""> <span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#008200">/* select the flash: chip select low */</span></span></span> </span></span></span></span></span></span></li>
<li align="left" style="border:none; text-align:left; padding:0cm"><span style="background:white"><span style="font-size:10.5pt"><span style="background:#f8f8f8"><span style="10.5pt"><span style="tab-stops:list 36.0pt"><span style="font-family:Calibri,"sans-serif""><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black"> SPI_FLASH_CS_LOW(); </span></span></span></span></span></span></span></span></span></li>
<li align="left" style="border:none; text-align:left; padding:0cm"><span style="background:white"><span style="font-size:10.5pt"><span style="background:white"><span style="10.5pt"><span style="tab-stops:list 36.0pt"><span style="font-family:Calibri,"sans-serif""> <span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#008200">/* send "write status register" instruction */</span></span></span> </span></span></span></span></span></span></li>
<li align="left" style="border:none; text-align:left; padding:0cm"><span style="background:white"><span style="font-size:10.5pt"><span style="background:#f8f8f8"><span style="10.5pt"><span style="tab-stops:list 36.0pt"><span style="font-family:Calibri,"sans-serif""><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black"> spi_flash_send_byte(WRSR); </span></span></span></span></span></span></span></span></span></li>
<li align="left" style="border:none; text-align:left; padding:0cm"> </li>
<li align="left" style="border:none; text-align:left; padding:0cm"><span style="background:white"><span style="font-size:10.5pt"><span style="background:#f8f8f8"><span style="10.5pt"><span style="tab-stops:list 36.0pt"><span style="font-family:Calibri,"sans-serif""><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black"> spi_flash_send_byte(0x00); </span></span></span></span></span></span></span></span></span></li>
<li align="left" style="border:none; text-align:left; padding:0cm"><span style="background:white"><span style="font-size:10.5pt"><span style="background:white"><span style="10.5pt"><span style="tab-stops:list 36.0pt"><span style="font-family:Calibri,"sans-serif""><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black"> spi_flash_send_byte(0x20); </span></span></span></span></span></span></span></span></span></li>
<li align="left" style="border:none; text-align:left; padding:0cm"> </li>
<li align="left" style="border:none; text-align:left; padding:0cm"><span style="background:white"><span style="font-size:10.5pt"><span style="background:white"><span style="10.5pt"><span style="tab-stops:list 36.0pt"><span style="font-family:Calibri,"sans-serif""> <span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#008200">/* deselect the flash: chip select high */</span></span></span> </span></span></span></span></span></span></li>
<li align="left" style="border:none; text-align:left; padding:0cm"><span style="background:white"><span style="font-size:10.5pt"><span style="background:#f8f8f8"><span style="10.5pt"><span style="tab-stops:list 36.0pt"><span style="font-family:Calibri,"sans-serif""><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black"> SPI_FLASH_CS_HIGH(); </span></span></span></span></span></span></span></span></span></li>
<li align="left" style="border:none; text-align:left; padding:0cm"><span style="background:white"><span style="font-size:10.5pt"><span style="background:white"><span style="10.5pt"><span style="tab-stops:list 36.0pt"><span style="font-family:Calibri,"sans-serif""> <span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#008200">/* wait the end of flash writing */</span></span></span> </span></span></span></span></span></span></li>
<li align="left" style="border:none; text-align:left; padding:0cm"><span style="background:white"><span style="font-size:10.5pt"><span style="background:#f8f8f8"><span style="10.5pt"><span style="tab-stops:list 36.0pt"><span style="font-family:Calibri,"sans-serif""><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black"> spi_flash_wait_for_write_end(); </span></span></span></span></span></span></span></span></span></li>
<li align="left" style="border:none; text-align:left; padding:0cm"><span style="background:white"><span style="font-size:10.5pt"><span style="background:white"><span style="10.5pt"><span style="tab-stops:list 36.0pt"><span style="font-family:Calibri,"sans-serif""><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black">} </span></span></span></span></span></span></span></span></span></li>
</ol>
</div>
<p style="text-indent:13.3pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><b><span style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:宋体"><span style="color:#006699">查阅</span></span></span></b><b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#006699">GD</span></span></span></b><b><span style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:宋体"><span style="color:#006699">的</span></span></span></b><b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#006699">datasheet</span></span></span></b><b><span style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:宋体"><span style="color:#006699">,可以看到</span></span></span></b><b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#006699">QE</span></span></span></b><b><span style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:宋体"><span style="color:#006699">的设置</span></span></span></b></span></span></p>
<div style="border-left:solid #6ce26c 2.25pt; padding:0cm 0cm 0cm 0cm; margin-left:24px">
<ol start="18">
<li align="left" style="border:none; text-align:left; padding:0cm"><span style="background:#f8f8f8"><span style="font-size:10.5pt"><span style="background:#f8f8f8"><span style="10.5pt"><span style="tab-stops:list 36.0pt"><span style="font-family:Calibri,"sans-serif""><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black"> spi_flash_send_byte(0x00); </span></span></span></span></span></span></span></span></span></li>
<li align="left" style="border:none; text-align:left; padding:0cm"><span style="background:#f8f8f8"><span style="font-size:10.5pt"><span style="background:white"><span style="10.5pt"><span style="tab-stops:list 36.0pt"><span style="font-family:Calibri,"sans-serif""><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black"> spi_flash_send_byte(0x20); </span></span></span></span></span></span></span></span></span></li>
</ol>
</div>
<p style="text-indent:13.3pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,"sans-serif""><b><span style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:宋体"><span style="color:#006699">查阅</span></span></span></b><b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#006699">KH</span></span></span></b><b><span style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:宋体"><span style="color:#006699">的</span></span></span></b><b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#006699">datasheet</span></span></span></b><b><span style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:宋体"><span style="color:#006699">,可以看到</span></span></span></b><b><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:#006699">QE</span></span></span></b><b><span style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:宋体"><span style="color:#006699">的设置</span></span></span></b></span></span></p>
<div style="border-left:solid #6ce26c 2.25pt; padding:0cm 0cm 0cm 0cm; margin-left:24px">
<ol>
<li align="left" style="border:none; text-align:left; padding:0cm"><span style="background:#f8f8f8"><span style="font-size:10.5pt"><span style="background:#f8f8f8"><span style="10.5pt"><span style="tab-stops:list 36.0pt"><span style="font-family:Calibri,"sans-serif""><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black"> spi_flash_send_byte(0x40); </span></span></span></span></span></span></span></span></span></li>
<li align="left" style="border:none; text-align:left; padding:0cm"><span style="background:#f8f8f8"><span style="font-size:10.5pt"><span style="background:white"><span style="10.5pt"><span style="tab-stops:list 36.0pt"><span style="font-family:Calibri,"sans-serif""><span lang="EN-US" style="border:none windowtext 1.0pt; font-size:9.0pt; padding:0cm"><span style="font-family:Consolas"><span style="color:black"> spi_flash_send_byte(0x00); </span></span></span></span></span></span></span></span></span></li>
</ol>
</div>
<p>还差挺多的呢</p>
<p> </p>
huo_hu 发表于 2022-3-3 11:47
还差挺多的呢
<p>什么差挺多?</p>
<p>qspi不用dma会很吃力</p>
<p>能分享一下原历程吗</p>
页:
[1]