From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5943 invoked by alias); 26 Jun 2012 10:27:12 -0000 Received: (qmail 5929 invoked by uid 22791); 26 Jun 2012 10:27:09 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from tirion.supremecenter202.com (HELO tirion.supremecenter202.com) (209.25.195.243) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 26 Jun 2012 10:26:51 +0000 Received: from [195.189.206.101] (port=34619 helo=[192.168.209.103]) by tirion.supremecenter202.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.77) (envelope-from ) id 1SjSyv-0007Bo-Gx; Tue, 26 Jun 2012 10:26:51 +0000 Message-ID: <4FE98E64.4090807@siva.com.mk> Date: Tue, 26 Jun 2012 10:27:00 -0000 From: Ilija Kocho User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: tangwei CC: ecos-discuss@ecos.sourceware.org References: ,<4FE1B18B.2090702@siva.com.mk> ,<4FE2C0F1.1090005@siva.com.mk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] kinetis kwikstik's ecos trouble X-SW-Source: 2012-06/txt/msg00045.txt.bz2 On 26.06.2012 08:39, tangwei wrote: > Dear all, > redboot have run on my kwikstik ok, but I am not sure whether the ecos is OK, my steps is below: > use the CVS version which contains freescale's kwikstik template, > 1. use the default setting for kwikstik to get the "libtarget.a" and etc;2. build the examples from the ecos/examples/ ,such as hello.c ,twothreads.c ,simple-alarm.c > use the command below > /opt/ecos/gnutools/arm-eabi/bin/arm-eabi-gcc -g -D_ECOS -I ../../test/default_install/include/ simple-alarm.c -L ../../test/default_install/lib -Ttarget.ld -nostdlib This command line isn't correct. Should contain flags: -mthumb -mcpu=cortex-m3 (if you are using gcc-4.6 or newer you can also put -mcpu=cortex-m4) Recommended: -O2 I recommend you, as a template, to use the Makefile provided with examples. I hope this helps. Ilija -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss