Hi All,
I am using the esp32 dev kit version 1. I ported Arduino mega2650 code for esp32 with some modifications in the library. Although it gets complied for esp32 successfully on uploading the code, esp32 gets reset again and again. I'm not able to find the exact reason. Below is the log snippet of the serial monitor with some information.
rst:0x10 (RTCWDT_RTC_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:1
load:0x3fff0030,len:1184
load:0x40078000,len:13220
ho 0 tail 12 room 4
load:0x40080400,len:3028
entry 0x400805e4
ets Jul 29 2019 12:21:46
There could be several reasons why your ESP32 dev kit version 1 is resetting again and again.
The first field in the log indicates the reason for the reset. In this case the value is 0x10, which corresponds to an RTCWDT_RTC_RESET. This means that the reset was triggered by the RTC watchdog timer. The watchdog timer is a hardware feature that can reset the device if it detects the software is stuck or not responding. This can have various reasons, e.g. B. a software error or a hardware problem.
It could also be that too many devices are connected to the 5V.
I hope I could help!
Thanks for your reply.
I am a new user on this forum so, unfortunately, I haven't had permission to upload my code here.
Could you suggest a different way to share the code?
thanks
You could do it via Github, or just as text. But I don't know if there are any restrictions.
Thanks for your reply.
Only one device is connected to 5v, also another example sketch working fine on the same device, it might be an issue with some piece of code stuck. but not able to find that part of the code.
there are multiple files in the project, so I'm going to share it via google drive link or using git.
That's why we're here in the forum, to help!
Alternatively, just press this button at the top
That's a lot of codes! Did you get it from a website?
Without an error message, it's difficult to improve it!
I see no .ino
file. This is the Arduino forum, not the Espressif forum.
Maybe it was forgotten. But according to the libraries, the code should already be for Arduino, shouldn't it?
The problem is with the new ESP32 code, nothing to do with Arduino anymore. ESP32 isn't an Arduino board either.
Actually, Project is made for Mega2650 and it's working fine. Now i have to port it to esp32 for some reason. That why I'm doing this.
earlier it was for Arduino but now I changed some libraries and files to make it compatible foe esp32.
I don't see a .ino
anywhere.