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-C3 program load issue (Read 2320 times)
Gil Tal
Newbies
*
Offline


Posts: 7
Location: Israel
Joined: Mar 31st, 2022
ESP32-C3 program load issue
Mar 31st, 2022 at 12:15pm
Print Post  
Using Visual Studio 2017 with the latest Visual Micro
After compiling and loading the C3 reports an error on SHA256 and restart itself endlessly 
ESP package is 2.0.0
Performing the same on the same PC on Arduino IDE works as it should and the code runs
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: ESP32-C3 program load issue
Reply #1 - Mar 31st, 2022 at 12:48pm
Print Post  
Thanks for the report.

Could you also enable the vMicro > Compiler > Show Build Properties, and upload another build log from vMicro, along with the Serial Monitor output?

If you also upload the log from the Arduino IDE, along with the Serial Monitor output as well (with the File > Preferences > Verbose output during Compilation and Upload checked) it will allow us to compare more easily.

On my environment both Arduino IDE and vMicro report the SHA256 mismatch, however the chip does not restart infinitely.
« Last Edit: Mar 31st, 2022 at 12:51pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Gil Tal
Newbies
*
Offline


Posts: 7
Location: Israel
Joined: Mar 31st, 2022
Re: ESP32-C3 program load issue
Reply #2 - Apr 3rd, 2022 at 11:13am
Print Post  
Attached file with
Arduino output and serial
+ Compile flags as requested
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: ESP32-C3 program load issue
Reply #3 - Apr 4th, 2022 at 1:13pm
Print Post  
Is it the same in vMicro when using the SPIFFS partition layout from the board menu? (ArduinoIDE is showing SPIFFS, vMicro is currently using FFAT)

If you change the vMicro > Debugger > Optimization to "Default Optimization", then running a Build > Clean Solution in Visual Studio, then rebuilding and uploading make any difference?

Can you also confirm which pins (if any) you are using in your sketch, and that these are identical between the Arduino IDE and Visual Micro?

We cannot replicate this currently with our official ESP32C3 board, can you confirm which specific board you have, and if possible provide the sketch as well?
  
Back to top
 
IP Logged
 
Gil Tal
Newbies
*
Offline


Posts: 7
Location: Israel
Joined: Mar 31st, 2022
Re: ESP32-C3 program load issue
Reply #4 - Apr 6th, 2022 at 6:41am
Print Post  
Is it the same in vMicro when using the SPIFFS partition layout from the board menu? (ArduinoIDE is showing SPIFFS, vMicro is currently using FFAT)
## No
If you change the vMicro > Debugger > Optimization to "Default Optimization", then running a Build > Clean Solution in Visual Studio, then rebuilding and uploading make any difference?
##No
Can you also confirm which pins (if any) you are using in your sketch, and that these are identical between the Arduino IDE and Visual Micro?
## I am using the same pins
The board is NodeMCU version
Scatch is attached
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: ESP32-C3 program load issue
Reply #5 - Apr 6th, 2022 at 8:54am
Print Post  
Thanks for the sketch and updated information.   

My board resets every 30s with this sketch due to the infinite looping if pin #1 isn't put high, can you confirm this isn't the issue?

Can you also confirm changing to SPIFFS is still making the board restart constantly? (as you said it isn't the same in the previous reply)

Can you run the Build > Clean Solution again, and then attach the full build output and serial output from the board from vMicro?
(This allows us to see the full compilation process for comparison without any caching)



  
Back to top
 
IP Logged
 
Gil Tal
Newbies
*
Offline


Posts: 7
Location: Israel
Joined: Mar 31st, 2022
Re: ESP32-C3 program load issue
Reply #6 - Apr 6th, 2022 at 9:56am
Print Post  
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: ESP32-C3 program load issue
Reply #7 - Apr 7th, 2022 at 10:56am
Print Post  
Thanks for the detail.

If you upgrade your M5Stack board package to the latest version (2.0.2) does this resolve the issue?

We are working on a fix to the packages conflicting and we will update in the coming days when this is available.
« Last Edit: Apr 7th, 2022 at 12:25pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint