how to debug while esp32 restart without providing information

trustmiao
Posts: 30
Joined: Mon Aug 06, 2018 5:16 am

how to debug while esp32 restart without providing information

Postby trustmiao » Wed May 08, 2019 9:28 am

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

Code: Select all

ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:4168
It happens while reading/writing i2c. what shall we do to find out the cause of restart? thanks many in advance

trustmiao
Posts: 30
Joined: Mon Aug 06, 2018 5:16 am

Re: how to debug while esp32 restart without providing information

Postby trustmiao » Wed May 08, 2019 11:28 am

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?

Who is online

Users browsing this forum: No registered users and 21 guests