Page 1 of 1

ESP-WROVER-KIT_V4.1, spi_slave example

Posted: Sun Apr 28, 2019 2:37 pm
by osalexandeko
Hi,
when I use example spi_slave example, receiver part I have strange behavior:
1. if I take the code as is I get spi_slave: spi_slave_queue_trans(340): rxdata not in DMA-capable memory or not WORD aligned
2. if I use DMA_ATTR and global buffers for spi_slave_transmit(HSPI_HOST, &t, portMAX_DELAY), the program continuously resets at:
abort() was called at PC 0x400827b1 on core 0
0x400827b1: lock_acquire_generic at C:/Users/alexanderk/Desktop/trax/esp32/msys32/home/alexanderk/esp/esp-idf/components /newlib/locks.c:143
3. if I use WORD_ALIGNED_ATTR and local buffers for spi_slave_transmit(HSPI_HOST, &t, portMAX_DELAY), I get similar behavior as in 2)

may be someone can give me some tips on how to configure SPI slave, since example won't work..., I am 6 hours trying to transmit a bite :(


thanks

Re: ESP-WROVER-KIT_V4.1, spi_slave example

Posted: Wed May 08, 2019 6:24 pm
by mirec1234
Hi
I have same problem and error messages as 1)