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 Errors compiling my teensy 4.1 program (Read 392 times)
fluxanode
Junior Member
**
Offline


Posts: 17
Joined: Oct 5th, 2020
Errors compiling my teensy 4.1 program
Jan 24th, 2025 at 12:01am
Print Post  
My source code compiles and loads fine when compiled with Arduino 2.3.4 for teensy 4.1 but does not on VMicro.  Output file attached.

Can you help?

From Errors Tab:

114:46: error: expected primary-expression before '>' token
114:17: error: 'is_arithmetic_v' is not a member of 'std
114:47: error: expected primary-expression before ',' token
118:6: error: expected '(' before 'constexpr
120:6: error: expected '(' before 'constexpr
invalid second parameter type ("unsigned int") for literal operator; must be size_t
invalid second parameter type ("unsigned int") for literal operator; must be size_t
invalid second parameter type ("unsigned int") for literal operator; must be size_t
invalid second parameter type ("unsigned int") for literal operator; must be size_t
first parameter of allocation function must be of type 'size_t'
first parameter of allocation function must be of type 'size_t'
first parameter of allocation function must be of type 'size_t'
first parameter of allocation function must be of type 'size_t'
first parameter of allocation function must be of type 'size_t'
first parameter of allocation function must be of type 'size_t'
__attribute__((fallthrough))
__attribute__((fallthrough))
is_integral_v<period_t>)       \\ handles all integral types
is_floating_point_v<period_t>) \\ handles all float types
is_arithmetic_v<period_t>, "Period must be arithmetic")
is_arithmetic_v<period_t>, "Period must be arithmetic")
is_arithmetic_v<period_t>, "Period must be arithmetic")
from
In member function uint32_t IntervalTimer::cyclesFromPeriod(period_t) [with period_t = float; uint32_t = long unsigned int]
In member function uint32_t IntervalTimer::cyclesFromPeriod(period_t)
124:2: warning: control reaches end of non-void function [-Wreturn-type]
In function endpoint0_setup
537:3: warning: empty declaration
595:3: warning: empty declaration
  

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


Posts: 2628
Joined: Feb 13th, 2019
Re: Errors compiling my teensy 4.1 program
Reply #1 - Jan 24th, 2025 at 9:32am
Print Post  
Thanks for the report.

After installing the Beta board package from: https://www.pjrc.com/teensy/td_160-beta3/package_teensy_0.60.3_index.json

Your log shows teensy-compile v1.56.1, which in this version should be v11.3.1, and it seems there are various other teensy tools all installed side by side.

Did you install Teensyduino via the Arduino IDE, or in Visual Micro?

Can you try:
1) Uninstall the board package
2) Delete the c:\Users\ChuckW\AppData\Local\Arduino15\packages\teensy folder
3) Re-install the board package again




  
Back to top
IP Logged
 
fluxanode
Junior Member
**
Offline


Posts: 17
Joined: Oct 5th, 2020
Re: Errors compiling my teensy 4.1 program
Reply #2 - Jan 24th, 2025 at 1:21pm
Print Post  
Teensyduino was in my existing Arduino installation. Did Visual Micro reinstall it?  Do you want me to do all this in Arduino?  I don't know where to install it in VM, can you explain?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2628
Joined: Feb 13th, 2019
Re: Errors compiling my teensy 4.1 program
Reply #3 - Jan 24th, 2025 at 1:26pm
Print Post  
Quote:
Did Visual Micro reinstall it?

It won't change any installed tools unless done through the Micro Explorer > Board Manager tool.

If you prefer to use ArduinoIDE to manage your boards then that will work as well.  Visual Micro and Arduino share the same board package installations and indexes so either IDE is fine, the manual folder deletion will ensure everything is tidied up.

We will try and replicate this scenario as we should select the same tool as the Arduino IDE, and need to understand how there are so many different versions of the tools installed side by side.
  
Back to top
IP Logged
 
fluxanode
Junior Member
**
Offline


Posts: 17
Joined: Oct 5th, 2020
Re: Errors compiling my teensy 4.1 program
Reply #4 - Jan 24th, 2025 at 2:10pm
Print Post  
FYI I am using the teensyduino version available in arduino boards manager, it is the only one available. Where is the VM option for installing it located? I don't believe i set it up but may have done it accidentally?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2628
Joined: Feb 13th, 2019
Re: Errors compiling my teensy 4.1 program
Reply #5 - Jan 24th, 2025 at 2:23pm
Print Post  
Version 0.60.3 I believe is only a Beta Release and hasn't been included in the normal Teensy Board Package JSON:
https://www.pjrc.com/teensy/package_teensy_index.json

I assume in the Arduino IDE you have the URL mentioned previously for 0.60.3 in the File > Preferences > Additional Boards Manager URLs?

In vMicro, you can click vMicro > Micro Explorer, which will open the window.  Then if you click on the Board Manager Tab at the top it will show the list of currently installed platforms where you will see "Teensy (for Arduino IDE 2.0.4 or later)".
Documentation: https://visualmicro.com/page/User-Guide.aspx?doc=Board-Manager.html

If you expand that node it will show all versions available (from the URL's configured currently in both Arduino IDE and Visual Micro).

Let us know if you cannot see any other versions there, and what URL's are set in the Arduino IDE.

« Last Edit: Jan 24th, 2025 at 2:26pm by Simon@Visual Micro »  
Back to top
IP Logged
 
fluxanode
Junior Member
**
Offline


Posts: 17
Joined: Oct 5th, 2020
Re: Errors compiling my teensy 4.1 program
Reply #6 - Jan 24th, 2025 at 5:22pm
Print Post  
Sent email with a snip of the Micro Explorer before i made any changes.
  
Back to top
 
IP Logged
 
fluxanode
Junior Member
**
Offline


Posts: 17
Joined: Oct 5th, 2020
Re: Errors compiling my teensy 4.1 program
Reply #7 - Jan 24th, 2025 at 5:48pm
Print Post  
URL in preferences is set to https://www.pjrc.com/teensy/td_160-beta3/package_teensy_0.60.3_index.json. ; And while yes it is technically a beta, it is the prefered version and the best working version. I have been using it for the last three months on arduino with no issues.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint