Search found 16 matches

by Valerii
Wed Apr 04, 2018 2:02 pm
Forum: ESP-IDF
Topic: RTC timer example code?
Replies: 0
Views: 4900

RTC timer example code?

Hi, I need RTC timer code example. I tried to look in the forum but didn't find any. In IDF I only found esp-idf/components/soc/esp32/rtc_time.c but it is not enough for me to implement. In general I need 32kHz XTAL based the clock source that will remain counting during light/deep sleep mode. With ...
by Valerii
Wed Apr 04, 2018 1:17 pm
Forum: ESP-IDF
Topic: Is it possible to run SPI communication in ISR of GPIO?
Replies: 4
Views: 7949

Re: Is it possible to run SPI communication in ISR of GPIO?

Ok, thanks. It's clear now.
by Valerii
Tue Apr 03, 2018 5:54 pm
Forum: ESP-IDF
Topic: Is it possible to run SPI communication in ISR of GPIO?
Replies: 4
Views: 7949

Is it possible to run SPI communication in ISR of GPIO?

Hi, I'm porting a peripheral library that sends SPI data in GPIO's interrupt routine. The panic occurring when firmware running. Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0) Core 0 register dump: PC : 0x400874ee PS : 0x00060234 A0 : 0x80086836 A1 : 0x3ffc0630 0x400874ee: vL...
by Valerii
Tue Apr 03, 2018 5:28 pm
Forum: ESP-IDF
Topic: SPI master example strange signals
Replies: 6
Views: 10715

Re: SPI master example strange signals

Hi, reassigning pins helped. So the main problem was in too high clock frequency.
by Valerii
Mon Apr 02, 2018 8:20 pm
Forum: ESP-IDF
Topic: SPI master example strange signals
Replies: 6
Views: 10715

Re: SPI master example strange signals

Nope, I see, they can interfere...I will reassign them and try again. Thanks
by Valerii
Mon Apr 02, 2018 4:56 pm
Forum: ESP-IDF
Topic: SPI master example strange signals
Replies: 6
Views: 10715

Re: SPI master example strange signals

I have some progress: In idf example I decreased the clock freq to 10kHz and flashed the firmware to ESP32 dev board (ic rev.1) . SPI pin set as in example: https://gyazo.com/dba7b09560c96cf1b9b2b0c1c0b91ad7 Than I changed the pin numbers to be the same as in my board. SPI pin set as in my dev board...
by Valerii
Mon Apr 02, 2018 4:21 pm
Forum: ESP-IDF
Topic: SPI master example strange signals
Replies: 6
Views: 10715

Re: SPI master example strange signals

Hi, my LA has max frequency 100MHz and always performed ok. So I don't think that it is caused by LA. Also I decreased clock freq to 10kHz and there where no changes in signal figure. My SPI pins are: MISO - GPIO_NUM_21, MOSI - GPIO_NUM_5, SCK - GPIO_NUM_19, NSS - GPIO_NUM_25 could this set be reaso...
by Valerii
Mon Apr 02, 2018 3:05 pm
Forum: ESP-IDF
Topic: SPI master example strange signals
Replies: 6
Views: 10715

SPI master example strange signals

Hi, I used the spi master example as reference when developed communication with my SPI slave device. I tried to transfer data through SPI but it seemed to be faulty. Than I took spi master example and just changed GPIO numbers to make it correspondent to my esp32 based board. The signal behavior on...
by Valerii
Tue Feb 20, 2018 11:24 am
Forum: ESP-IDF
Topic: ESP32 ULP assembler I2C_WR
Replies: 1
Views: 3990

ESP32 ULP assembler I2C_WR

Hi, I'm trying to communicate via i2c interface and faced next probem. According to tutorial: I2C_WR 0x20, 0x33, 7, 0, 1 // Write byte 0x33 to sub-address 0x20 of slave with address set in SENS_I2C_SLAVE_ADDR1. In my case I want to readout date from variable and write it to i2c //here var becomes 0x...
by Valerii
Wed Jan 31, 2018 7:46 am
Forum: ESP32 Arduino
Topic: BLE arduino send values over 20 bytes
Replies: 9
Views: 27754

Re: BLE arduino send values over 20 bytes

Hi, the maximum size of single data packet determined by MTU size which is 23bytes for BLE 4.0 (20b of data + 3b protocol wrapper). The MTU size is usually set during connection establishment with "MTU Request" command. I don't know if IDF has the API for this setting but first of all check your and...