Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ESP32-S2 boot loop (Read 2490 times)
danieldk
Junior Member
**
Offline


Posts: 11
Joined: Jun 18th, 2013
ESP32-S2 boot loop
Apr 6th, 2022 at 6:19pm
Print Post  
This might be related to https://www.visualmicro.com/forums/YaBB.pl?num=1648728959

When I compile and upload a sketch using Arduino IDE it works as expected, When I compile and upload that same sketch via Visualmicro, the ESP32-S2 doesnt boot up( keeps rebooting )

As far as I can tell the config in Arduino IDE is the same as in Visualmicro.

Arduino version : 1.8.19
ESP32 core version : 2.0.2 and 2.0.3-RC1
Sketch : "BlinkWithoutDelay" example in Arduino IDE.

Board : Sparkfun ESP32-S2 Thing plus ( ESP32 WROOM with a CP2102 USB-Serial converter, LED on Arduino pin 13 )
VS: Visual studio community 2019 (Version 16.11.11)
VM: 2022.218.1900
Output of serial monitor when I upload with VS:
Code
Select All
Opening port
Port open
_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x4005129e
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x510
load:0x4004c000,len:0xa50
load:0x40050000,len:0x28bc
entry 0x4004c18c
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x4005129e
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x510
load:0x4004c000,len:0xa50
load:0x40050000,len:0x28bc
entry 0x4004c18c
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
... 


Output from the build attached in as a txt file ( from VM as well as Arduino )
« Last Edit: Apr 6th, 2022 at 6:39pm by danieldk »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: ESP32-S2 boot loop
Reply #1 - Apr 7th, 2022 at 10:13am
Print Post  
Thanks for the report and the detail.

Can you list which board package URLs you have in Visual Micro, and in the Arduino IDE?
« Last Edit: Apr 7th, 2022 at 11:10am by Simon@Visual Micro »  
Back to top
 
IP Logged
 
danieldk
Junior Member
**
Offline


Posts: 11
Joined: Jun 18th, 2013
Re: ESP32-S2 boot loop
Reply #2 - Apr 7th, 2022 at 3:29pm
Print Post  
sure :
in Arduino :
Code
Select All
http://arduino.esp8266.com/stable/package_esp8266com_index.json
https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json
http://download.labs.mediatek.com/package_mtk_linkit_index.json
http://digistump.com/package_digistump_index.json
https://dl.espressif.com/dl/package_esp32_index.json
https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
https://github.com/stm32duino/BoardManagerFiles/raw/master/package_stmicroelectronics_index.json
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json 



The "Optional additional boards manager urls (url,url2 ... )"
in VM is empty ( The one accessed via "Configure IDE Locations" )
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32-S2 boot loop
Reply #3 - Apr 9th, 2022 at 11:56am
Print Post  
Sorry for the delay with this. There is an issue we are currently working to resolve with packages that use the same platform name but defined additional build hooks. The sparkfun esp32 and the standard esp32 are examples of this.

https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manag...

In the current release it is possible to configure these two packages to work alonside each other but we are working on the correct solution which will work out of the box (as it should).

If you are not using the sparkfun esp32 boards then temporarily removing the board url will fix.

Thanks for the report.
  
Back to top
WWW  
IP Logged
 
danieldk
Junior Member
**
Offline


Posts: 11
Joined: Jun 18th, 2013
Re: ESP32-S2 boot loop
Reply #4 - Apr 12th, 2022 at 5:05pm
Print Post  
Hi Tim
It works !
Thank you very much !

I have removed the sparkfun ESP32 references form my arduino IDE boards manager

And also uninstalled the sparkfun platform ( ESP32-S2 Thing plus is available in the reguar ESP32 download now, so need need for Sparkfun definitions anymore for this board )
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint