From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16064 invoked by alias); 28 Jun 2012 03:22:58 -0000 Received: (qmail 16055 invoked by uid 22791); 28 Jun 2012 03:22:57 -0000 X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from bay0-omc2-s2.bay0.hotmail.com (HELO bay0-omc2-s2.bay0.hotmail.com) (65.54.190.77) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 28 Jun 2012 03:22:35 +0000 Received: from BAY163-W12 ([65.54.190.123]) by bay0-omc2-s2.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 27 Jun 2012 20:22:35 -0700 Message-ID: From: tangwei To: CC: Date: Thu, 28 Jun 2012 03:22:00 -0000 In-Reply-To: <4FE98E64.4090807@siva.com.mk> References: ,<4FE1B18B.2090702@siva.com.mk> ,<4FE2C0F1.1090005@siva.com.mk> ,<4FE98E64.4090807@siva.com.mk> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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/msg00057.txt.bz2 Thanks, I have used the Makefile provided with examples,now they can run su= ccessfully. but when I want to try a example,I must use J-LINK to download the binfile = into kwikstik's flash. Is there any easy methods to do this by the redboot,such as use the redboot= 's load command, first load the file into RAM,then use the redboot's go command to execute t= he example app, if the app work successfully,then use J-LINK to download into flash. I have try this way,setp1. download redboot ROM startup for Kwikstik,and ge= t the below info when redboot startup Platform: Freescale KwikStik (Cortex-M4) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0RAM: 0x1fff8000-0x20007000 [0= x1fffb6a8-0x20007000 available]=A0 step2. download the example app twothreads.bin,use RedBoot> load -v -m ymodem =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0CCUnrecognized im= age type: 0x20008000 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0xyzModem - CRC mode, 4(SOH)/0(STX)/0(CAN) pa= ckets, 4 retries=A0 then tryRedBoot> load -r -m ymodem -b 0x1fffb6a8 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0CRaw file loaded 0x1f= ffb6a8-0x20000ae7, assumed entry at 0x1fffb6a8 =A0 =A0 =A0 =A0 =A0 =A0xyzMo= dem - CRC mode, 172(SOH)/0(STX)/0(CAN) packets, 4 retries =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0=A0RedBoot> go -c 0x1fffb6a8=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0$T050f:a8b6ff1f;0d:e86f0020;#5c both seems fail =A0---------------------------------------- > Date: Tue, 26 Jun 2012 12:26:44 +0200 > From: ilijak@siva.com.mk > To: tziang@hotmail.com > CC: ecos-discuss@ecos.sourceware.org > Subject: Re: [ECOS] kinetis kwikstik's ecos trouble > > 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 et= c;2. build the examples from the ecos/examples/ ,such as hello.c ,twothread= s.c ,simple-alarm.c > > use the command below > > /opt/ecos/gnutools/arm-eabi/bin/arm-eabi-gcc -g -D_ECOS -I ../../test/d= efault_install/include/ simple-alarm.c -L ../../test/default_install/lib -T= target.ld -nostdlib > > This command line isn't correct. Should contain flags: -mthumb > -mcpu=3Dcortex-m3 (if you are using gcc-4.6 or newer you can also put > -mcpu=3Dcortex-m4) > Recommended: -O2 > > I recommend you, as a template, to use the Makefile provided with example= s. > > 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 > =20=09=09=20=09=20=20=20=09=09=20=20 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss