Search found 3 matches
- Tue Apr 25, 2017 11:49 am
- Forum: ESP-IDF
- Topic: ESP32 crash when transmitting value via SPI
- Replies: 5
- Views: 11397
Re: ESP32 crash when transmitting value via SPI
There are a bunch of members in spi_device_interface_config_t structure which you aren't initializing, they include pre_cb and post_cb callback pointers. Because these pointers are not initialized, they contain garbage values previously present on the stack. SPI driver calls these function pointers...
- Tue Apr 25, 2017 11:19 am
- Forum: ESP-IDF
- Topic: ESP32 crash when transmitting value via SPI
- Replies: 5
- Views: 11397
Re: ESP32 crash when transmitting value via SPI
I use the following pins:ESP_igrr wrote:Which pins are you using as SPI_MISO, SPI_MOSI, SPI_CLK?
Code: Select all
#define SPI_CLK 5
#define SPI_MISO 21
#define SPI_MOSI 22
#define SPI_CS 23
- Tue Apr 25, 2017 9:51 am
- Forum: ESP-IDF
- Topic: ESP32 crash when transmitting value via SPI
- Replies: 5
- Views: 11397
ESP32 crash when transmitting value via SPI
Hi all, Recently started using the ESP32 DevKitC and could successfully communicate in SPI. However, recently I've encountered a few problems with transmitting a simple value via SPI. At the moment my implementation consists of a header (hal.h) and source (hal.c) file. The hal.c file has an initiali...