From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 348 invoked by alias); 21 Jun 2012 01:00:26 -0000 Received: (qmail 334 invoked by uid 22791); 21 Jun 2012 01:00:24 -0000 X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,TW_BJ,TW_JC,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from bay0-omc2-s14.bay0.hotmail.com (HELO bay0-omc2-s14.bay0.hotmail.com) (65.54.190.89) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 21 Jun 2012 01:00:11 +0000 Received: from BAY163-W7 ([65.54.190.124]) by bay0-omc2-s14.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 20 Jun 2012 18:00:11 -0700 Message-ID: From: tangwei To: CC: Date: Thu, 21 Jun 2012 01:00:00 -0000 In-Reply-To: <4FE1B18B.2090702@siva.com.mk> References: ,<4FE1B18B.2090702@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 redboot trouble X-SW-Source: 2012-06/txt/msg00023.txt.bz2 Thanks,Ilija but I still have a question. Does it means=A0if I want to write a driver for kwikstik,I MUST write codes= included in the redboot,then download redboot into kwikstik to see if the = driver can work? Are there some methods to download the image(include the driver's code) int= o RAM then debug not the Flash, you know the Flash have limited write cycle= s. =A0=A0=A0 ---------------------------------------- > Date: Wed, 20 Jun 2012 13:18:35 +0200 > From: ilijak@siva.com.mk > To: tziang@hotmail.com > CC: ecos-discuss@ecos.sourceware.org > Subject: Re: [ECOS] kinetis kwikstik redboot trouble > > Hi Tangwei > > The SRAM startup is not intended for loading with Redboot, but for JTAG > or alike. You can upload it (the elf file) with J-link. > > Regards > Ilija > > > On 20.06.2012 08:19, tangwei wrote: > > Dear all, Have troubles with Kinetis kwikstik when use redboot RAM star= tup . I am a freshman to eCos,below is the steps about my troubles: > > 1. use the last CVS-eCos build the redboot from the template with no ch= anges,and get the redboot.elf;2. use arm-eabi-objcopy to get the redboot.bi= n;3. use the J-link commander to download the redboot.bin in kwikstik' flas= h from address 0x00;4. reset kwikstik,the redboot can startup successful. n= ow I want to try the RAM startup for redboot1. same as above's step 1, I on= ly change the template's start-up option from ROM startup to SRAM startup,g= et the redboot.elf;2. use arm-eabi-objcopy to get the redboot.bin;3. use mi= nicom,after the kwikstik start successful from flash, and give the "RedBoot= >" as below: RedBoot(tm) bootstrap and debug environment [ROM] Non-certifi= ed release, version UNKNOWN - built 10:12:01, Jun 14 2012 Copyright (C) 200= 0, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Found= ation, Inc. RedBoot is free software, covered by the eCos license, derived = from the GNU General Public License. You are welcome to change it and/or di= stribute copies of it under certain conditions. Under the license terms, Re= dBoot's source code and full license terms must have been made available to= you. Redboot comes with ABSOLUTELY NO WARRANTY. Platform: Freescale KwikSt= ik (Cortex-M4) RAM: 0x1fff8000-0x20007000 [0x1fffb6a8-0x20007000 available]= RedBoot> > > 4. in the minicom console, input command RedBoot > load -v -m ymodem,an= d then send the file redboot.bin from setp 2, the trouble becomming , it ca= n't send the redboot.bin correctly, > > the minicom send file's diaglog is below > > +-----------[ymodem upload - Press CTRL-C to quit]------------+ |Sendin= g: redboot.bin | |Ymodem sectors/kbytes sent: 0/ 0kRetry 0: NAK on sector |= |Ymodem sectors/kbytes sent: 2/ 0kRetry 0: Cancelled | | | |Transfer incom= plete | | | | READY: press any key to continue... |+-----------------------= --------------------------------------+ > > after press any key,the console gives below: > > RedBoot> load -v -m ymodem CUnrecognized image type: 0x20008000 xyzMode= m - CRC mode, 3(SOH)/0(STX)/0(CAN) packets, 3 retries RedBoot> > > That's all, can anybody please help me? Are there any steps I did above= were wrong? ThanksOr could anyone give me the right steps to startup redbo= ot from RAM? > > > > > > -- > 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