Giter VIP home page Giter VIP logo

esp32_spi_slave's Introduction

SPI slave example

These two projects illustrate the SPI Slave driver. They're supposed to be flashed into two separate ESP32s connected to eachother using the SPI pins defined in app_main.c. Once connected and flashed, they will use the spi master and spi slave driver to communicate with eachother. The example also includes a handshaking line to allow the master to only poll the slave when it is actually ready to parse a transaction.

Please run wires between the following GPIOs between the slave and master to make the example function:

Signal Slave Master
Handshake GPIO27 GPIO27
MOSI GPIO13 GPIO13
MISO GPIO12 GPIO12
SCLK GPIO14 GPIO14
CS GPIO10 GPIO10

Be aware that the example by default uses lines normally reserved for JTAG. If this is an issue, either because of hardwired JTAG hardware or because of the need to do JTAG debugging, feel free to change the GPIO settings by editing defines in the top of main.c in the master/slave source code.

esp32_spi_slave's People

Contributors

mihailupoiu avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

liuwming

esp32_spi_slave's Issues

SPI_slave接收数组recvbuf始终为空

你好,我在调试esp32的spi_slave过程中,我用stm32作为主机,esp32作为从机,两个STM32之间的SPI通信我已经测试过了,没有问题,但是在esp32当中我的接收数组recvbuf始终为空,但是通过打印t.trans_len显示我的已经接收到8位的数据,recvbuf也在DMA当中申请了内存,请教您这个问题您有没有遇到过,感谢
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.