Show Posts
Pages: [1]
1  Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches on: January 18, 2014, 08:28:49 am
I've updated the teensy3.0 and teensy 3.1 sections of the boards.txt for Tennsy from Teensyduino 1.18rc2 (installed using Headroom's instructions above)

This should work teensy 3.1 now (and added in partial Turkish support) as long as you add teensduino libraries as in Headroom's instructions above.

Please look over and point out any obvious errors. I haven't touched the teensy1,1++2,2++ sections as I don't have those boards to test with, but it does work with teensy 3 & teensy 3.1


2  Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches on: December 13, 2013, 12:24:22 pm
A new version of the plugin is coming and some testers are needed.
Volunteers please step forward.
Best regards
Jantje

*steps foreward*

Ready for duty again sir!

3  Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches on: June 29, 2013, 07:56:10 am
Hello,

The problem
I want to use a method in order to display debug information on the Eclipse monitor.
But the
Code:
Serial.begin(9600);
method is underlined in red.
.
.
.
Quote
But as I just want to have this common line working:
Code:
void setup()
{
serial.begin(9600);
}

the serial.begin method is underlined in red and therefore, compilation fails (Symbol ‘serial’ could not be resolved).

Can I just check which line is failing, as you've put both Serial and serial in your post. The correct one should be Serial.

I know it's probably just a typo, but you never know smiley-wink
4  Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches on: May 21, 2013, 04:06:37 pm
Absolutely.

Apologies BTW for not having got around to taking apart the linker yet to see what it thinks it's doing - just haven't had the time yet smiley-sad



5  Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches on: May 21, 2013, 03:59:00 pm
As a temporary solution the fix I suggested in my post above yours will fix your issue. You are seeing the same issue as I did with the link not linking syscalls_sam3.c from the audiono.ar correctly.
6  Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches on: May 12, 2013, 11:22:28 am
I don't consider myself old but I have some decades of experiance in programming C/C++ myself; so I know what you are talking about.
I always had mixed feelings about not supporting multiple configurations. Now with he potential of debugging on the DUE this may become harder.
Point is however that the configuration in Arduino 1.5.X is done in 2 files ( boards.txt platform.txt) external to Eclipse. This is why I removed nearly all compiling options in V2. My current thinking is that if you want multiple configurations you have to modify the boards.txt file.
I currently see 2 options
1) adding a menu option for debug
2) adding a debug board (uno debug; mega debug ....)
Both are very easy to implement and supported by Arduino IDE and my Arduino eclipse plugin V2.
Do you think this can help you out?


Adding extra boards, and having them assignable per build configuration is probably the best way that fits in with your current model, and is easy to work with to changwe the build options in the boards.txt file then. I like it - neat and easily kept simple.


I hope you can pinpoint the Due upload problem you are experiencing. (I see nothing glaringly wrong in the info)
Best regards
Jantje


I solved it (Well, pinpointed the problem and come up with a workaround until I get time to spend more time poking the linker)

The problem arose again for me when in a different project attempting to allocate some memory with malloc(), and anything with a new operator (obviously the same thing really) and a couple of other times in object constructors.

With the malloc problem, it was easier to debug, as I got more information out of it. _sbrk (the underlying memory allocation call) was not linkable.

Basically, although syscalls_sam3.c (the syscall stub for the M3) was being compiled correctly and then linked correcly into the audino.ar archive ( a quick dump shows the relevent objects there), the final link step was not finding any symbol from this file to link into the image. The inclusion of the linker option "-Wl,--warn-unresolved-symbols" meaning that the action didn't error, yet built a seemingly valid image, which it would happily upload to a due and cause it to do, well, nothing!

So after swearing at whoever thought that option was a good idea smiley-wink I spent some time looking at the audiono.ar file and the linker. I couldn;t find any obvious issue as to why it won;t link, but when I get some time I will do more work on that. It's a long, lng time since I've had to take apart linker dumps... it will be "fun" ;D

So as a workaround, if you link the syscalls_sam3.c file directly into your project using import, then it will force it to be included on the link line as a single object in addition to the auduino.ar file (reflecting the command line I used to finally make it all work), then it links correctly and all works fine. (Any conflict is avoided by the fact that the linker denies the existance of those symbols in the archive).

So, until I have time to pull the linker apart and find out exactly what's happening, this is an effective workaround whenever anything uses calls in syscalls.h, most obvious being any memory allocation.

Kate.
7  Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches on: April 09, 2013, 08:02:13 am
katekarnage
Thanks for the nice words

1.) The upload ignores build configurations and always tries to upload from the "Release" Directory no matter what build configuration is active.
I'm surprised you got it going until the upload.
I took the design decision to hard code "Release" as configuration name. Given the fact that all settings are coming from boards.txt and platform.txt I don't see the usage of more configurations and as such the configuration name is irrelevant. Can you explain your use case for having more or another configuration name?


This is partially because I'm an old C/C++ programmer and have always been doing debug/release builds and have a lot of serial-emitted output dependent on a defined DEBUG and other symbols, even though, in this case I'm obviously not needing to change optomisations or debug symbol inclusion. Also I have several projects where the same arduino board is being used in a number of slightly different circumstances with a few compiletime directives to control the created code.

Build configurations are the easiest way of handling these, with adding a few -D direcetives to the compiler EXTRAFLAGS.

As, in this case there is only defines and no other changes to the compile environment, then, if this is too hard, then don;t worry as I can always sort it through altering defines in the main project header file and recompiling like that - more of a nicity really.
2.) The only way I've got my Leonardo to work is by setting the project preferences to the bootloader com port then doing a manual reset on upload, if I use the normal com port setting, then upload resets the board (the board led starts flashing and windows re-aquirres the bootloader port) but the process then errors saying "Leonardo upload port is not appearing after reset"

3.) Currently I've not got my Due to work, compile goes fine, upload appears to work fine, but after upload the due freezes and can;t be reset, the only way to make it come back to life is to upload something from the Arduino IDE, then it will work properly - I'm still investigating this one...
I just tried due on Linux and tha works fine. Which os are you using?


Win7 64 bit with 32bit Eclipse Juno.

But...

I have done more investigation of this, I had an idea or 2, and have gone back to basics.

A simple blink program uploads and runs fine, so the basic upoloading is fine.

The problem seems to be when I attempt to use the Scheduler. This code will brick the Due from eclipse and need it to be reset with the arduino IDE:

TestSched.cpp:

Code:
// Do not remove the include below
#include "SchedTest.h"

#include <Scheduler.h>

int led = 13;

void setup() {
  pinMode(led, OUTPUT);
  Scheduler.startLoop(loop2);
}

void loop() {
  digitalWrite(led, HIGH);
  delay(1000);
}

void loop2() {
  delay(1300);
  digitalWrite(led, LOW);
}

TestSched.h:
Code:
// Only modify this file to include
// - function definitions (prototypes)
// - include files
// - extern variable definitions
// In the appropriate section

#ifndef SchedTest_H_
#define SchedTest_H_
#include "Arduino.h"
//add your includes for the project SchedTest here


//end of add your includes here
#ifdef __cplusplus
extern "C" {
#endif
void loop();
void loop2();
void setup();
#ifdef __cplusplus
} // extern "C"
#endif

//add your function definitions for the project SchedTest here

//Do not add code below this line
#endif /* SchedTest_H_ */

I will delve deeper into the build logs and see if I can isolate this a bit more, and check I haven;t made a galringly obvious mistake!

Thanks again for your good work!

8  Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches on: March 28, 2013, 10:50:19 am
Loving V2 so far, just ironing out a few bugs...

1.) The upload ignores build configurations and always tries to upload from the "Release" Directory no matter what build configuration is active.

2.) The only way I've got my Leonardo to work is by setting the project preferences to the bootloader com port then doing a manual reset on upload, if I use the normal com port setting, then upload resets the board (the board led starts flashing and windows re-aquirres the bootloader port) but the process then errors saying "Leonardo upload port is not appearing after reset"

3.) Currently I've not got my Due to work, compile goes fine, upload appears to work fine, but after upload the due freezes and can;t be reset, the only way to make it come back to life is to upload something from the Arduino IDE, then it will work properly - I'm still investigating this one...


As you've said your ill (Get well!) and not going to have much time, do you have V2 on Github so I could take a look?


Deeply appreciate all the work you've done and will be "buying you an arduino" when next month's paycheck comes in, as being able to work in a sensible IDE is wonderful!


Thanks in advance!


Pages: [1]