Show Posts
Pages: [1] 2 3 ... 5
1  Products / Arduino Due / Re: Problem with 64-bit Arduino Beta on: June 20, 2013, 11:52:17 pm

Thanks a lot.
I will do some tests on Debian Wheezy and report if something has changed since last time.

Just for the record:
The problem showed up here on *Debian Wheezy* 64bit,
so it is *not* Ubuntu specific, but might affect the entire Debian distribution family.
2  Products / Arduino Due / Re: Problem with 64-bit Arduino Beta on: June 02, 2013, 08:17:27 am
Yes, thats's a long standing issue...

See the thread http://forum.arduino.cc/index.php?topic=150161.0
a solution to that part http://forum.arduino.cc/index.php?topic=150161.15

Then also
http://forum.arduino.cc/index.php?topic=156530.0

and
http://comments.gmane.org/gmane.comp.hardware.arduino.devel/1812

I was away from arduino a couple of weeks and do not know if things have changed since.
I'm glad you put your finger on that topic again smiley-wink

I think it could be quite a show-stopper for some people.

3  Products / Arduino Due / Re: print from flash memory broken on DUE? on: April 04, 2013, 01:42:32 pm

... and the RAM function I run will show FREE RAM go up alot when converting to flash memory storage.
Code:
int freeRam(void)
{
  extern int  __bss_end;
  extern int  *__brkval;
  int free_memory;
  if((int)__brkval == 0) {
    free_memory = ((int)&free_memory) - ((int)&__bss_end);
  }
  else {
    free_memory = ((int)&free_memory) - ((int)__brkval);
  }
  return free_memory;
}
}

Had tried that a while ago. I could not figure out how to get __bss_end and __brkval defined...
4  Products / Arduino Due / Re: data type sizes on: April 04, 2013, 06:40:40 am
You might also need the following line for uint16_t
#include <stdint.h>

uint16_t arrayname[1000];
5  Products / Arduino Due / Re: print from flash memory broken on DUE? on: April 04, 2013, 06:33:16 am
cmaglie has done this already:
see https://github.com/arduino/Arduino/issues/1317

If you manage to run the version from github it should work,
*IF* you manage...
  (as I still don't)
6  Products / Arduino Due / Re: How do I use Arduino ide-1.5.x from github? on: April 03, 2013, 09:02:24 am
may you update your repository and retry?

I did a 'git pull' and retried, but still got an error.

Tried it a second time (that's why the local repo was up-to-date) and put the log here:
http://paste.debian.net/247200

edit: 'gitb' in the paste is a local alias for 'git branch'.
        so I'm on branch ide-1.5.x
Code:
dada@i5:~/Arduino$ gitb
* ide-1.5.x

edit2: as the above link was about to expire I replaced it by a new one,
         expires 90d
7  Products / Arduino Due / Re: How do I use Arduino ide-1.5.x from github? on: April 03, 2013, 07:09:35 am
you need to make the JAVA_HOME point to a JDK, currently it points to a JRE.

After tinkering a bit I have installed debian package 'default-jdk' and 'ant build' runs fine now.
But I still get the same error as from the nightly build, quoted in the second post of this thread.
Code:
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by /home/dada/arduino-nightly/lib/librxtxSerial.so)

Does this mean that the new Arduino ide depends on a newer glibc version than I have on Debian Wheezy?
8  Products / Arduino Due / Re: digitalPinHasPWM on the due? on: April 03, 2013, 06:38:53 am

opened an issue to keep track of this:
https://github.com/arduino/Arduino/issues/1342

as always, if someone wants to try an implementation, I'll be happy to merge it.


Left a note about me using
#define digitalPinHasPWM(p)         ((p) >= 2 && (p) <= 13)

I will probably raise issues on other macros missing, like:
portModeRegister

and then I did not find out yet how to use these:
- digitalPinToPort
- digitalPinToBitMask
any pointers very welcome


Thanks a lot for your help,
very much appreciated.
9  Products / Arduino Due / Re: How do I use Arduino ide-1.5.x from github? on: March 29, 2013, 02:44:38 am
Here's what works for me:

Thanks a lot, I did not know about ant.
So this is a huge step forward.

'ant build'  fails, why?
Code:
dada@i5:~$ git clone git://github.com/arduino/Arduino.git
Cloning into 'Arduino'...
remote: Counting objects: 39380, done.
remote: Compressing objects: 100% (12778/12778), done.
remote: Total 39380 (delta 23783), reused 37694 (delta 22893)
Receiving objects: 100% (39380/39380), 1.15 GiB | 477 KiB/s, done.
Resolving deltas: 100% (23783/23783), done.
dada@i5:~$
dada@i5:~$ cd Arduino/build/
dada@i5:~/Arduino/build$ ant clean
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk-amd64/lib/tools.jar
Buildfile: /home/dada/Arduino/build/build.xml

subprojects-clean:

clean:

clean:

linux-clean:

windows-clean:

macosx-clean:

clean:

BUILD SUCCESSFUL
Total time: 0 seconds
dada@i5:~/Arduino/build$ ant build
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk-amd64/lib/tools.jar
Buildfile: /home/dada/Arduino/build/build.xml

build:

revision-check:

linux-checkos:

subprojects-build:

compile:
  [methods] No changes to PApplet API.
    [mkdir] Created dir: /home/dada/Arduino/core/bin

BUILD FAILED
/home/dada/Arduino/build/build.xml:35: The following error occurred while executing this line:
/home/dada/Arduino/build/build.xml:67: The following error occurred while executing this line:
/home/dada/Arduino/core/build.xml:19: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-6-openjdk-amd64/jre"

Total time: 0 seconds
dada@i5:~/Arduino/build$

10  Products / Arduino Due / Re: How do I use Arduino ide-1.5.x from github? on: March 28, 2013, 03:17:13 pm
Before asking tons of questions about the IDE and the Due I want to make sure I use the newest version for my testing. I'm feeling quite dumb, as I did not find out how to start the thing yet.https://github.com/arduino/Arduino

Didn't come further with this one, still interested in hints...

I have found nightly builds on http://arduino.cc/en/Main/Software
(how could I have overlooked them before?)
and thought this would be an easy solution...
but no, not *that* easy  smiley-wink

On Debian/Wheezy 64bit I'm getting:
Code:
dada@i5:~$ ./arduino-nightly/arduino
java.lang.UnsatisfiedLinkError: /home/dada/arduino-nightly/lib/librxtxSerial.so: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by /home/dada/arduino-nightly/lib/librxtxSerial.so) thrown while loading gnu.io.RXTXCommDriver
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/dada/arduino-nightly/lib/librxtxSerial.so: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by /home/dada/arduino-nightly/lib/librxtxSerial.so)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1675)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
at processing.app.Editor.populateSerialMenu(Editor.java:984)
at processing.app.Editor.buildToolsMenu(Editor.java:703)
at processing.app.Editor.buildMenuBar(Editor.java:484)
at processing.app.Editor.<init>(Editor.java:212)
at processing.app.Base.handleOpen(Base.java:809)
at processing.app.Base.handleOpen(Base.java:774)
at processing.app.Base.handleNew(Base.java:672)
at processing.app.Base.<init>(Base.java:391)
at processing.app.Base.main(Base.java:207)


Is that a library that is too old on updated Debian Wheezy?
Or what's wrong?
11  Products / Arduino Due / How do I use Arduino ide-1.5.x from github? on: March 26, 2013, 03:11:17 am
Before asking tons of questions about the IDE and the Due I want to make sure I use the newest version for my testing. I'm feeling quite dumb, as I did not find out how to start the thing yet.https://github.com/arduino/Arduino

* I got branch ide-1.5.x as a zip file from https://github.com/arduino/Arduino
   Is this the right branch to get?

* I cannot find an arduino executable in the extracted files, do I have to build it first?

Help appreciated.

* OutOfLine hoping for the "as-soon-as-I-hit-send-I-realized-the-answer" effect...
12  Products / Arduino Due / Re: digitalPinHasPWM on the due? on: March 25, 2013, 04:01:18 am
It would be easy to write one using the data on which pins have PWM, a function with a switch to return TRUE if it matches one, FALSE if not.

Sure,
but I think as the Arduino IDE does #define it for the other Arduinos it *would be* nice for the user to find that defined also on the Due. Or doesn't it make sense for that chip? (and if so, why?).

btw:  How can I detect the Due?
#ifdef  __SAM3X8E__ or is there something more specific?
13  Products / Arduino Due / digitalPinHasPWM on the due? on: March 24, 2013, 04:38:50 am
The macro digitalPinHasPWM seams to be missing on Arduino 1.5.2

Can it be defined for the due?
14  Products / Arduino Due / Re: How to use Arduino 1.5.2 on Debian Wheezy 64bit? on: March 24, 2013, 04:33:30 am
I've fix same issue on my Ubuntu Studio 12.10 64bit by installing only two packets:
Code:
sudo apt-get install libc6:i386
sudo apt-get install libstdc++6:i386

I don't like to install ia32libs package since it take some major change in system [...]
Hope it helps.

oh, thanks a lot, that *did* help!

looking forward to finally being able to try some of my programs on the due smiley
15  Products / Arduino Due / Re: How to use Arduino 1.5.2 on Debian Wheezy 64bit? on: March 24, 2013, 04:06:57 am
probably installing the "ia32-libs" debian package may solve the problem.
@OutOfLine, please confirm if this fix works for you.

unfortunately no, aptitude leaves me in dependency hell
might be my system

i plan to do another Debian Wheezy install on another system soon, will try there again.

thanks for you help.
Pages: [1] 2 3 ... 5