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 How to use a custom core in Visual Micro? (Read 282 times)
Sam Halvoe
Newbies
*
Offline


Posts: 4
Joined: Feb 6th, 2025
How to use a custom core in Visual Micro?
Feb 8th, 2025 at 5:36pm
Print Post  
Hello,

I have compiled the libraries of the ESP32 arduino core with custom settings and want to use this custom core with Visual Micro.
I have just copied the original ESP32 core, renamed the folder and swapped the original library files with my library files.
In the Arduino IDE 2 I am able to select my custom core and compile my project. The custom core is not visible in Visual Micro.
How can I use my custom core with Visual Micro?
Many thanks in advance.
Sam Halvoe (:
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2629
Joined: Feb 13th, 2019
Re: How to use a custom core in Visual Micro?
Reply #1 - Feb 8th, 2025 at 5:43pm
Print Post  
Thanks for the report.

So we can understand further, can you confirm where and what you have renamed, just so we can check why this is not showing up as expected?
  
Back to top
IP Logged
 
Sam Halvoe
Newbies
*
Offline


Posts: 4
Joined: Feb 6th, 2025
Re: How to use a custom core in Visual Micro?
Reply #2 - Feb 8th, 2025 at 6:12pm
Print Post  
I have copied the original esp32 core in the packages folder and replaced the original libraries with my custom libraries.
In the packages folder are the cores (folders) "esp32" and "esp32_halvoe". The second folder contains my custom core.
(That is just from memory, because I am currently not at my laptop to look it up. I can check it tomorrow.)
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2629
Joined: Feb 13th, 2019
Re: How to use a custom core in Visual Micro?
Reply #3 - Feb 8th, 2025 at 6:18pm
Print Post  
Thanks for the detail, and if there is anything else you find let us know.

If all you are doing is overriding the libraries, you should not need a new core at all.

You can clone the libraries from the core, into your Sketchbook\Libraries folder, and make the amendments there.  These will take priority over the same libraries in the core due to the "Location Priority" of the Deep Search process (Arduino CLI Spec).  Both ArduinoIDE and Visual Micro should follow these rules in the same way.

This also has the added benefit of your changes not being lost when updating the board package.
  
Back to top
IP Logged
 
Sam Halvoe
Newbies
*
Offline


Posts: 4
Joined: Feb 6th, 2025
Re: How to use a custom core in Visual Micro?
Reply #4 - Feb 22nd, 2025 at 4:09pm
Print Post  
Still, I would like to use a local core.

I can see my local core in Arduino IDE 2.3.4. (see screenshot 1)
But in Visual Micro I can't see my local core. (see screenshot 2)

What am I doing wrong?
  

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


Posts: 2629
Joined: Feb 13th, 2019
Re: How to use a custom core in Visual Micro?
Reply #5 - Feb 24th, 2025 at 12:19pm
Print Post  
Currently to get this to show up in Visual Micro a dummy package index file needs to be present and listed in the IDE Locations screen:

1) Clone Arduino15\package_esp32_index.json to package_esp32_halvoe_index.json
2) Alter the Top level "name" in the index to esp32_halvoe and save.
3) Add the dummy url http://localhost:1234/package_esp32_halvoe_index.json to the IDE locations screen
4) Click rescan or restart Visual Micro.

We will review this area of functionality and update when there are any changes to this.
  
Back to top
IP Logged
 
Sam Halvoe
Newbies
*
Offline


Posts: 4
Joined: Feb 6th, 2025
Re: How to use a custom core in Visual Micro?
Reply #6 - Mar 1st, 2025 at 6:10pm
Print Post  
Thank you for your answer. I tried like you have written and it worked. (:
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint