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 Couldnt determine Project Size (Read 7008 times)
Brennon Williams
Newbies
*
Offline


Posts: 7
Joined: Jan 15th, 2013
Couldnt determine Project Size
Jan 16th, 2013 at 11:34pm
Print Post  
Hello,

I created a simple sketch for testing a gyro. All worked well and the debugger showed the data correctly.

I selected to STOP the Serial window and now I can no longer run the solution. It appears to build fine, but dumps the following on debug run:

Compiling 'GyroTest' for 'Arduino Mega 2560 or Mega ADK'
Binary sketch size: 7538 bytes (of a 258048 byte maximum) (0.5770662 secs)
Compiling debug version of 'GyroTest' for 'Arduino Mega 2560 or Mega ADK'
crtm2560.o : : In function `__vector_default':
(.vectors+0xcc)* : : relocation truncated to fit: R_AVR_13_PCREL against symbol `__vector_51' defined in .text.__vector_51 section in rdwareSerial.cpp.o)
avr-objcopy* : : .elf': No such file
avr-objcopy* : : .elf': No such file
Couldn't determine program size: 



Can anyone help?

Cheers
  
Back to top
 
IP Logged
 
Brennon Williams
Newbies
*
Offline


Posts: 7
Joined: Jan 15th, 2013
Re: Couldnt determine Project Size
Reply #1 - Jan 16th, 2013 at 11:51pm
Print Post  
Just thought I would add, if I switch  the (Micro Debug) value to None, the sketch compiles and uploads to the board.

Unusually, even though all is compiled and uploaded, there are a tone of intellisense errors that show for files such as stdlib.h, interups.h, new.h, stdarg.h

Below is a verbose output:

Compiling 'GyroTest' for 'Arduino Mega 2560 or Mega ADK'
Build folder: file://C:\Users\Brennon\AppData\Local\VMicro\Arduino\Builds\GyroTest\mega2560
SketchLibFolders
de\;
Summary: Header=1 Prototypes=3 Imports=2
  
Back to top
 
IP Logged
 
Brennon Williams
Newbies
*
Offline


Posts: 7
Joined: Jan 15th, 2013
Re: Couldnt determine Project Size
Reply #2 - Jan 16th, 2013 at 11:52pm
Print Post  
I cant paste the entire thing in here.

Cheers for any help on this.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Couldnt determine Project Size
Reply #3 - Jan 17th, 2013 at 12:07am
Print Post  
Hi, ignore the intellisense errors in the error output window, best to close it. Vs intellisense doesn't like some of the arduino core code but they are not really errors. The error list isn't really needed because the intellisense in the code shows errors correctly.

Can you try adding a couple of manual Serial.println("Hello world") statements to your sketch and seeing if it will compile okay without debug? 

If you are new to arduino...

Don't forget to add Serial.begin(speed) into the setup() method. Suggested speed might be 115200

Let know if you need a better example and how it goes. 

Thanks
  
Back to top
IP Logged
 
Brennon Williams
Newbies
*
Offline


Posts: 7
Joined: Jan 15th, 2013
Re: Couldnt determine Project Size
Reply #4 - Jan 17th, 2013 at 12:28am
Print Post  
Hi Tim,

So oddly enough, I wrote a quick C# app and called the serial port manually to read the data.

When I went back to the gyro sketch with arduino, the sketch now builds and debugging is fine - the Serial window is running data at 9600.

Could this be something to do with the port not being closed or flushed correctly when I clicked on "STOP" on the serial window?

Not sure.

Here is the sketch:

[code]
#include <Wire.h>
#include <L3G.h>

L3G gyro;

void setup() 
{
  Serial.begin(9600);
  Serial.println("Hello world") ;
  Wire.begin();

  if (!gyro.init())
  {
    Serial.println("Failed to autodetect gyro type!");
    while (1);
  }

  gyro.enableDefault();
}

void loop() {
  gyro.read();


    // In following Dividing by 114 reduces noise
  Serial.print("Raw X:");  Serial.print((int)gyro.g.x / 114);   
  Serial.print(" Raw Y:"); Serial.print((int)gyro.g.y / 114);
  Serial.print(" Raw Z:"); Serial.println((int)gyro.g.z / 114);

  delay(100);
}
[/code]

Thanks for the help. Let me know what you need for a repro.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Couldnt determine Project Size
Reply #5 - Jan 17th, 2013 at 7:47am
Print Post  
Hi,

No the serial port is not accessed during compile. The reason for asking you to add the serial was to check that your project would compile okay with serial, that your code was not overriding the std arduino serial. Which it is not.

Had you recently upgraded or installed vm when the problem happened? Which version of vm are you using?

Anyway pleased its working
  
Back to top
IP Logged
 
Brennon Williams
Newbies
*
Offline


Posts: 7
Joined: Jan 15th, 2013
Re: Couldnt determine Project Size
Reply #6 - Jan 17th, 2013 at 10:46am
Print Post  
Hi Tim,

I downloaded it 2 days ago - version 1.1212.30

Will keep an eye on it and try to understand any future events  a little more

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