things4u / ESP-1ch-Gateway

Version 6 of the single channel gateway
MIT License
364 stars 147 forks source link

Looping Reboot #91

Open Samuel-ZDM opened 3 years ago

Samuel-ZDM commented 3 years ago

Hi!

I downloaded the new version of ESP32 1 channel gateway to test sending data to TTN V3, but after writing the code in ESP32 it is looping reboot.

I've tested other code on it, but it doesn't. With previous versions this had never happened.

I'm using VSCode with PlatformIO on linux manjaro. platformio.ini:

[env:Gateway_38] platform = espressif32 board = heltec_wifi_lora_32 framework = arduino lib_deps = sandeepmistry/LoRa @ ^0.8.0 build_flags = -D _WIFIMANAGER=0 -D _SPIFFS_FORMAT=0 -D _OLED=0 -D _DUSB=1 -D _PROFILER=1 -D _STRICT_1CH=1 -D _MAXSEEN=10 -D _STAT_LOG=0 -D _LOCALSERVER=2 -D _BUF_WRITE=0 -D _EXPERT=1 ; -D _JSONENCODE=1 upload_protocol = esptool ;board_upload.flash_size = 8MB ;board_upload.maximum_size=8388608 board_build.flash_mode = qio upload_speed = 115200 monitor_speed = 115200 ;upload_port = 192.168.2.38

The output of the serial:

rst:0x10 (RTCWDT_RTC_RESET),boot:0x17 (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:QIO, clock div:2 load:0x3fff0018,len:4 load:0x2ab2bb1a,len:-853420031 1162 mmu set 00010000, pos 00010000 1162 mmu set 00020000, pos 00020000 1162 mmu set 00030000, pos 00030000

Thank you very much!

Samuel-ZDM commented 3 years ago

I tested sending the code through Arduino IDE and it worked, I don't know what I'm doing wrong on platformIO.

rdrill commented 1 year ago

Hello, I had the same issue. To solve this, just comment-out the following lines:

upload_protocol = esptool
board_build.flash_mode = qio
upload_speed = 115200
monitor_speed = 115200

The board_build.flash_mode = qio option did something wrong with flash. Other options are making troubles with just normal USB flashing.