The problem was that in my case the transfer size should be multiples of 4.
In the above code total transfer size becomes 66 with the addition of 2 command bytes to the 64 bytes of data.
This is not allowed when dma is enbaled.
Case closed.
Search found 7 matches
- Fri Jul 28, 2023 11:21 am
- Forum: ESP-IDF
- Topic: spi master problem
- Replies: 5
- Views: 3585
- Mon Jul 24, 2023 9:42 am
- Forum: ESP-IDF
- Topic: spi master problem
- Replies: 5
- Views: 3585
Re: spi master problem
The spi_device pointer you have is stored in memory somewhere. There's likely some buffer located at a lower address in memory that overflows, overwriting the spi_device pointer. Check where your spi_device pointer is declared in your code, then see if there's a variable declared before that that ...
- Mon Jul 24, 2023 7:29 am
- Forum: ESP-IDF
- Topic: spi master problem
- Replies: 5
- Views: 3585
Re: spi master problem
Do you mean the txBuffer of the transaction?If not will you please clarify it?Potentially a buffer overflow in the variable 'above' it.
- Sun Jul 23, 2023 8:53 pm
- Forum: ESP-IDF
- Topic: spi master problem
- Replies: 5
- Views: 3585
spi master problem
I have an application in which I interface mcp2517 with esp32.Recently I migrated to idf 5.0.Prior to migration the code was working.
I initialize the spi as follows
static esp_err_t spi_master_init(void)
{
esp_err_t ret;
spi_bus_config_t buscfg = {
.miso_io_num = PIN_NUM_MISO,
.mosi_io_num ...
I initialize the spi as follows
static esp_err_t spi_master_init(void)
{
esp_err_t ret;
spi_bus_config_t buscfg = {
.miso_io_num = PIN_NUM_MISO,
.mosi_io_num ...
- Thu Apr 29, 2021 9:14 pm
- Forum: IDEs for ESP-IDF
- Topic: How can I install the new version of openocd in the ESP-idf?
- Replies: 9
- Views: 14882
Re: How can I install the new version of openocd in the ESP-idf?
I am not sure but if somebody configures the tool.json file to point the latest version of open ocd the problem will be solved after
running the install.bat in esp-idf directory.
Am I right?
running the install.bat in esp-idf directory.
Am I right?
- Sat Mar 27, 2021 6:24 pm
- Forum: ESP-IDF
- Topic: how to enable bluetooth
- Replies: 4
- Views: 6785
Re: how to enable bluetooth
my problem was with setting the target .Case closed.
- Sat Mar 27, 2021 9:35 am
- Forum: ESP-IDF
- Topic: how to enable bluetooth
- Replies: 4
- Views: 6785
how to enable bluetooth
static assertion failed with "please enable bluetooth in menuconfig to use bt.h".
I get this error when I try to build bluetooth spp server demo.
my sdkconfig.defaults is as follows;
# Override some defaults so BT stack is enabled
# in this example
#
# BT config
#
CONFIG_BT_ENABLED=y
CONFIG_BTDM ...
I get this error when I try to build bluetooth spp server demo.
my sdkconfig.defaults is as follows;
# Override some defaults so BT stack is enabled
# in this example
#
# BT config
#
CONFIG_BT_ENABLED=y
CONFIG_BTDM ...