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 WeMos LOlin not running (Read 3723 times)
Joao Tavares
Newbies
*
Offline


Posts: 9
Joined: Nov 24th, 2017
ESP32 WeMos LOlin not running
Jun 30th, 2018 at 10:51am
Print Post  
Good morning 
Iam trying the ESP32 for the first time and try to run (release mode) the Lolin32 with the exemple WIFIScan. In the Arduino IDE everything works. in VisualMIcro the sketch compiles, loads on the board but after the message "Hard resetting via RTS pin" nothing happens.
What am I doing wrong?
I am using Arduino 1.8.5 and Visual Studio 2017
Thank you
Joao
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 WeMos LOlin not running
Reply #1 - Jun 30th, 2018 at 3:59pm
Print Post  
If the issue only happens when the serial monitor it open then make sure the RTS checkbox is off in the serial monitor if it isn't already.

Otherwise please switch on vmicro>compiler>verbose and also "show build properties". then build and email the output along with a zip of your code to info[at]visualmicro.com. also include link to this post thanks.
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 WeMos LOlin not running
Reply #2 - Jul 2nd, 2018 at 11:35am
Print Post  
Please upload using Release and not Debug then sent the output.

Thanks
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 WeMos LOlin not running
Reply #3 - Jul 11th, 2018 at 11:36am
Print Post  
Please build and upload in Release mode without debug to prove your config.
  
Back to top
WWW  
IP Logged
 
Joao Tavares
Newbies
*
Offline


Posts: 9
Joined: Nov 24th, 2017
Re: ESP32 WeMos LOlin not running
Reply #4 - Jul 20th, 2018 at 2:51pm
Print Post  
Good afternoon.
I sent some days ago the files you asked.
Today I went on doing some trials and I realized that if I use the Arduino 1.8.5 IDE  I can program the ESP32 as I had already reported but is I then go to the VisualMicro I will receive in the serial port the correct output of the ESP32 (it is running) nevertheless if I change the program on the VisualMicro and then download the result to the ESP32 everything seems to work but the program that is running is the old one (the one programed with the Arduino IDE). It seems that even if the Visual Micro is sending the code to the ESP32 it is not modified and the original programing is the one running.
Hope you can help me.

Best regards

Joao
  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 WeMos LOlin not running
Reply #5 - Jul 21st, 2018 at 10:14am
Print Post  
Hi

Sorry for the delay. We have a lot of users using the esp32 and your output shows the esp32 toolchain is being run by visual micro and that the toolchain is showing upload and correct verify.

The toolchain is entirely responsible for the upload. If you switch on file>preferences>verbose upload in the arduino ide you will see the same toolchain being called with same params

I just made a test and that works fine see below.

So I am sorry but I am confused, I can't see how the esp toolchain can upload but then the previous program is on the esp.

One point to note is that the example code you sent does not contain any code. Just an empty setup() and loop(), maybe that's causing some confusion. I don't know what the toolchain optimizer would do with a project that doesn't do anything. Maybe it just ignores it after upload leaving previous project on chip.


Code
Select All
Uploading 'Sketch44' to 'WEMOS LOLIN32' using 'COM14'
esptool.py v2.3.1
Connecting........_____.....___
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 5957.9 kbit/s)...
Hash of data verified.
Compressed 12480 bytes to 8255...
Writing at 0x00001000... (100 %)
Wrote 12480 bytes (8255 compressed) at 0x00001000 in 0.1 seconds (effective 969.3 kbit/s)...
Hash of data verified.
Compressed 166768 bytes to 86058...
Writing at 0x00010000... (16 %)
Writing at 0x00014000... (33 %)
Writing at 0x00018000... (50 %)
Writing at 0x0001c000... (66 %)
Writing at 0x00020000... (83 %)
Writing at 0x00024000... (100 %)
Wrote 166768 bytes (86058 compressed) at 0x00010000 in 1.4 seconds (effective 924.6 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 144...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (144 compressed) at 0x00008000 in 0.0 seconds (effective 2234.2 kbit/s)...
	The upload process has finished.
Hash of data verified.
Leaving...
Hard resetting via RTS pin... 

  
Back to top
WWW  
IP Logged
 
Joao Tavares
Newbies
*
Offline


Posts: 9
Joined: Nov 24th, 2017
Re: ESP32 WeMos LOlin not running
Reply #6 - Jul 22nd, 2018 at 8:23pm
Print Post  
Good afternoon Tim
I do understand your point. After reading your answer I went back to the trial and after some insistence it just start working. Please don't ask me what I have done because I just repeat what I had done several times before and all of a sudden it just started working.
I have tried several others small program and everything seams fine.
Thank you for your help 

Best regards

Joao
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 WeMos LOlin not running
Reply #7 - Jul 22nd, 2018 at 8:48pm
Print Post  
Great to hear that. Thanks for letting me know.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint