Show Posts
|
|
Pages: [1] 2 3 ... 5
|
|
1
|
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. 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: 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/247200edit: 'gitb' in the paste is a local alias for 'git branch'. so I'm on branch ide-1.5.x 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
|
|
|
|
|
5
|
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. /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?
|
|
|
|
|
6
|
Products / Arduino Due / Re: digitalPinHasPWM on the due?
|
on: April 03, 2013, 06:38:53 am
|
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.
|
|
|
|
|
7
|
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? 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$
|
|
|
|
|
8
|
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/ArduinoDidn'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  On Debian/Wheezy 64bit I'm getting: 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?
|
|
|
|
|
10
|
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?
|
|
|
|
|
12
|
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: 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 
|
|
|
|
|
13
|
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.
|
|
|
|
|
14
|
Products / Arduino Due / Re: How to use Arduino 1.5.2 on Debian Wheezy 64bit?
|
on: March 17, 2013, 04:23:25 am
|
@cmaglie Please excuse the long answer time, was mostly away from computers a few days. I forgot to ask: have you enabled verbose compile and upload [...]
Oh, I should have thought about this, sorry. Had tried shift compile, at least. ~$ ./arduino-1.5.2/arduino Experimental: JNI_OnLoad called. Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 /home/dada/arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-g++ -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=152 -D__SAM3X8E__ -mthumb -DUSB_PID=0x003e -DUSB_VID=0x2341 -DUSBCON -I/home/dada/arduino-1.5.2/hardware/arduino/sam/system/libsam -I/home/dada/arduino-1.5.2/hardware/arduino/sam/system/CMSIS/CMSIS/Include/ -I/home/dada/arduino-1.5.2/hardware/arduino/sam/system/CMSIS/Device/ATMEL/ -I/home/dada/arduino-1.5.2/hardware/arduino/sam/cores/arduino -I/home/dada/arduino-1.5.2/hardware/arduino/sam/variants/arduino_due_x -I/home/dada/sketchbook/libraries/Menu /tmp/build5390247795744229471.tmp/softboard.cpp -o /tmp/build5390247795744229471.tmp/softboard.cpp.o
$ ls -l /home/dada/arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-g++ -rwxr-xr-x 2 dada dada 208112 Apr 17 2010 /home/dada/arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-g++
|
|
|
|
|