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 Debugging when using NilRTOS fails (Read 6310 times)
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Debugging when using NilRTOS fails
Nov 22nd, 2015 at 5:58am
Print Post  
Hi,
I appreciate this is possibly a complex problem that may not have a solution but..
I'm running a real time os on my board, specifically NilRTOS. I have tried to set a debug breakpoint in my code but when it compiles I get the following error output:

Compiling debug version of 'HeatPumpController' for 'Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)'
HeatPumpController.ino:In function 'void setup()
HeatPumpController.ino:44:74: error: no matching function for call to 'VisualMicroDebug::begin(NilSerialClass*, long int)
:void setup(void) { 
    debugger: The error shown above might be caused by invalid breakpoint syntax?
HeatPumpController.ino:candidates are
HeatPumpController.ino:In file included from
VM_DBG.h:begin(HardwareSerial*)
:void begin(HardwareSerial *theSerial)
VM_DBG.h:candidate expects 1 argument, 2 provided
VM_DBG.h:begin(HardwareSerial*, long unsigned int)
:void begin(HardwareSerial *theSerial, unsigned long baud)
VM_DBG.h:no known conversion for argument 1 from 'NilSerialClass*' to 'HardwareSerial*
Error compiling project sources

Is this possible to fix?
« Last Edit: Nov 22nd, 2015 at 5:59am by Acuario »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugging when using NilRTOS fails
Reply #1 - Nov 22nd, 2015 at 5:17pm
Print Post  
Please post a link to download the core. It looks like it has redefined the arduino serial so I need to look at what is now does.
  
Back to top
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: Debugging when using NilRTOS fails
Reply #2 - Nov 23rd, 2015 at 5:09am
Print Post  
Hi,
I downloaded it from here:
https://github.com/greiman/NilRTOS-Arduino
  
Back to top
 
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: Debugging when using NilRTOS fails
Reply #3 - Dec 3rd, 2015 at 7:52am
Print Post  
Any movement on this?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugging when using NilRTOS fails
Reply #4 - Dec 3rd, 2015 at 2:27pm
Print Post  
Hi,

There has been work due to the release of arduino 1.6.6 so anything new has been delayed.

Hopefully it will be looked at during the next week or so maybe earlier.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugging when using NilRTOS fails
Reply #5 - Dec 13th, 2015 at 8:33pm
Print Post  
Hi,

Can you give me some more info please. The link you posted takes me to some arduino libraries none of which appear to  cause the issue with the visual micro debugger that you have posted above.

Can you tell me what you have installed or which project settings you are trying to use? 

The debugger uses HardwareSerial by default, the error refers to NilSerialClass which mans your code is using the standard Arduino "Serial" variable which has been redefined to NilSerialClass or you have used a project property to try to override the debug port???

Maybe some really basic sample code would also help. Thanks

Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint