風(fēng)火輪小開發(fā)板底層接口_第1頁
風(fēng)火輪小開發(fā)板底層接口_第2頁
風(fēng)火輪小開發(fā)板底層接口_第3頁
免費預(yù)覽已結(jié)束,剩余7頁可下載查看

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、Espressif SystemsESP8266erface SDIO SPI ModeESP8266 SDIOSPIVer0.1Espressif Systems IOT TeamCopyright (c) 2015Espressif Systems 1/10February 11,2015Espressif SystemsESP8266erface SDIO SPI ModeURL“”Wi-FiWi-Fi 2014 Espressif Systems 2/10February 11,2015Espressif SystemsESP8266erface SDIO SPI ModeTable

2、of Contents1.2.4DEMO42.1.2.2.2.3.2.4.4ESP82664ESP8266 FLASH5ESP8266 FLASH53.ESP826663.1.3.2.3.3.SDIOSDIO6.7ESP8266 DEMOAPI74.STM3284.1. .8Espressif Systems 3/10February 11,2015Espressif SystemsESP8266erface SDIO SPI Mode1.ESP8266SDIOSPI4SPISCLKMOSIMISOCS1EPS8266SDIOESP8266SPISDIOSDIOESP8266SDIOSDIOE

3、SP8266RAMCPU CACHEFLASHHSPIFLASHESP8266SDIODMA8266CPUSDIO2.DEMO2.1.STM32F103ZET6IARFreeRTOSESP_IOT Referencv0.9.3SDK2.2.ESP8266ESP8266DEMOSDIO communication demo esp_iot_sdk_v0.9.3_sdio_demo appbinSDIO communication demoesp_iot_sdk_v0.9.3_sdio_demoliblibmain.av0.9.3 release releaseSDKDEMOlibmain.ali

4、bmain.aFLASHSPIHSPIDEMOSDIO communication demoesp_iot_sdk_v0.9.3_sdio_demobineagle.app.v6.irom0text.binSDIO communication demo_UTILeagle.app.v6.irom0text.bin8266CPU CACHESPIFLASHSDIO communication demoBoArray.exeSDIO communicationdemoesp_iot_sdk_v0.9.3_sdio_demobineagle.app.v6.flash.binANSI CD:BoArr

5、ay.exeDDD.UD.Dbin.DD:hexarray.ceagle_fw.hconst unsigned char eagle_fw =.SDIO communication demoSTM32 Eagle_Wifi_Driveregl_drv_simulationeagle_fw.heagle_fw.hEspressif Systems 4/10February 11,2015Espressif SystemsESP8266erface SDIO SPI Modehexarray.ceagle_fw.heagle.app.v6.flash.bin8266STM328266IARSDIO

6、 communication demoSTM32IAREglWB.ewp.eww2.3.ESP8266 FLASHESP_IOT Referenc 5VJ67HSPIFLASHJ66SPIFLASH MTD0,GPIO0,GPIO2 3 : 0,0,1 UARTSDIO communication demoDevice Com Baud Rate: 115200. Flash_UTIL.exe, Tools - ConfigOpen, open Sucs. Connect, HAPI TEST(A)-(5) HSpiFlash Image Download, SDIO communicatio

7、n demoeagle.app.v6.irom0text.binOffset: 0 x40000, DownLoad_UTIL2.4.ESP8266 FLASHESP_IOT ReferencJP1: ESP_IOTJ62GND SPI_CLK SPI_MOSI SPI_MISO IRQESP_IOT Referenc-14532VSS/GND SDIO_CLK SDIO_CMD SDIO_DAT0SDIO_DAT1:MTD01(), GPIO0GPIO21xxSDIO CHIP_PD:ON . J66 J67 5VESP_IOT ReferencIAR2.2STM32STM32ESP_IOT

8、 ReferencSTM32ESP8266SDIOEspressif Systems 5/10February 11,2015Espressif SystemsESP8266erface SDIO SPI Mode3.ESP82663.1.SDIOSDIOESP8266SD_DATA1SDIOSPISPI8266SDIOSDIOCMD53520 x301SDIO32bits8266CMD53520 x20- 0 x23struct sdio_slave_sus_elementu32 wr_busy:1;u32 rd_empty :1;u32u32t :3;r_no :3;u32 rx_leng

9、th:16;u32 res:8;(1) wr_busybit0182660(2) rd_emptybit110(3)tbit2-48266 SDIO/1/8266(4)r_nobit5-7(5) rx_lengthbit8-23(6) res bit24-31(1) SDIO(2) SDIOEspressif Systems 6/10February 11,2015Espressif SystemsESP8266erface SDIO SPI Mode3.2.ESP8266SDIODMA82668266DMASDIO(1) owner1b0:linkbufferSWlinkbufferMACb

10、it 1b1:linkbufferHW(2) eofDUmaclinkeoflinkbuffer_length11:0macerrormac(3) sub_soflinkDUmac(4) length11:0buffer(5) size11:0buffer(6) buf_ptr31:0buffer(7) next_link_ptr31:01discriptermac0buffer3.3.ESP8266 DEMOAPIvoid sdio_slave_init(void)sdioRXTXvoid sdio_slave_isr(void *para)sdiosdioDEMO8266Espressif

11、 Systems 7/10February 11,2015Espressif SystemsESP8266erface SDIO SPI Mode(3) void rx_buff_load_done(u16 rx_len)rx_buffer DEMO rx_len void tx_buff_handle_done(void)tx_buffersdio DEMOvoid rx_buff_read_done(void)rx_buffesdioRX_EOFvoid tx_buff_write_done(void)tx_buffersdioTX_EOF(7) TRIG_TOHOST_()4.STM32

12、4.1.(1) void SdioRW(void *pvParameters)Sdioegl_thread.cSPITest()(2)esp_sdio_probe(void)8266esp_main_sim.cegl_thread.cSPITest()Espressif Systems 8/10February 11,2015Espressif SystemsESP8266erface SDIO SPI Mode(3)sif_spi_write_bytes(u32 addr, u8*src,u16 count,u8 func)sdio byteAPICMD53 byte sdio512port

13、_spi.cegl_thread.cSdioRW src countfunc sdio CMD53blockblock_size01addr0 x300 x110 block_size(func0)0 x1f800-tx_lengthtx_lengthcountcounttx_lengthSPIcounttx_length+1count8266sdioaddr(4)sif_spi_read_bytes(u32 addr,u8* dst,u16 count,u8 func)sdio byteAPICMD53 byte sdio512port_spi.cegl_thread.cSdioRW dst

14、 countfuncsdio CMD53blockblock_size01addr 0 x20SDIO0 x1f800-tx_lengthtx_lengthcountcounttx_lengthSPIcounttx_length+1count8266sdioaddr(5)sif_spi_write_blocks(u32 addr, u8 * src, u16 count,u16 block_size)sdio blockAPICMD53 blocksdio512blockEspressif Systems 9/10February 11,2015Espressif SystemsESP8266

15、erface SDIO SPI Modeport_spi.cegl_thread.cSdioRW esp_main_sim.csif_io_syncsrc countblockblock_size1blockfunc0 addr0 x110-11116bit sdio8266 sdioblock_sizeDEMO512 1024block_size4addrbyte0 x1f800-tx_lengthtx_lengthcount(6)sif_spi_read_blocks(u32 addr, u8 *dst, u16 count,u16 block_size)sdio blockAPICMD53 blocksdio512blockport_spi.cegl_thread.cSdioRW esp_main_sim.csif_io_syncsrc countblockblock_size blockfunc0 ad

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論