ESP-WROVER-KIT_V4.1, spi_slave example

osalexandeko
Posts: 3
Joined: Thu Mar 21, 2019 11:45 am

ESP-WROVER-KIT_V4.1, spi_slave example

Postby osalexandeko » Sun Apr 28, 2019 2:37 pm

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

mirec1234
Posts: 1
Joined: Wed May 08, 2019 6:18 pm

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

Postby mirec1234 » Wed May 08, 2019 6:24 pm

Hi
I have same problem and error messages as 1)

Who is online

Users browsing this forum: No registered users and 97 guests