Search found 1365 matches

by Ritesh
Fri May 10, 2019 3:07 am
Forum: ESP-IDF
Topic: Panic on i2c operation when powering off the board
Replies: 8
Views: 7880

Re: Panic on i2c operation when powering off the board

I seem to have figured it out. I got carried away from the real problem because of the backtrace; the problem had nothing to do with interrupts, I was using a variable declared as extern uint8_t* while in reality it is an uint8_t array (as opposed to a pointer ). As a result the i2c driver was dere...
by Ritesh
Wed May 08, 2019 8:20 am
Forum: ESP-IDF
Topic: Panic on i2c operation when powering off the board
Replies: 8
Views: 7880

Re: Panic on i2c operation when powering off the board

I checked out the master branch (commit df61612f8ffeb61ac46ad9dbfcf6bd00e691a920) with more or less the same result: Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. Core 1 register dump: PC : 0x40083b6f PS : 0x00060031 A0 : 0x80083ef1 A1 : 0x3ffb1110 0x40083b6f: i2...
by Ritesh
Sun May 05, 2019 5:02 pm
Forum: General Discussion
Topic: Wait microsecond
Replies: 8
Views: 56077

Re: Wait microsecond

The arduino-esp32 core achieves this using the following code for the delayMicroseconds() func. #include "freertos/FreeRTOS.h" #define NOP() asm volatile ("nop") unsigned long IRAM_ATTR micros() { return (unsigned long) (esp_timer_get_time()); } void IRAM_ATTR delayMicroseconds(uint32_t us) { uint3...
by Ritesh
Sun May 05, 2019 9:08 am
Forum: ESP-IDF
Topic: Android hotspot requires restarting for ESP32 to reconnect or fails: auth -> init (200) [solved:update to latest master]
Replies: 47
Views: 44369

Re: Android hotspot requires restarting for ESP32 to reconnect or fails: auth -> init (200) [solved:update to latest mas

Hi ESP32 SDK Developer, We are using ESP32 IDF 2.1 Stable Release and STA Disconnection issue has been fixed into ESP32 IDF 3.1 Stable Release. So, I have checked fixes with details and found that issue has been fixed into ESP32 Core Library. I have tried to back port into ESP32 IDF 2.1 which we are...
by Ritesh
Fri May 03, 2019 5:39 pm
Forum: ESP-IDF
Topic: ESP BLE Mesh v0.6 Released, SIG Certified
Replies: 55
Views: 83173

Re: ESP BLE Mesh v0.6 Released, SIG Certified

We are glad to announce that ESP BLE Mesh (v0.6) , certified by SIG, has been released. Since the release of the first beta version of ESP BLE MESH (v0.5), we have received many helpful feedbacks and suggestions, and building on these valuable inputs, we updated our SDK into ESP BLE Mesh (v0.6). Sp...
by Ritesh
Fri May 03, 2019 5:32 pm
Forum: ESP-IDF
Topic: Panic on i2c operation when powering off the board
Replies: 8
Views: 7880

Re: Panic on i2c operation when powering off the board

Sorry for the delay, I'm working with the release/3.2 branch. Also, Did you check with commenting I2C begin static code line just to verify that you are facing issue particularly on that call or not? Yes, I can confirm that there is no problem if I comment out the i2c_master_cmd_begin function. Hi,...
by Ritesh
Sun Apr 28, 2019 9:58 am
Forum: ESP-IDF
Topic: Faster, optimized ESP-IDF fork + PSRAM Issues
Replies: 21
Views: 25343

Re: Faster, optimized ESP-IDF fork + PSRAM Issues

FWIW, we've been trying some workarounds and I'm pretty sure we can find a set of rules to make these problems go away, but the devs responsible (mostly me) have been doing other high-prio things as well. I'm hoping I can find time to finally finish this in the next few weeks. Hi, Would you please ...
by Ritesh
Sun Apr 28, 2019 9:49 am
Forum: Hardware
Topic: SPI pull down CS
Replies: 3
Views: 4888

Re: SPI pull down CS

Hey everyone, I've got my SPI init code defined as the following: #define GPIO_MOSI 21 #define GPIO_MISO 14 #define GPIO_SCLK 12 #define GPIO_CS 22 ESP_LOGI(TAG1,"Started master SPI"); esp_err_t ret; spi_device_handle_t handle; //Configuration for the SPI bus spi_bus_config_t buscfg={ .mosi_io_num=...
by Ritesh
Sun Apr 28, 2019 9:34 am
Forum: ESP-IDF
Topic: newlib functions
Replies: 3
Views: 3824

Re: newlib functions

I am trying for a while now to find out how to include newlib functions in my gdb debug session but in vain. when i step into printf function for instance, i only get the file name and the line number like "../../../newlib/libc/stdio/puts.c " : line 15 Anyone know how to step into newlib function t...
by Ritesh
Sun Apr 28, 2019 9:32 am
Forum: ESP-IDF
Topic: Panic on i2c operation when powering off the board
Replies: 8
Views: 7880

Re: Panic on i2c operation when powering off the board

Hello everyone, I'm working on a project that needs to save data in a permanent storage (in the form of an external I2C EEPROM) when powered down. To achieve that, I have an interrupt set up on IO34 that notifies me when voltage is falling before is too late. I have approximately 200 ms from the in...