LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

Adopt emb.LV to emb.Linux Target ARM9 Prozessor

Hi,

Based on this output, it appears that critical sections code has not been defined. This might be due to missing defines in the makefile.
--
Michael P
National Instruments
0 Kudos
Message 41 of 56
(6,777 Views)
Hello,Michael
         I changed the third toolchain and made some changes in the CCodeGen,We can build arm-elf-rt.a and arm-elf-rtd.a,But when i build the program in the labview,the new error appeared :
D:\program files\labview 8.5\Targets\NI\Embedded\unix\m5329evb\libs\arm-elf-rt.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
Can you give me some advice?Thank you very much!
 
 
lianzi
i like thinking ,i enjoy doing the work.baxia
0 Kudos
Message 42 of 56
(6,764 Views)
Hi,

As far as I know, you only need ranlib with dynamic libraries, but you are building the runtime libraries as static libraries. Are you using the '-l' option in your script linker VI? If so, you should just include the path/name.a of the libraries.
--
Michael P
National Instruments
0 Kudos
Message 43 of 56
(6,758 Views)
Hello,Michael
      I added the path/name.a of the libraries in the LEP_unix_m5329evb_Prepare.vi,but the error is the same?Maybe it is about the makefile?
In the labview project:
My complier flags is as follows:
-g -w -I. -DCHeadless=0 -Dlinux -fno-strict-aliasing -fno-common -fomit-frame-pointer 
My linker flag is as follows
-g-m5307 -lc -lgcc -lm -lstdc++ 
 
The cflags in the makefile is as follows:
CFLAGS = -DCHeadless=1 $(OPTS) -Wall -Dlinux -D_LIB -fno-strict-aliasing -fno-common -S
 
Thank you
i like thinking ,i enjoy doing the work.baxia
0 Kudos
Message 44 of 56
(6,754 Views)
Hi,

Can you send the Makefiles? Also, set breakpoints in the VIs that script the compiler and the linker and send us the command line strings that are sent from LabVIEW.
--
Michael P
National Instruments
0 Kudos
Message 45 of 56
(6,751 Views)

Hello,Michael

       The Makefile i used is as follows,It's so strange that i have already added the 'ranlib' in the Makefile,but the error is the same!

i like thinking ,i enjoy doing the work.baxia
Download All
0 Kudos
Message 46 of 56
(6,739 Views)
Hello,Michael
        I build a simple library in the linux,the same error appeared.
[root@localhost test]# arm-elf-gcc -c fun.c
[root@localhost test]# arm-elf-ar q func.a fun.c
[root@localhost test]# arm-elf-gcc -I./main.c fun.a
fun.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
But when i did the same work in the cygwin,there wasn't any error,At the same time it cann't build the a.exe.
Maybe it's the complier's problem,isn't it?
 
Thank you very much!
 
lianzi
i like thinking ,i enjoy doing the work.baxia
0 Kudos
Message 47 of 56
(6,713 Views)
Hello,Michael
        Could send me the third toolchain (about the armtools) in the Phytec LPC229x,eCos target ,or where can i down it?I think maybe it's the problem about my armtools in the cygwin.Thank you very much!
 
lianzi
i like thinking ,i enjoy doing the work.baxia
0 Kudos
Message 48 of 56
(6,664 Views)
Hi,

Instructions on installing the ecos toolchain are located here: http://ecos.sourceware.org/getstart.html. Good luck!
--
Michael P
National Instruments
0 Kudos
Message 49 of 56
(6,644 Views)
Hello,Michael
      It can build the .out file now  except the warning:
/armtools/arm-elf/bin/ld.real: warning: cannot find entry symbol _start; defaulting to 00008000
I want to ask you about how to set the symbol _start.Thank you!
 
lianzi
i like thinking ,i enjoy doing the work.baxia
0 Kudos
Message 50 of 56
(6,605 Views)