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) SOLVED - Not able to debug (Read 10612 times)
Desarrollo A y V
Newbies
*
Offline


Posts: 6
Joined: Feb 24th, 2015
SOLVED - Not able to debug
Feb 24th, 2015 at 1:38pm
Print Post  
Hi there,

Well, i was very happy using atmel studio with this amazing plug-in, last week i updated both atmel studio 6.2 and Visual micro, after the update i am not able to do any kind of debugging, the sketch compiles successfully, but it ignores the breakpoints i set up. Still not sure why this is happening, the debug variable list is empty and the debug trace only says "Program Started ´Xprogram'".

I will attach the project so that the settings can be checked,

Thanks in advance for your help.

Andrés
« Last Edit: Feb 25th, 2015 at 1:06am by Tim@Visual Micro »  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Not able to debug
Reply #1 - Feb 24th, 2015 at 1:53pm
Print Post  
Thanks for the info which shows you have a single breakpoint.

Can you confirm if your sketch uses Serial? If so at what speed?

What happens if you move the breakpoint up one line so that it is on valid code?

Thanks


Code
Select All
68			sei();
69	}
70
71	void loop()
72	{
73
74		int problema = radio.updateR(Origen, Destino, &Serial3);
-->75
76		/* This is all for the Modbus slave */
77		wdt_reset();
78		int problema3 = gprs.update_mb(MB_SLAVE,regs, MB_REGS);
79		// reinicio del contador del watchdog timer
80		wdt_reset();
81		//funcion para DVJA slave
82		 
83		int problema2 = UCR.update(Origen,Destino,start_addr);
84		 

« Last Edit: Feb 24th, 2015 at 1:54pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Desarrollo A y V
Newbies
*
Offline


Posts: 6
Joined: Feb 24th, 2015
Re: Not able to debug
Reply #2 - Feb 24th, 2015 at 1:55pm
Print Post  
it is using 3 serial ports, at 1200 bps each.

Thanks a lot for the fast reply.
Andrés
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Not able to debug
Reply #3 - Feb 24th, 2015 at 2:12pm
Print Post  
Hi,

I assume you do mean you are using Serial.

If so then you should set the project debug speed to 1200

http://www.visualmicro.com/page/User-Guide.aspx?doc=Debugging-With-Different-Por...

Can you also please post the syntax you have used in your Serial.begin() statement.

Thanks
  
Back to top
IP Logged
 
Desarrollo A y V
Newbies
*
Offline


Posts: 6
Joined: Feb 24th, 2015
Re: Not able to debug
Reply #4 - Feb 24th, 2015 at 2:29pm
Print Post  
Hi, thanks a again

Sorry i wasn´t clear in my last reply, well, i changed the baudrate but again i was unable to debug, also, i am not using port0, i am using an arduino mega 2560 and i am using 3 serial ports (serial1,serial2,serial3) so that the debugging port is free and untouched.

This is the code of the serial.begin

Code (C++)
Select All
int DVJA::config(	unsigned long baudRate, // Velocidad de transmisión de los datos 1200 para este caso.
					unsigned char parity, // la paridad que manejarán los datos, 8n1 para nuestro caso.
					unsigned int txEnable)
{
	_baudRate = baudRate;
	_parity = parity;
	_txEnable = txEnable;
	(*usedPort).begin(_baudRate);
	switch (_parity) {
		case 'e': // 8E1
		UCSR0C |= ((1<<UPM01) | (1<<UCSZ01) | (1<<UCSZ00));
		break;
		case 'o': // 8O1
		UCSR0C |= ((1<<UPM01) | (1<<UPM00) | (1<<UCSZ01) | (1<<UCSZ00));
		break;
		case 'n': // 8N1
		UCSR0C |= ((1<<UCSZ01) | (1<<UCSZ00));
		break;
		default:
		break;
	}
	return 0;
}
 



that is a function i made as an object of class dvja

and this is how i call it:

Code (C++)
Select All
gprs.config(1200,'n',0); 




Hope it helps, i am not sure what's wrong, but since it worked with standard settings in the last version, it might be a config problem.

Thanks again for your help!

Greetings

Andrés.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Not able to debug
Reply #5 - Feb 24th, 2015 at 2:34pm
Print Post  
Okay so if you are not using Serial then standard settings should work okay

Can you please zip and email (or attach file) the temp folder after an upload attempt.

Your temp build folder is:

C:\Users\[your name]\AppData\Local\V.Micro\Arduino\Builds\Gateway_H_V4\mega_atmega2560

Thanks
  
Back to top
IP Logged
 
Desarrollo A y V
Newbies
*
Offline


Posts: 6
Joined: Feb 24th, 2015
Re: Not able to debug
Reply #6 - Feb 24th, 2015 at 3:01pm
Print Post  
HI,  Embarrassed

I am sorry to ask this but, what is your e-mail address?
The .rar i've got is a bit larger than 250kb so i must use the e-mail option, I tried to PM you but i wasn't able to attach anything.

Thanks

Andrés.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Not able to debug
Reply #7 - Feb 24th, 2015 at 5:36pm
Print Post  
Hi,

Thanks for the email.

The upload shows there are no breakpoints however the analog and digital report are enabled.

As a test can you please add the following to the start of the loop()

Serial.println("Hello World")

Thanks
  
Back to top
IP Logged
 
Desarrollo A y V
Newbies
*
Offline


Posts: 6
Joined: Feb 24th, 2015
Re: Not able to debug
Reply #8 - Feb 24th, 2015 at 8:23pm
Print Post  
ok, sent you the e-mail, but even tho it said there wasn´t a break point, indeed there was, the same you found in the sketch.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Not able to debug
Reply #9 - Feb 24th, 2015 at 8:26pm
Print Post  
Hi,

Ok, thanks for the info.

Did you move the breakpoint to a line that has code on it?

Please do that, you can right click the breakpoint and subtract 1 from the location>line num

At this time I can only assume that breakpoints on empty code lines have stopped working. If that's the case there will be a service pack update but we need to prove it first. I don't have a board handy right now to test.

Thanks
  
Back to top
IP Logged
 
Desarrollo A y V
Newbies
*
Offline


Posts: 6
Joined: Feb 24th, 2015
Re: Not able to debug
Reply #10 - Feb 24th, 2015 at 8:31pm
Print Post  
OMG!!!!
YOU ARE GODLIKE!

Thanks a lot, i really apreciate all your help and your patience, everything is fixed now, i need indeed to put the breakpoints exactly in the same line there is some code.

I can't thank you enough!!

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Not able to debug
Reply #11 - Feb 24th, 2015 at 8:40pm
Print Post  
Great that's an important bug found in the latest release. It is something unique to visual micro to allow breakpoints on empty lines but it is a feature that should be working!

Thanks for your patience.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Not able to debug
Reply #12 - Feb 25th, 2015 at 12:31am
Print Post  
This issue has been resolved in a new service release (1502.14 sp3)
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint