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
Hot Topic (More than 8 Replies) How to add core files to a portable solution? (Read 513 times)
submo
Newbies
*
Offline


Posts: 6
Joined: Jul 20th, 2025
How to add core files to a portable solution?
Jul 20th, 2025 at 5:44pm
Print Post  
Hello,

Bit of a beginner here... Just started with Visual Micro today...

How do I add core files to a project to make it portable after I've created a portable project, but didn't add the core files when creating it (it said I can add them after)? It's for a teensy project if that makes any difference.

I also would like to make some previous projects portable. I've added an arduino-portable folder in the solution folder which seems to work, but again I can't find a way to add the core files.

Thanks.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12198
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to add core files to a portable solution?
Reply #1 - Jul 20th, 2025 at 6:14pm
Print Post  
Hi, when you have a portable solution open you can use board manager and library manager in the normal way. They will install into the solution portable areas using the standard "arduino style" folder structures. The solution simply provides a contained environment for development.
« Last Edit: Jul 20th, 2025 at 6:16pm by Tim@Visual Micro »  
Back to top
IP Logged
 
submo
Newbies
*
Offline


Posts: 6
Joined: Jul 20th, 2025
Re: How to add core files to a portable solution?
Reply #2 - Jul 20th, 2025 at 6:44pm
Print Post  
I'm not sure I get it? I must be doing something wrong?

I can't seem to get the Teensy core files to save with my solution. Also if I try to creat a portable solution from the start. The Teensy core files are not selectable in the wizard even though they are installed.

Heres a very poor video...
https://youtube.com/shorts/X68Yl6nPDjQ?si=DPTo-8LtmZz0HAdG
« Last Edit: Jul 20th, 2025 at 6:45pm by submo »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2758
Joined: Feb 13th, 2019
Re: How to add core files to a portable solution?
Reply #3 - Jul 21st, 2025 at 1:20pm
Print Post  
Can you try changing the IDE Selection to Arduino 2 (if its not in the list of options already, click vMicro > General > IDE Locations, select Arduino 2 and click OK if using default locations, then select Arduino 2 from the vMicro > IDE option).

Then try creating the Portable Solution again...
  
Back to top
IP Logged
 
submo
Newbies
*
Offline


Posts: 6
Joined: Jul 20th, 2025
Re: How to add core files to a portable solution?
Reply #4 - Jul 21st, 2025 at 4:25pm
Print Post  
Thanks....

If I select Arduino 2 I am able to install the core files for the Teensy into my portable solution using the Board manager. I am still however unable to add the Teensy core files when creating a portable solution.

What I was hoping for though was being able to create a portable solution from my Arduino 1.8.19 install as I have a few bug fixes & tweaks to the core files in there, so having to create a portable version with a Vanilla version of the Teensy core files was not what I was after.

I guess I will have to re think my strategy.

  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2758
Joined: Feb 13th, 2019
Re: How to add core files to a portable solution?
Reply #5 - Jul 21st, 2025 at 4:30pm
Print Post  
Thanks for the update, do you have Arduino 2 IDE installed on your machine or just the 1.x IDE?

The 1.x IDE has a different Portable route which also wraps the entire Arduino IDE into it as well (including your board package).  This is the same as in the Arduino 1.x IDE which is documented on their website below:
https://docs.arduino.cc/software/ide-v1/tutorials/PortableIDE/

  
Back to top
IP Logged
 
submo
Newbies
*
Offline


Posts: 6
Joined: Jul 20th, 2025
Re: How to add core files to a portable solution?
Reply #6 - Jul 21st, 2025 at 4:44pm
Print Post  
Hey,

Yes I have Arduino 2 installed with a Vanilla Teensy Core which I use mainly for day to day stuff. I also have an Arduino 1.8.19 IDE set up as a portable version like in that link you posted, with the Teensy core files installed in there using their standalone installer. I've made quite a few tweaks to the Teensy core files in there which are mainly project specific. I mainly use this just to build projects that require the modified core files). I pointed Visual micro to use this portable install of Arduino 1.8.19 , which I hoped I could create another portable solution from in VisualMicro that would include my modified core files which I could then tweak without affecting my original version.
« Last Edit: Jul 21st, 2025 at 4:46pm by submo »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2758
Joined: Feb 13th, 2019
Re: How to add core files to a portable solution?
Reply #7 - Jul 21st, 2025 at 4:55pm
Print Post  
Thanks for the detail.

As you are using the 1.x Portable approach, you should be able to create another project within the Portable\Sketchbook folder, and this will then use the same modified core etc as the other projects within the same Portable folder.

To allow the Teensy files to be installed using the Arduino 2 configuration, with the Portable Solution Wizard, I expect the Teensy boards are not configured for the Arduino 2 IDE to download/install.
1) Open vMicro and open the vMicro > General > IDE Locations Screen
2) Select the "Arduino 2" IDE
3) Enter the URL "https://www.pjrc.com/teensy/package_teensy_index.json" in the Optional Additional Board Manager URLs field.
4) Click OK
5) Open vMicro > Micro Explorer, and click "Check for Updates" to ensure all index.json files are downloaded.

  
Back to top
IP Logged
 
submo
Newbies
*
Offline


Posts: 6
Joined: Jul 20th, 2025
Re: How to add core files to a portable solution?
Reply #8 - Jul 22nd, 2025 at 11:08am
Print Post  
Hello,

So just to clarify.... Creating a portable Teensy solution in Visual Micro from an Arduino 1.8 installation is currently not possible?

I guess an easy workaround is to create a Vanilla Teensy Arduino 2 portable solution in Visual Micro, and then manually replace the Teensy core files in the solution folder with my modified ones.

Just one more question on this... Does creating a portable Teensy solution using Arduino 2 just copy the core files from the ones already installed with my Arduino 2 installation on my hard drive, or does Visual Micro download/install a completely fresh new board package.

TIA
« Last Edit: Jul 22nd, 2025 at 11:19am by submo »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2758
Joined: Feb 13th, 2019
Re: How to add core files to a portable solution?
Reply #9 - Jul 22nd, 2025 at 2:54pm
Print Post  
Quote:
Creating a portable Teensy solution in Visual Micro from an Arduino 1.8 installation is currently not possible?

Currently this is not, due to it being a very specific edge case in that:
  • Teensyduino is installed by an external EXE into the Arduino IDE Folder
  • The Portable Solution Tool uses the package_index.json files for Board Manager to show the board packages available (which wont exist for Teensy as above)
  • The Teensyduino Board Package via Boards Manager is only available in Arduino IDE 2.x


Quote:
I guess an easy workaround is to create a Vanilla Teensy Arduino 2 portable solution in Visual Micro, and then manually replace the Teensy core files in the solution folder with my modified ones.

That would work just as well.

Quote:
Does creating a portable Teensy solution using Arduino 2 just copy the core files from the ones already installed with my Arduino 2 installation on my hard drive, or does Visual Micro download/install a completely fresh new board package.

It downloads a fresh copy of the board package and installs it into the Portable Solution, so you would have to close VS after doing this and manually modify the files installed from your other installations.
  
Back to top
IP Logged
 
submo
Newbies
*
Offline


Posts: 6
Joined: Jul 20th, 2025
Re: How to add core files to a portable solution?
Reply #10 - Jul 22nd, 2025 at 3:34pm
Print Post  
Cool! That clears a few things up for me.

Thank You!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint