industrialNETworXnetx

| 10.10.2008 | 08:48 | 2 replies

librcx.a problem

Hallo,
i get the following ERROR:

arm-hitex-elf-gcc.exe -c -mlong-calls -mcpu=arm926ej-s -fshort-enums -gdwarf-2 -Wall -O0 -mapcs -mthumb-interwork -D_NETX_HITOP_ -D__RCX__   -I.\Includes\ -I.\Lib\ -I.\Includes\API\ -I.\Includes\configuration\ -I.\Includes\Cpunetx\ -I.\Includes\TLR\ -o .\Output\Config_SimpleExample.o .\Sources\Config_SimpleExample.c 

arm-hitex-elf-as.exe -mcpu=arm926ej-s -gdwarf2 -mthumb-interwork -I.\Includes\ -I.\Lib\ -I.\Includes\API\ -I.\Includes\configuration\ -I.\Includes\Cpunetx\ -I.\Includes\TLR\ -o .\Output\InitGnu.o .\Sources\InitGnu.s

arm-hitex-elf-gcc.exe -c -mlong-calls -mcpu=arm926ej-s -fshort-enums -gdwarf-2 -Wall -O0 -mapcs -mthumb-interwork -D_NETX_HITOP_ -D__RCX__ -I.\Includes\ -I.\Lib\ -I.\Includes\API\ -I.\Includes\configuration\ -I.\Includes\Cpunetx\ -I.\Includes\TLR\ -o .\Output\SimpleExample.o .\Sources\SimpleExample.c

arm-hitex-elf-gcc.exe -c -mlong-calls -mcpu=arm926ej-s -fshort-enums -gdwarf-2 -Wall -O0 -mapcs -mthumb-interwork -D_NETX_HITOP_ -D__RCX__ -I.\Includes\ -I.\Lib\ -I.\Includes\API\ -I.\Includes\configuration\ -I.\Includes\Cpunetx\ -I.\Includes\TLR\ -o .\Output\helper.o .\Sources\helper.c

arm-hitex-elf-ld.exe -T.\netx_sdram.ld.tmp -static -( -lrcx -lc -lm -lgcc -) -Map=output/example.map -o .\Output\LedX.elf
./Lib/librcx.a(libc_mem_support.o): In function `libc_mem_init':
libc_mem_support.c:(.text+0x98): undefined reference to `_heap_start'
libc_mem_support.c:(.text+0xa0): undefined reference to `_heap_end'
./Lib/librcx.a(libc_mem_support.o):(.data+0x0): undefined reference to `_heap_end'
./Lib/librcx.a(libc_mem_support.o):(.data+0x4): undefined reference to `_heap_start'

?????

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 10.10.2008 | 09:10

Hi,

the problem is in your *.ld file.
There is the entry:

PROVIDE (_heap_start = .); /* starts right after the last data section */
PROVIDE (_heap_end = 0x80000000 + 8M); /* ends at 8MB from SDRAM start */
missing.

Please download the latest HiTOP Project Template or the latest rcX update from the Hilscher web page.

| 10.10.2008 | 11:53

OK, Problem solved.
Thans for the Help.
Abslimo

Login