Pages: [1]   Go Down
Author Topic: Linux + Arduino 0004 Alpha, please help  (Read 587 times)
0 Members and 1 Guest are viewing this topic.
Canada
Offline Offline
Jr. Member
**
Karma: 0
Posts: 76
I Love Arduino!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I followed the instructions for the installation of Arduino on Linux and here are my results:
1) Arduino/Processing graphical interface runs fine but surprise, it's version 0004  :-?
2) When I tried to compile the first time, Arduino/Processing asked for avr-g++ ( :o), so I made a symbolic link for that.
3) Now, compiliation and uploading returns with no errors (it states it found the board and the green RX and TX leds blink) BUT the Arduino board stays in "bootloader" mode forever!
4) I tried uploading a program with my PC running XP and it worked fine. The STRANGE THING  :'( is that when I tried to upload a program with my Linux machine it erased the previous one and returned it to the "boot loader" mode. So it means Linux+Arduino 0004 does upload something, but it's just ignored.

Please help.
Here are additional questions:

1) How can I download version Arduino 0003 with subversion?
2) Is there a way to make the compiler and uploader more verbose?

Thanks
Tom
« Last Edit: March 13, 2006, 04:02:51 pm by tof » Logged

Thomas Ouellet Fredericks

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 12
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The problem is that your code is too big to fit on the chip.  You can work around it by deleting some of the new libraries that are included with the 0004 release.

You see, you've caught us in the midst of a transition from a small core set of libraries that get linked with every sketch to a bigger set of libraries that are selectively linked as needed.  Meaning that the code in subversion has some extra libraries, but still links them all to every sketch.  The easiest solution is to delete Matrix.cpp, Matrix.h, Sprite.cpp, and Sprite.h from the lib/targets/arduino directory, and to remove the:

#include "Matrix.h"
#include "Sprite.h"

from WProgram.h.  This should give you more room on the chip for your program.  And you'll have many fewer bugs than with version 0003.
Logged

Canada
Offline Offline
Jr. Member
**
Karma: 0
Posts: 76
I Love Arduino!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Your quick fix did the job!
Thank you.

I guess this will be fixed once Arduino 0004 is final.

Tom
Logged

Thomas Ouellet Fredericks

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 12
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes.  Arduino 0004, once released, should include a mechanism for selectively linking against only the libraries you need for a sketch.  It should also give an error message when your sketch is too big to fit on the board.
Logged

Pages: [1]   Go Up
Jump to: