From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3132 invoked by alias); 20 Jun 2012 11:18:57 -0000 Received: (qmail 3119 invoked by uid 22791); 20 Jun 2012 11:18:55 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,TW_BJ,TW_JC 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; Wed, 20 Jun 2012 11:18:43 +0000 Received: from [195.189.206.101] (port=52374 helo=[192.168.209.103]) by tirion.supremecenter202.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.77) (envelope-from ) id 1ShIvn-00061n-E9; Wed, 20 Jun 2012 11:18:41 +0000 Message-ID: <4FE1B18B.2090702@siva.com.mk> Date: Wed, 20 Jun 2012 11:18: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: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00018.txt.bz2 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 sta= rtup . 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 chan= ges,and get the redboot.elf;2. use arm-eabi-objcopy to get the redboot.bin;= 3. use the J-link commander to download the redboot.bin in kwikstik' flash = from address 0x00;4. reset kwikstik,the redboot can startup successful. now= I want to try the RAM startup for redboot1. same as above's step 1, I only= change the template's start-up option from ROM startup to SRAM startup,get= the redboot.elf;2. use arm-eabi-objcopy to get the redboot.bin;3. use mini= com,after the kwikstik start successful from flash, and give the "RedBoot >= " as below: RedBoot(tm) bootstrap and debug environment [ROM] = Non-certified release, version UNKNOWN - built 1= 0:12:01, Jun 14 2012 = Copyright (C) 2000, 2001, 2002, 2003= , 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, In= c. RedBoot is free soft= ware, covered by the eCos license, derived from the GNU General = Public License. You are welcome to change it and/or distribute copi= es of it under certain conditions. Under the license terms, RedBoot's = source code and full license terms must have been made available to you= . Redboot comes with ABSOLUTELY NO WARRANTY. Platform: Fre= escale KwikStik (Cortex-M4) RAM: = 0x1fff8000-0x20007000 [0x1fffb6a8-0x20007000 available] = RedBoot>=20 > 4. in the minicom console, input command RedBoot > load -v -m ymodem,and = then send the file redboot.bin from setp 2, the trouble becomming , it can= 't send the redboot.bin correctly,=20 > the minicom send file's diaglog is below > +-----------[ymodem upload - Press CTRL-C to quit]------------+ |Se= nding: redboot.bin | |Ymodem = sectors/kbytes sent: 0/ 0kRetry 0: NAK on sector | |Ymodem secto= rs/kbytes sent: 2/ 0kRetry 0: Cancelled | | = | |Transfer inc= omplete | | = | | READY: press any= key to continue... |+-----------------------------= --------------------------------+=20=20=20 > after press any key,the console gives below: > RedBoot> load -v -m ymodem = CUnrecognized image type: 0x20008000 = xyzModem - CRC mode, 3(SOH)/0(STX)/0(CAN) packets, 3 retries = RedBoot>=20 > That's all, can anybody please help me? Are there any steps I did above w= ere wrong? ThanksOr could anyone give me the right steps to startup redboot= from RAM?=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