VS Arduino
Visual Micro >> General Board >> ESP32 WeMos LOlin not running
https://www.visualmicro.com/forums/YaBB.pl?num=1530355907

Message started by Joao tavares on Jun 30th, 2018 at 10:51am

Title: ESP32 WeMos LOlin not running
Post by Joao tavares on Jun 30th, 2018 at 10:51am
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

Title: Re: ESP32 WeMos LOlin not running
Post by Visual Micro on Jun 30th, 2018 at 3:59pm
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.

Title: Re: ESP32 WeMos LOlin not running
Post by Visual Micro on Jul 2nd, 2018 at 11:35am
Please upload using Release and not Debug then sent the output.

Thanks

Title: Re: ESP32 WeMos LOlin not running
Post by Visual Micro on Jul 11th, 2018 at 11:36am
Please build and upload in Release mode without debug to prove your config.

Title: Re: ESP32 WeMos LOlin not running
Post by Joao tavares on Jul 20th, 2018 at 2:51pm
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 
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=VisualMicro_OutputWindow.txt ( 2 KB | 2 Downloads )

Title: Re: ESP32 WeMos LOlin not running
Post by Visual Micro on Jul 21st, 2018 at 10:14am
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]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...[/code]

Title: Re: ESP32 WeMos LOlin not running
Post by Joao tavares on Jul 22nd, 2018 at 8:23pm
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

Title: Re: ESP32 WeMos LOlin not running
Post by Visual Micro on Jul 22nd, 2018 at 8:48pm
Great to hear that. Thanks for letting me know.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.