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 ESP-IDF (Read 3628 times)
Damjan
Newbies
*
Offline


Posts: 3
Joined: Feb 18th, 2023
ESP32 ESP-IDF
Feb 19th, 2023 at 11:56am
Print Post  
Hi,

I'm using VM to write and compile code for ESP32. I have two problems.
First, is it possible to use ESP32 ESP-IDF with VM and not Arduino version? If yes, how do I start new project using ESP-IDF?

I have ESP32 board with 16MB flash. If I select bigger partition size from VM menu, say 8MB or 16MB, I do not see any changes when building image. It still displays "Program FreeRTOS size: 275093 bytes (used 21% of a 1310720 byte maximum)".

When I upload the bin, program keeps restarting. If I use default option of 4MB, everything works. How do I select bigger flash size?

Brgds,
Damjan
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12198
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 ESP-IDF
Reply #1 - Feb 19th, 2023 at 4:43pm
Print Post  
IDF: You can only use cores that are compatible with the Arduino framework. 

Flash: Please follow guide in yellow above
  
Back to top
IP Logged
 
maxedthunder
Newbies
*
Offline


Posts: 7
Joined: May 4th, 2023
Re: ESP32 ESP-IDF
Reply #2 - May 5th, 2023 at 12:34am
Print Post  
Tim@Visual Micro wrote on Feb 19th, 2023 at 4:43pm:
IDF: You can only use cores that are compatible with the Arduino framework. 


Newbie here. What do you mean when you say "core"?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12198
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 ESP-IDF
Reply #3 - May 5th, 2023 at 12:58am
Print Post  
A core is usually installed using Board Manager, either in the Arduino IDE or Visual Micro. Board Manaer downloads and installs packages. 

A package consists of a tool chain and core. The core defines code that you can reference such as digitalread(). The tool chain is the .exe files that are used in background to compile and upload.

Esp32 package/core by Espressif (manufacturer of esp32) does use some of IDF under the hood, but that is preset by them.

The esp32 Arduino compatible package allows tools, such as Visual Micro, to know how to power intellisense and compile code.

If you have not installed it already you will find it under the auto-discovery node at the top of the Board Manager. See our docs for how Board Manager works (if need be).
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint