Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looping Reboot #91

Open
Samuel-ZDM opened this issue Aug 10, 2021 · 2 comments
Open

Looping Reboot #91

Samuel-ZDM opened this issue Aug 10, 2021 · 2 comments

Comments

@Samuel-ZDM
Copy link

Samuel-ZDM commented Aug 10, 2021

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
Copy link
Author

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

@rdrill
Copy link

rdrill commented Oct 17, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants