Search found 7 matches

by nouwon
Fri Jul 28, 2023 11:21 am
Forum: ESP-IDF
Topic: spi master problem
Replies: 5
Views: 2133

Re: spi master problem

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.
by nouwon
Mon Jul 24, 2023 9:42 am
Forum: ESP-IDF
Topic: spi master problem
Replies: 5
Views: 2133

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 m...
by nouwon
Mon Jul 24, 2023 7:29 am
Forum: ESP-IDF
Topic: spi master problem
Replies: 5
Views: 2133

Re: spi master problem

ESP_Sprite wrote:
Mon Jul 24, 2023 12:55 am
Potentially a buffer overflow in the variable 'above' it.
Do you mean the txBuffer of the transaction?If not will you please clarify it?
by nouwon
Sun Jul 23, 2023 8:53 pm
Forum: ESP-IDF
Topic: spi master problem
Replies: 5
Views: 2133

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 = PIN_NU...
by nouwon
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: 13167

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?
by nouwon
Sat Mar 27, 2021 6:24 pm
Forum: ESP-IDF
Topic: how to enable bluetooth
Replies: 4
Views: 5058

Re: how to enable bluetooth

my problem was with setting the target .Case closed.
by nouwon
Sat Mar 27, 2021 9:35 am
Forum: ESP-IDF
Topic: how to enable bluetooth
Replies: 4
Views: 5058

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_CTR...