Search found 30 matches

by trustmiao
Fri Jun 14, 2019 9:28 am
Forum: ESP32 IDF
Topic: how can We get count of restarts after flash the firmware
Replies: 0
Views: 107

how can We get count of restarts after flash the firmware

We wish to save settings into nvs, but maintain a factorysettings which can be restored on requirement. Therefore, we wish we could save the factorysettings(coded in) into nvs on the first reboot after flash, and then read the nvs for settings after every other reboot. is there a way to make such a ...
by trustmiao
Thu May 16, 2019 6:24 am
Forum: ESP32 Arduino
Topic: read from i2c failed 80 percent chance, after couple reboot it works
Replies: 7
Views: 1447

Re: read from i2c failed 80 percent chance, after couple reboot it works

madmax__ wrote:
Thu Feb 14, 2019 10:39 am
FYI,

its working now, bno requires i2c clock stretching and the default value was hard coded in the i2c driver. after increasing the value, it started working.
As we are still struggling with stable i2c connection, may I ask, which value did you play with
by trustmiao
Fri May 10, 2019 8:33 am
Forum: ESP32 IDF
Topic: abort (at locks.c:81) while create mutex during i2c implement
Replies: 2
Views: 258

Re: abort (at locks.c:81) while create mutex during i2c implement

thanks alot, problem solved, we should not i2c_cmd_link_create twice.
by trustmiao
Thu May 09, 2019 8:37 am
Forum: ESP32 IDF
Topic: abort (at locks.c:81) while create mutex during i2c implement
Replies: 2
Views: 258

abort (at locks.c:81) while create mutex during i2c implement

while we test basic i2c functions, esp32 reset around every 7000 loops. back trace point to xSemaphoreHandle new_sem = xQueueCreateMutex(mutex_type); if (!new_sem) { abort(); /* No more semaphores available or OOM */ } in locks.c here is the code, very basic i2c functions: #include <stdio.h> #includ...
by trustmiao
Wed May 08, 2019 11:28 am
Forum: ESP32 IDF
Topic: how to debug while esp32 restart without providing information
Replies: 1
Views: 172

Re: how to debug while esp32 restart without providing information

through debug line by line, we are certain, it silently crashes at

Code: Select all

i2c_master_stop(cmd);
cmd is defined as i2c_cmd_handle_t cmd = i2c_cmd_link_create();

it continuously happend in differnt part of program but same when runing i2c_master_stop(). Any suggestion can I get?
by trustmiao
Wed May 08, 2019 9:28 am
Forum: ESP32 IDF
Topic: how to debug while esp32 restart without providing information
Replies: 1
Views: 172

how to debug while esp32 restart without providing information

We are writing around i2c and uart functions, which gets data from i2c and send to uart. However, it restarts, after a while, without giving any information(or maybe we don't know yet how to acquire the information). ets Jun 8 2016 00:22:57 rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) conf...
by trustmiao
Thu Mar 21, 2019 9:07 am
Forum: General Discussion
Topic: idf i2c scanner could not find device(while arduino ide can)
Replies: 1
Views: 800

Re: idf i2c scanner could not find device(while arduino ide can)

as a record, I solve the problem by adjusting
I2C[i2c_num]->timeout.tout = 200000;
in driver/i2c.c - i2c_param_config:

I got answer from
by trustmiao
Thu Mar 21, 2019 9:05 am
Forum: General Discussion
Topic: IDF i2c issues, unable to find device on bus
Replies: 8
Views: 2191

Re: IDF i2c issues, unable to find device on bus

Though this is an old post, I wish very much to know whether/what solution did you find. I've experienced exactly the same trouble while I am trying connecting to BNO 080. I also found i2c in arduino ide, but not idf. here is the post I described my scenario, but no lock no answer. https://www.esp3...
by trustmiao
Thu Mar 21, 2019 7:50 am
Forum: General Discussion
Topic: IDF i2c issues, unable to find device on bus
Replies: 8
Views: 2191

Re: IDF i2c issues, unable to find device on bus

Though this is an old post, I wish very much to know whether/what solution did you find. I've experienced exactly the same trouble while I am trying connecting to BNO 080. I also found i2c in arduino ide, but not idf. here is the post I described my scenario, but no lock no answer. https://www.esp32...
by trustmiao
Sat Mar 16, 2019 9:44 am
Forum: General Discussion
Topic: idf i2c scanner could not find device(while arduino ide can)
Replies: 1
Views: 800

idf i2c scanner could not find device(while arduino ide can)

I used to program in arduino ide, and i2c works fluently. Wire.begin(22,21,400000); Wire.setClock(400000); Scanning I2C Addresses .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .....

Go to advanced search