Hello, When trying to compile the bare minumum, or the blink example or logically any other arduino program, I get the following error: Cannot run program "/opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/arm-none-eabi-g++";java.io.IOException: error=12, Cannot allocate memory Does anyone what is this? I though the arduino IDE was ready to go in UDOO??????? Cheers Javi
interesting.....just booted today UDOO and first thing I did was to open arduino IDE and compile blink example....it did compile it, however gave me the following warning: /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/thumb/libc.a(lib_a-sbrkr.o): In function `_sbrk_r': sbrkr.c.text._sbrk_r+0xc): warning: undefined reference to `_sbrk' after this I have opened the internet and a document to post the warning here and tried to compile again and gave me the same error as yesterday. ancmp: here are details about OS and setup. I might know the reason why is not working (but not sure please help), have a look please to the info copied from terminal: ubuntu@udoo:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04 LTS Release: 12.04 Codename: precise ubuntu@udoo:~$ cat /proc/version Linux version 3.0.35 (udoo@ubuntu) (gcc version 4.4.4 (4.4.4_09.06.2010) ) #1 SMP PREEMPT Thu Nov 28 13:14:24 CET 2013 ubuntu@udoo:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT mmcblk0 179:0 0 14.7G 0 disk `-mmcblk0p1 179:1 0 6.8G 0 part / ubuntu@udoo:~$ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/root 6979984 2598392 4026960 40% / devtmpfs 448084 4 448080 1% /dev none 89640 2636 87004 3% /run none 5120 0 5120 0% /run/lock none 448180 240 447940 1% /run/shm ubuntu@udoo:~$ cat /proc/meminfo MemTotal: 896364 kB MemFree: 212548 kB Buffers: 10164 kB Cached: 129796 kB SwapCached: 0 kB Active: 375500 kB Inactive: 93412 kB Active(anon): 331520 kB Inactive(anon): 8912 kB Active(file): 43980 kB Inactive(file): 84500 kB Unevictable: 32 kB Mlocked: 32 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 896364 kB LowFree: 212548 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 44 kB Writeback: 0 kB AnonPages: 329000 kB Mapped: 81388 kB Shmem: 11480 kB Slab: 23196 kB SReclaimable: 10592 kB SUnreclaim: 12604 kB KernelStack: 2464 kB PageTables: 5344 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 448180 kB Committed_AS: 1919244 kB VmallocTotal: 811008 kB VmallocUsed: 2596 kB VmallocChunk: 807248 kB Whas is P1 doing there? When copying the image, the instructions said to delete P1, and I did, but looks like still is there and I am working with an SD card with two partitions....is the SD supposed to be like that? did I copied the image wrongly? Thanks
I was seeing the same thing and I am suspecting its a problem with the version of Java that comes installed. Please see my post here; viewtopic.php?f=17&t=1021 What happens when you execute the command "java -version"? If you get a heap allocation error then its very likely the same issue.
Hello, thak you for your response. When I execute java -version this is what I get: ubuntu@udoo:~$ java -version java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu2) JamVM (build 1.6.0-devel, inline-threaded interpreter with stack-caching) Seems to be fine. However, I'm baffled now because surprisingly I can compile code now and I have not done anything to fix the problem. When compiling now however, it gives me the following warning: /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/thumb/libc.c(lib_a-sbrkr.o): In function '_sbrk_r': sbrkr.c.text._sbrk_r+0xc): warning undefined reference to '_sbrk' As I pointed out before it is compiling and I can read the output from the arduino over the serial monitor. Is this warning related to the problem I had thas has been "magically" fixed?
And that`s the bare minimum script !!!! , you wait until something a little more complex and you will end up with pages and pages of warming which is no big problem because it compiles, but it is so hard to find the wood for the trees when you get real errors . This is the firmata compile :- Code: /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7-m/libc.a(lib_a-sbrkr.o): In function `_sbrk_r': sbrkr.c:(.text._sbrk_r+0xc): warning: undefined reference to `_sbrk' /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7-m/libc.a(lib_a-abort.o): In function `abort': abort.c:(.text.abort+0xa): warning: undefined reference to `_exit' /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7-m/libc.a(lib_a-signalr.o): In function `_kill_r': signalr.c:(.text._kill_r+0xe): warning: undefined reference to `_kill' /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7-m/libc.a(lib_a-signalr.o): In function `_getpid_r': signalr.c:(.text._getpid_r+0x0): warning: undefined reference to `_getpid' /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7-m/libc.a(lib_a-writer.o): In function `_write_r': writer.c:(.text._write_r+0x10): warning: undefined reference to `_write' /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7-m/libc.a(lib_a-closer.o): In function `_close_r': closer.c:(.text._close_r+0xc): warning: undefined reference to `_close' /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7-m/libc.a(lib_a-fstatr.o): In function `_fstat_r': fstatr.c:(.text._fstat_r+0xe): warning: undefined reference to `_fstat' /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7-m/libc.a(lib_a-isattyr.o): In function `_isatty_r': isattyr.c:(.text._isatty_r+0xc): warning: undefined reference to `_isatty' /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7-m/libc.a(lib_a-lseekr.o): In function `_lseek_r': lseekr.c:(.text._lseek_r+0x10): warning: undefined reference to `_lseek' /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7-m/libc.a(lib_a-readr.o): In function `_read_r': readr.c:(.text._read_r+0x10): warning: undefined reference to `_read' Sketch uses 34,972 bytes (6%) of program storage space. Maximum is 524,288 bytes.