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 Unable to build Repetier in Debug mode, Release OK. The issue is with the arduino core library: (Read 6234 times)
LK
Newbies
*
Offline


Posts: 3
Joined: Oct 4th, 2015
Unable to build Repetier in Debug mode, Release OK. The issue is with the arduino core library:
Oct 4th, 2015 at 11:41pm
Print Post  
I get this strange error that stumped me, any help would be greatly appreciated:

Build Core Paths: C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -w -Os -Wl,--gc-sections -mmcu=atmega2561 -o elf" cpp.o" pp.o" ion.cpp.o" .o" pp.o" o"  cpp.o" cpp.o" .o" p.o" cpp.o" .o" o" "C:\Users\Leon\AppData\Local\V.Micro\Arduino\Builds\Repetier2\3D_2561\ui.cpp.o" rial\SoftwareSerial.cpp.o" p.o" mem_check.c.o" DBG.cpp.o" "C:\Users\Leon\AppData\Local\V.Micro\Arduino\Builds\Repetier2\3D_2561/core.a" "-LC:\Users\Leon\AppData\Local\V.Micro\Arduino\Builds\Repetier2\3D_2561" -lm
core.a(HardwareSerial0.cpp.o)*:In function `__vector_25'
core.a(HardwareSerial0.cpp.o)*:In function `__vector_25'
collect2.exe*:error: ld returned 1 exit status
Error creating .elf
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to build Repetier in Debug mode, Release OK. The issue is with the arduino core library:
Reply #1 - Oct 5th, 2015 at 12:04am
Print Post  
Hi,

The debugger is a serial debugger. By default it uses the main serial port.

This usually means you are working with a custom board that has redefined the main serial port code.

As an alternative, you might find that the SoftwareSerial option works on 1 or two spare digital pins. Please see the "debugging with different ports and pins" documentation for more info.
  
Back to top
WWW  
IP Logged
 
LK
Newbies
*
Offline


Posts: 3
Joined: Oct 4th, 2015
Re: Unable to build Repetier in Debug mode, Release OK. The issue is with the arduino core library:
Reply #2 - Oct 5th, 2015 at 3:35am
Print Post  
Thanks for the quick response. And yes, I am using a custom board based on atmega2561. However, only RX1/TX1 are used for Hardware Serial which should leave RX/TX available.
I will play with remote port settings, any ideas you may have along these lines please toss them my way. I would love to be able to use a real debugger...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to build Repetier in Debug mode, Release OK. The issue is with the arduino core library:
Reply #3 - Oct 5th, 2015 at 2:15pm
Print Post  
Can you use this code in your sketch?

Serial.begin()
Serial.println()
Serial.read()

If so when you press F12 what class and code file does it take you to.

The debugging with different ports and pins might be your only option. If so then you will set SoftwareSerial in the RemoteTransport property and your chosen rx/tx pins in RemoteRX and RemoteTx. This will automatically attempt to use SoftwareSerial for debug when connected via FtDI or equiv.

You can see if SoftwareSerial works with your board by adding the SoftwareSerial library to your sketch and uploading in Release mode. The library usage is described here https://www.arduino.cc/en/Reference/SoftwareSerial
  
Back to top
WWW  
IP Logged
 
LK
Newbies
*
Offline


Posts: 3
Joined: Oct 4th, 2015
Re: Unable to build Repetier in Debug mode, Release OK. The issue is with the arduino core library:
Reply #4 - Oct 5th, 2015 at 2:32pm
Print Post  
I use both actually. SoftwareSerial is used for Repetier Host to communicate with my board. And HardwareSerial1 is used to communicate with yet another custom board. Used to be SPI but I wanted to simplify things. So if I understand this, I will need to setup another serial port for debugging, correct? Would an FTDI cable hooked up to some IO pins work? What do I need to do on the board, open a SoftwareSerial connection using those new IO pins?  Alternatively, is there a way for me to use a JTAGICE3 or MKII programmer for debugging?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to build Repetier in Debug mode, Release OK. The issue is with the arduino core library:
Reply #5 - Oct 5th, 2015 at 2:49pm
Print Post  
Hi, You just need to set the properties I have mentioned below along with 1/2 io pins and an ftdi type connection as described below.

Did you read the documentation page I linked below?

If you have a hardware programmer and are obviously expert I suggest installing As7 and using the Arduino converter to create a cpp project. Then you can use hardware debug in atmel studio. You don't need Visual Micro or the Arduino Ide after that.
« Last Edit: Oct 5th, 2015 at 2:51pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint