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 Visual Micro (Visual Studio) debugging with Teensy 4.1 (Read 2053 times)
A. Clement
Junior Member
**
Offline


Posts: 13
Joined: Oct 19th, 2023
Visual Micro (Visual Studio) debugging with Teensy 4.1
Oct 20th, 2023 at 8:38am
Print Post  
Ok, so I realize this might be somewhat of a niche question but I've been experimenting with using Visual Micro instead of the Arduino IDE, as I'd like to have basic intellisense and debugging.

I've so far been able to successfully use the breakpoint actions and such to have basic variable debugging going, but now I'd like to go into the more interesting things, like pin and memory monitoring.
Whenever I enter a
Code
Select All
{@ReportFreeMemory} 


action in a breakpoint, I get an
Unknown analog or digital pin counts. Please switch off vMicro>Debugger>Monitor Digital Pins and Monitor Analog Pins to enable build.

error. Those options are indeed turned off in the debugger options, but more than that I find it weird that the debugger doesn't have access to teensy pin count as stated in the error...

Also wondering if there is a way to debug multithread variables? Using Teensythreads
« Last Edit: Oct 20th, 2023 at 8:39am by A. Clement »  
Back to top
 
IP Logged
 
A. Clement
Junior Member
**
Offline


Posts: 13
Joined: Oct 19th, 2023
Re: Visual Micro (Visual Studio) debugging with Teensy 4.1
Reply #1 - Oct 20th, 2023 at 2:50pm
Print Post  
Actually that message is a warning.

The error preventing linking is:

Code
Select All
ld.exe: VM_DBG\\VM_mem_check.c.o: in function _VM_freeMemory
vm_mem_check.c:59: undefined reference to __flp 

« Last Edit: Oct 20th, 2023 at 2:53pm by A. Clement »  

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


Posts: 2712
Joined: Feb 13th, 2019
Re: Visual Micro (Visual Studio) debugging with Teensy 4.1
Reply #2 - Oct 20th, 2023 at 2:53pm
Print Post  
Thanks for the report.

We are looking into this, and will update when there is a fixed version available for download.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2712
Joined: Feb 13th, 2019
Re: Visual Micro (Visual Studio) debugging with Teensy 4.1
Reply #3 - Oct 26th, 2023 at 10:17am
Print Post  
Please try the latest release (23.1006.02) which is available from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
A. Clement
Junior Member
**
Offline


Posts: 13
Joined: Oct 19th, 2023
Re: Visual Micro (Visual Studio) debugging with Teensy 4.1
Reply #4 - Nov 1st, 2023 at 11:29am
Print Post  
Simon@Visual Micro wrote on Oct 26th, 2023 at 10:17am:
Please try the latest release (23.1006.02) which is available from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES


Perfect! Thank you very much!!!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint