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 does vmicro "know" about boards and processors? (Read 4740 times)
bonky
Junior Member
**
Offline


Posts: 16
Joined: Jul 24th, 2022
How does vmicro "know" about boards and processors?
Jul 28th, 2022 at 3:33pm
Print Post  
Hello,
  My Visual Micro installation has lost the range of PJRC "Teensy" processors.  It worked a few days ago.  Now, the list of boards and processors does not include the Teensy range anymore.  This is no doubt due to me messing around with other IDEs and installing other software - yesterday I upgraded my Teensyduino installation to the new 1.57.   So:  Where - physically - does Visual Micro keep its information about the boards and processors it knows about?  Or more to the point - how do I fix it?  Thanks in advance...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How does vmicro "know" about boards and processors?
Reply #1 - Jul 28th, 2022 at 3:40pm
Print Post  
Teensy is different to most, it installs into a specific arduino ide program location

In Visual Micro make sure you point the arduino 1.6-1.8 IDE location to the folder where the arduino.exe exists for the installation that contains the teensy platform.

https://www.visualmicro.com/page/User-Guide.aspx?doc=First-steps.html
  
Back to top
WWW  
IP Logged
 
bonky
Junior Member
**
Offline


Posts: 16
Joined: Jul 24th, 2022
Re: How does vmicro "know" about boards and processors?
Reply #2 - Jul 28th, 2022 at 5:04pm
Print Post  
Tim@Visual Micro wrote on Jul 28th, 2022 at 3:40pm:
Teensy is different to most, it installs into a specific arduino ide program location

In Visual Micro make sure you point the arduino 1.6-1.8 IDE location to the folder where the arduino.exe exists for the installation that contains the teensy platform.

https://www.visualmicro.com/page/User-Guide.aspx?doc=First-steps.html


The Visual Micro IDE setup screen does point to the correct location for Arduino 1.8 ( actually 1.8.13 ).  When I start up that Arduino IDE directly, the Teensy is supported.
What should I look for in the specific directory?

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


Posts: 2175
Joined: Feb 13th, 2019
Re: How does vmicro "know" about boards and processors?
Reply #3 - Jul 28th, 2022 at 5:10pm
Print Post  
In the folder pointed to in the IDE Locations screen, do you have a hardware\teensy\avr folder below it?

When it works in the Arduino IDE directly, is this running from the same Arduino folder you are pointing Visual Micro to in the IDE Locations screen?
  
Back to top
 
IP Logged
 
bonky
Junior Member
**
Offline


Posts: 16
Joined: Jul 24th, 2022
Re: How does vmicro "know" about boards and processors?
Reply #4 - Jul 28th, 2022 at 5:23pm
Print Post  
There is a directory -

    Directory: C:\Program Files (x86)\Arduino\hardware\teensy\avr


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----         4/23/2021   4:24 PM                cores
d-----         7/27/2022   3:18 PM                libraries
-a----         7/27/2022   3:18 PM          95301 boards.txt
-a----         7/27/2022   3:18 PM          10987 keywords.txt
-a----         7/27/2022   3:18 PM           7589 platform.txt
  
Back to top
 
IP Logged
 
bonky
Junior Member
**
Offline


Posts: 16
Joined: Jul 24th, 2022
Re: How does vmicro "know" about boards and processors?
Reply #5 - Jul 28th, 2022 at 5:26pm
Print Post  
I tried running VS as administrator - just in case there was a permissions problem.  No difference.
  
Back to top
 
IP Logged
 
bonky
Junior Member
**
Offline


Posts: 16
Joined: Jul 24th, 2022
Re: How does vmicro "know" about boards and processors?
Reply #6 - Jul 28th, 2022 at 5:28pm
Print Post  
Note that the file dates are 7/27, aka yesterday.
  
Back to top
 
IP Logged
 
bonky
Junior Member
**
Offline


Posts: 16
Joined: Jul 24th, 2022
Re: How does vmicro "know" about boards and processors?
Reply #7 - Jul 28th, 2022 at 5:32pm
Print Post  
Teensy 4.1 portion of "boards.txt".  Window wouldn't let me paste the whole file.

----------- snip -------------------------------------
# Solution for Arduino IDE 2.0 recognizing changes to this file:
# https://github.com/arduino/arduino-ide/issues/1030#issuecomment-1152005617
« Last Edit: Jul 28th, 2022 at 7:04pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How does vmicro "know" about boards and processors?
Reply #8 - Jul 28th, 2022 at 7:06pm
Print Post  
If you send large output then please use the yellow box above to email with link to the post. We usually need to see it all.

We have not tested teensy with the arduino 2 ide yet. That sounds like it's still beta.

I think it should work fine with the Arduino 1.6-1.8 entry in Visual Micro alongside the latest Arduino 1.8 IDE?

Following the guide in the box above and/or providing screen shot of the ide with the apps and boards list showing will allow to understand what you are using.
« Last Edit: Jul 28th, 2022 at 7:08pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
bonky
Junior Member
**
Offline


Posts: 16
Joined: Jul 24th, 2022
Re: How does vmicro "know" about boards and processors?
Reply #9 - Jul 28th, 2022 at 7:56pm
Print Post  
I am not trying to use Arduino 2.0 with this - still have it set to 1.8 in VM.  Interestingly, somebody on the PJRC forum says it works for him.  He said and I quote:

"Works ok for me. VM + VS 22 "

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How does vmicro "know" about boards and processors?
Reply #10 - Jul 28th, 2022 at 9:37pm
Print Post  
Ah okay, yes Teensy is standard for Visual Micro.

Can you please select the "Uno Board" from the board list and click build after following the guide in yellow above.

We understand there is new beta out for teensyduino, we haven't tested it yet. That will happen the next few days, maybe that is the issue. If that is the issue then the release version will be fine. The build output will help anyway thanks.

« Last Edit: Jul 28th, 2022 at 9:40pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
bonky
Junior Member
**
Offline


Posts: 16
Joined: Jul 24th, 2022
Re: How does vmicro "know" about boards and processors?
Reply #11 - Jul 28th, 2022 at 10:43pm
Print Post  
Compiling debug version of 'Teensy Tryit' for 'Arduino Uno                                                                                                                       (uno)'
Build Folder: "file:///C:/Users/jerry/AppData/Local/Temp/VMBuilds/Teensy%20Tryit/uno/Debug"
Program size: 3,132 bytes (used 10% of a 32,256 byte maximum) (1.00 secs)
Minimum Memory Usage: 306 bytes (15% of a 2048 byte maximum)
 
Uploading 'Teensy Tryit' to 'Arduino Uno                                                                                                                       (uno)' using 'COM17'
  
Back to top
 
IP Logged
 
bonky
Junior Member
**
Offline


Posts: 16
Joined: Jul 24th, 2022
Re: How does vmicro "know" about boards and processors?
Reply #12 - Jul 28th, 2022 at 10:58pm
Print Post  
If this was a Linux system, I would try to use "strace" to find out what disk accesses VM was making.  Don't have a clue as to how to do that in Windows.

Just for yuks, I tried adding the Teensy 4.1 stuff to the regular Arduino boards.txt.  No change.  Doesn't seem to actually be using that file.  To verify, I typed a big fat syntax error into it - if VM was using it, it would surely crash.   No effect.


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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How does vmicro "know" about boards and processors?
Reply #13 - Jul 28th, 2022 at 11:03pm
Print Post  
Can you please follow the guide in yellow above so that we can see the verbose build output along with the build properties. The yellow box mentions the two properties that need to be enabled and how to paste into a .txt file and attach or email. 

That will answer all the questions.

Thanks

ps: It's best not to alter any config.
« Last Edit: Jul 28th, 2022 at 11:48pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
bonky
Junior Member
**
Offline


Posts: 16
Joined: Jul 24th, 2022
Re: How does vmicro "know" about boards and processors?
Reply #14 - Jul 30th, 2022 at 4:08pm
Print Post  
Compile?  I can't even choose my CPU.  What should I compile it with?



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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How does vmicro "know" about boards and processors?
Reply #15 - Jul 30th, 2022 at 4:21pm
Print Post  
Ah we thought it was just the teensy boards you couldn't see or select.

1)
Please give scree shot if IDE showing the vMicro menu.

2)
Please open the IDE locations window and send us a screen shot. The IDE location can be accessed by dropping down the apps list or opening the vMicro > Platform Explorer then clicking IDE locations.

Thanks
  
Back to top
WWW  
IP Logged
 
bonky
Junior Member
**
Offline


Posts: 16
Joined: Jul 24th, 2022
Re: How does vmicro "know" about boards and processors?
Reply #16 - Jul 30th, 2022 at 4:59pm
Print Post  
By "Can't choose my CPU - I mean I can't choose any Teensy card.  Because they're not in the list.
The IDE location is 
C:\Program Files (x86)\Arduino

Browsing with WSL, even though this is a Windows machine:

Inside that directory, we have:

jerry@DESKTOP-JCRMIVR:/mnt/c/Program Files (x86)/Arduino$ ls
arduino-builder.exe    drivers   libraries     revisions.txt
arduino.exe            examples  libusb0.dll   tools
arduino.l4j.ini        hardware  msvcp100.dll  tools-builder
arduino_debug.exe      java      msvcr100.dll  uninstall.exe
arduino_debug.l4j.ini  lib       reference     wrapper-manifest.xml
jerry@DESKTOP-JCRMIVR:/mnt/c/Program Files (x86)/Arduino$

Inside "hardware" we have:

dr-xr-xr-x 1 jerry jerry 4096 Jul 28 15:48 arduino
-r-xr-xr-x 1 jerry jerry 9946 Jun 16  2020 package_index_bundled.json
-r-xr-xr-x 1 jerry jerry 7194 Jun 16  2020 platform.keys.rewrite.txt
dr-xr-xr-x 1 jerry jerry 4096 Jul 28 15:48 teensy
dr-xr-xr-x 1 jerry jerry 4096 Jul 27 15:18 tools


Drilling down into teensy/avr, we have:
-r-xr-xr-x 1 jerry jerry 95301 Jul 27 15:18 boards.txt
dr-xr-xr-x 1 jerry jerry  4096 Apr 23  2021 cores
-r-xr-xr-x 1 jerry jerry 10987 Jul 27 15:18 keywords.txt
dr-xr-xr-x 1 jerry jerry  4096 Jul 27 15:18 libraries
-r-xr-xr-x 1 jerry jerry  7589 Jul 27 15:18 platform.txt

I tried uninstalling Visual Studio and reinstalling it & Vmicro, no difference.

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
bonky
Junior Member
**
Offline


Posts: 16
Joined: Jul 24th, 2022
Re: How does vmicro "know" about boards and processors?
Reply #17 - Jul 30th, 2022 at 5:06pm
Print Post  
In addition, I can say that the Arduino 1.8 IDE itself works fine.  Although I have moved on to 2.0 on that.

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How does vmicro "know" about boards and processors?
Reply #18 - Jul 30th, 2022 at 6:01pm
Print Post  
Please select the "Arduino Uno" board from the list and follow the guide in yellow above.

Thanks
  
Back to top
WWW  
IP Logged
 
bonky
Junior Member
**
Offline


Posts: 16
Joined: Jul 24th, 2022
Re: How does vmicro "know" about boards and processors?
Reply #19 - Jul 30th, 2022 at 6:37pm
Print Post  
Here it is...
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
bonky
Junior Member
**
Offline


Posts: 16
Joined: Jul 24th, 2022
Re: How does vmicro "know" about boards and processors?
Reply #20 - Jul 30th, 2022 at 7:03pm
Print Post  
OK, I fixed it.  In "Configure IDE Locations" I typed in 

C:\Program Files (x86)\Arduino\hardware\teensy\avr

into the fourth field, which is called "Optional physical folder for downloaded board packages"
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How does vmicro "know" about boards and processors?
Reply #21 - Jul 30th, 2022 at 9:07pm
Print Post  
You should leave that path empty. The built-in avr folder of an arduino installation is the wrong place for it.

It is simple to configure, only the IDE location for the 1.6-1.8 app needs to be configure to the folder where the arduino.exe is installed. When you installed Teensy it adds other files and folders below the hardware folder of the arduino installation you select during the teensy install.  Visual Micro discovers the installation because it adheres to the arduino 3rd part hardware standard,

Teensy does not use downloaded packages it has it's own bespoke install.

The issue you have had is that the arduino ide location is incorrect or you have the vMicro>App selection set to something other than the Arduino 1.6-1.8 app. This is why I wanted to see the vMicro menu.

If you have a standard arduino and teensy installation then the fact the change you made works probably meant that Visual Micro detected you wanted to use the 1.6-1.8 app and auto switched to it.

When a project is open the apps list is also visible on the tool bar. 

If you have continued problems then please always follow our request to show screen shot because otherwise things can take a long time to resolve.

The build output in the yellow box for a teensy build would be useful just so that we can clear up the issue with full understanding.

Thanks

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How does vmicro "know" about boards and processors?
Reply #22 - Aug 9th, 2022 at 4:32pm
Print Post  
Off-Topic replies have been moved to this Topic.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 
Send TopicPrint