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 ESP-C3 binary does not work. (Read 1479 times)
Pontifex Maximus
Newbies
*
Offline


Posts: 6
Joined: Jan 7th, 2023
ESP-C3 binary does not work.
Jan 24th, 2023 at 6:31pm
Print Post  
I use an ESP-C3-12F module. I updated literally everything and created a new empty project containing just the setup and loop method.
I've made two settings:
1) Board: ESP32C3 Dev Module
2) Flash size: 2MB (16Mb)
Partition scheme remains default 4MB as there is no 2MB-setting available.
My IDE is Arduino 2 and tehre, all settings look identical.
Now, if I compile and download using VisualStudio/VisualMicro,
all I got from the ESP is this serial output in a fast endless loop:
*******************
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403cf80c
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5810,len:0x438
load:0x403cc710,len:0x918
load:0x403ce710,len:0x24e4
entry 0x403cc710
***************************
If I compile and download the same project using the Arduino IDE 2.0, all works well!
I found a few bytes different in the compiler output binaries.
Is there a log available to find the difference in compilation?
Any help, any suggestion?
As a workaround, I use Visual Studio to edit and develop, and the Arduino IDE to compile and download, but this is a mess in the long run.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP-C3 binary does not work.
Reply #1 - Jan 24th, 2023 at 6:44pm
Print Post  
Please follow the guide in yellow above
  
Back to top
WWW  
IP Logged
 
Pontifex Maximus
Newbies
*
Offline


Posts: 6
Joined: Jan 7th, 2023
Re: ESP-C3 binary does not work.
Reply #2 - Jan 24th, 2023 at 11:54pm
Print Post  
Done.
  

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP-C3 binary does not work.
Reply #3 - Jan 25th, 2023 at 1:14pm
Print Post  
Thanks, it would be useful to have that output after clicking "Build>rebuild solution"

Also to have same from arduino 2 so we can compare your installations. In arduino1 you can enabled compile verbose via file>preference.

  
Back to top
WWW  
IP Logged
 
Pontifex Maximus
Newbies
*
Offline


Posts: 6
Joined: Jan 7th, 2023
Re: ESP-C3 binary does not work.
Reply #4 - Feb 14th, 2023 at 8:31am
Print Post  
Sorry for not answering in time, I've been on vacation.
It turned out that this is an issue of Arduino IDE V2.03 in combination with the setting "QIO/DIO" of flash mode. (The ESP32 board manager V2.06 is not meant here, its just the Arduino IDE V2.03) Maybe it only regards the ESP32-C3 with 2MB flash.
As I found in a forum on github, this is fixed with Arduino IDE V2.04 which is available as a nightly build on github.
Here is  alink:
https://github.com/platformio/platform-espressif32/issues/821

I assume, the next VisualMicro build will contain the fix automatically, whatever the fix is.
So I treate this case as closed and hope for a fast update of VisualMicro.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: ESP-C3 binary does not work.
Reply #5 - Feb 14th, 2023 at 9:50am
Print Post  
No problem and thanks for the link.

That PlatformIO Issue mentioned links accross to the ESP32 Arduino Board Package Issue below, which is apparently fixed since v2.0.4 of the board package which is used by vMicro and Arduino IDE:
https://github.com/espressif/arduino-esp32/issues/6862

From your logs you are already on v2.0.6 of the board package, so this in theory shouldn't be an issue.

From the issue reports its related to the partition scheme or flash mode of the uploader, have you tried:
  • Changing the flash mode to QIO?
  • Changing the Partition Scheme to Minimal (1.3MB APP/700KB SPIFFS)?
  • Rolling the ESP32 Board Package back to 2.0.5 or 2.0.4 and repeating the above?

  
Back to top
 
IP Logged
 
Pontifex Maximus
Newbies
*
Offline


Posts: 6
Joined: Jan 7th, 2023
Re: ESP-C3 binary does not work.
Reply #6 - Feb 15th, 2023 at 3:47pm
Print Post  
You are right, the mentioned problem seems to not have that relation to my described issue as I assumed. It was a lot of confusion out there cause additionally to the issues of Arduino Studio, my HW-Design did not work reliable, the serial connection and power supply had issues as well.... And last but not least, a connected chip (ULN2003N) fooled some strapping pins. The confusion about strapping pin is incredible if you read all available documentation of Espressif and the module manufacturers.
Nevertheless, it works now, without any update of visualmicro plugin. 
What I did (if someone encounters the same problem):
- I udated Arduino to IDE 2.04nightly-20230213
- ESP board manager 2.0.6
- Select ESP32C3 Dev Module
Settings:
- USB CDC on boot: disabled
- Flash mode: QIO
- Flash size: 2MB
- Partition Scheme: Minimal (1,3 MB App...)
And I guess the last setting was where I failed most of the times.

So let me thank you for your support. It was, obviously, the right choice to develop with visualmicro. I will make a YT about that some day.
« Last Edit: Feb 15th, 2023 at 3:51pm by Pontifex Maximus »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: ESP-C3 binary does not work.
Reply #7 - Feb 15th, 2023 at 4:24pm
Print Post  
Glad we could be of assistance, and let us know if you need anything when you come to make your YT video.

The specific update to the Arduino IDE should be irrelevant in this scenario, as Visual Micro only uses the settings information from it, and nothing else.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint