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) Action Breakpoint jumps to next string (Read 2856 times)
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Action Breakpoint jumps to next string
Aug 17th, 2019 at 1:26pm
Print Post  
On starting debug session Action Breakpoint suddenly jumps to another string and error message occured.
Code
Select All
Breakpoint 2, loop () at D:\Arduino\Proj\ESP32\M5Stack\MAX30102\RD117_ARDUINO/RD117_ARDUINO.ino:119
119	    Serial.print(aun_red_buffer[i], DEC);
1133823549-var-create: unable to create variable object
-var-create: unable to create variable object
@"Target halted. PRO_CPU: PC=0x400EDE22             APP_CPU: PC=0x400D0D96 (active)\n" 

  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Action Breakpoint jumps to next string
Reply #1 - Aug 17th, 2019 at 4:03pm
Print Post  
What do you click to start debugging?

What optimization setting have you got set/disabled?
« Last Edit: Aug 17th, 2019 at 4:04pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Action Breakpoint jumps to next string
Reply #2 - Aug 17th, 2019 at 4:08pm
Print Post  
1. F5
2. No optimization
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Action Breakpoint jumps to next string
Reply #3 - Aug 17th, 2019 at 4:27pm
Print Post  
Thanks, can you please email the RD117_ARDUINO\RD117_ARDUINO.cpp fro the temp build folder to the address in the yellow box.

The temp build folder can be seen when verbose output or "show build folder" is enabled.

  
Back to top
WWW  
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Action Breakpoint jumps to next string
Reply #4 - Aug 17th, 2019 at 4:36pm
Print Post  
Done
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Action Breakpoint jumps to next string
Reply #5 - Aug 17th, 2019 at 4:40pm
Print Post  
Thanks, sorry I need the matching .ino file as well.
  
Back to top
WWW  
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Action Breakpoint jumps to next string
Reply #6 - Aug 18th, 2019 at 6:16am
Print Post  
Done.
One more strange thing:
There is no loop() function in function list
  
Back to top
 
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Action Breakpoint jumps to next string
Reply #7 - Aug 18th, 2019 at 10:18am
Print Post  
Generally, I tried to follow "Drawing Graphs Using @Plot Windows" article directions.
Finally I made separate test project, similar that in article:
Code (C++)
Select All
#define apin 35
#define DACĀ  25

void setup()
{
	Serial.begin(115200);
}
//{@Plot.MyWindow.Sensor sensorValue}
void loop()
{
	int sensorValue = analogRead(apin);
	float voltage = sensorValue*2.0;
	dacWrite(DAC, voltage);
} 



and obtained the same results:
jumping to next line and 
-var-create: unable to create variable object
« Last Edit: Aug 18th, 2019 at 10:21am by Kabron »  
Back to top
 
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Action Breakpoint jumps to next string
Reply #8 - Aug 18th, 2019 at 10:31am
Print Post  
Definitely it related with debug mode. It works with serial debug and do not with hardware GDB.
I found maybe similar issue:
  https://sysprogs.com/w/forums/topic/var-create-unable-to-create-variable-object/
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Action Breakpoint jumps to next string
Reply #9 - Aug 18th, 2019 at 11:21am
Print Post  
Hi,

I suspect that in GDB mode line numbers are confused because you have added an include for Arduino.h to your code. We will fix that bug in the next release, for now I suggest you remove the #include because it is not needed.

#include <Arduino.h>

Thanks
  
Back to top
WWW  
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Action Breakpoint jumps to next string
Reply #10 - Aug 18th, 2019 at 11:46am
Print Post  
There is no #include <Arduino.h> in the test project. But  symptoms remains.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Action Breakpoint jumps to next string
Reply #11 - Aug 18th, 2019 at 5:36pm
Print Post  
I have made some tests and the issue seems related to the tool chain or hardware you are using. We are not seeing the problem with any of our tests.

Please provide the info in the yellow box above so we can see what you are working with.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint