how to compile the sam-ba (linux version) project

Microchip in-system programming solution: SAM-BA

Moderators: nferre, fab

pioneerdj
Posts: 2
Joined: Wed Jan 30, 2008 4:40 am

how to compile the sam-ba (linux version) project

Tue Aug 05, 2008 11:35 am

Hi all,

I use Fedora 7 as the platform.

I download the latest SAM-BA Linux version from ftp://ftp.linux4sam.org/devel/tools/sam ... nux_01.zip.
I also use the cross-compile toochain from http://www.codesourcery.com/public/gnu_ ... nu.tar.bz2.

but when I compile the project , some errors occur, below is my steps:
cd sam-ba_cdc_2.8.linux_01/applets/isp-applets/nandflash

make CROSS=~/arm-2007q1/bin/arm-none-linux-gnueabi- CHIP=at91sam9260 BOARD=at91sam9260-ek MEMORY=sdram_samba DYN_TRACES=1

error message:
/home/john/arm-2007q1/bin/arm-none-linux-gnueabi-gcc -Wall -mlong-calls -ffunction-sections -g -Os -I../../at91lib/boards/at91sam9260-ek -I../../at91lib/peripherals -I../../at91lib/memories -I../../at91lib/components -I../../at91lib -Dat91sam9260 -DDYNAMIC_TRACE_LEVEL -c -o obj/stdio.o ../../at91lib/utility/stdio.c
../../at91lib/utility/stdio.c:53: error: variable 'r' has initializer but incomplete type
../../at91lib/utility/stdio.c:53: warning: excess elements in struct initializer
../../at91lib/utility/stdio.c:53: warning: (near initialization for 'r')
../../at91lib/utility/stdio.c:53: warning: excess elements in struct initializer
../../at91lib/utility/stdio.c:53: warning: (near initialization for 'r')
../../at91lib/utility/stdio.c:53: warning: excess elements in struct initializer
../../at91lib/utility/stdio.c:53: warning: (near initialization for 'r')
../../at91lib/utility/stdio.c:53: warning: excess elements in struct initializer
../../at91lib/utility/stdio.c:53: warning: (near initialization for 'r')
make: *** [obj/stdio.o] Error 1

Does anybody meet the same problem or just help me to resolve this problem?

Thanks

John
stroomstoot
Location: Eindhoven
Posts: 1
Joined: Mon Aug 18, 2008 8:05 pm

compilation problem

Thu Aug 21, 2008 11:02 am

Hi All,

I'am using CentOS 5 as the platform. With a armv5l-softfloat-linux cross-compiler.

when i compile the project, exactly the same errors occur:

obj/stdio.o ../../at91lib/utility/stdio.c
../../at91lib/utility/stdio.c:53: error: variable 'r' has initializer but incomplete type
../../at91lib/utility/stdio.c:53: warning: excess elements in struct initializer
../../at91lib/utility/stdio.c:53: warning: (near initialization for 'r')
../../at91lib/utility/stdio.c:53: warning: excess elements in struct initializer
../../at91lib/utility/stdio.c:53: warning: (near initialization for 'r')
../../at91lib/utility/stdio.c:53: warning: excess elements in struct initializer
../../at91lib/utility/stdio.c:53: warning: (near initialization for 'r')
../../at91lib/utility/stdio.c:53: warning: excess elements in struct initializer
../../at91lib/utility/stdio.c:53: warning: (near initialization for 'r')
make: *** [obj/stdio.o] Error 1

Is there anybody who knows how to resolve this problem?

Thanks

Gerco
ManuelSahm
Posts: 82
Joined: Tue Jun 26, 2007 6:27 pm

Wed Aug 27, 2008 7:45 am

Hi, I am using a SuSe Linux host System with the arm CrossCompiler from CODESOURCERY.

I have the sam errors too concerning the stdio.c file !!!!!


How could I compile the applets ??

Thanks

M. Sahm
maggi9999
Posts: 6
Joined: Wed Feb 04, 2009 11:16 am

Re: how to compile the sam-ba (linux version) project

Thu Feb 12, 2009 2:33 pm

hi

while cross compling examples given for at91sam9rl64 evaluation kit in software_kit/sam9rl-ek/html/examples.html

i am facing same error.doing the cross compling in fedora 9 with arm-none-linux-gnueabi-gcc cross compiler.

can any tell me why am i getting that?
glista
Posts: 1
Joined: Wed Jun 03, 2009 1:53 pm

Re: how to compile the sam-ba (linux version) project

Wed Jun 03, 2009 1:57 pm

Hi,

you are using the wrong toolchain, for SAM-BA you should try http://www.codesourcery.com/sgpp/lite/a ... nu.tar.bz2

Return to “SAM-BA”

Who is online

Users browsing this forum: No registered users and 1 guest