From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7943 invoked by alias); 3 Jul 2012 07:10:18 -0000 Received: (qmail 7929 invoked by uid 22791); 3 Jul 2012 07:10:15 -0000 X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=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, 03 Jul 2012 07:10:01 +0000 Received: from [31.12.21.124] (port=60434 helo=[192.168.1.164]) by tirion.supremecenter202.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.77) (envelope-from ) id 1SlxFI-0000Pz-CC; Tue, 03 Jul 2012 07:10:00 +0000 Message-ID: <4FF29AC5.5070605@siva.com.mk> Date: Tue, 03 Jul 2012 07:10: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> ,<4FE98E64.4090807@siva.com.mk> ,<4FEED299.6000001@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-07/txt/msg00007.txt.bz2 On 02.07.2012 07:51, tangwei wrote: > Dear ilijak > for your advise: >> 1. With Redboot you should load the elf file rather bin > If I use the redboot ROM startup for kwikstik, after redboot startup can I download the example app,such as hello.elf into the kwikstik's RAM, > and then use the redboot's go command to execute the app? You can't do it if your application startup type is SRAM. You will need something like RAM startup (look TWR-K70F120M for example) but with internal SRAM instead of external RAM. But then I'm afraid that there will be very little memory for application. > If above can work,can you give me the correct command,thanks a lot. The only thing I can recommend, considering SRAM limitation is to use J-link with some GDB server, such as OpenOCD. Ilija > > > > ---------------------------------------- >> Date: Sat, 30 Jun 2012 12:19:05 +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 28.06.2012 05:22, tangwei wrote: >>> Thanks, I have used the Makefile provided with examples,now they can run successfully. >>> 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 the 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 get the below info when redboot startup >>> Platform: Freescale KwikStik (Cortex-M4) RAM: 0x1fff8000-0x20007000 [0x1fffb6a8-0x20007000 available] >>> step2. download the example app twothreads.bin,use >>> RedBoot> load -v -m ymodem CCUnrecognized image type: 0x20008000 xyzModem - CRC mode, 4(SOH)/0(STX)/0(CAN) packets, 4 retries >>> then tryRedBoot> load -r -m ymodem -b 0x1fffb6a8 CRaw file loaded 0x1fffb6a8-0x20000ae7, assumed entry at 0x1fffb6a8 xyzModem - CRC mode, 172(SOH)/0(STX)/0(CAN) packets, 4 retries RedBoot> go -c 0x1fffb6a8 $T050f:a8b6ff1f;0d:e86f0020;#5c >>> both seems fail >> There are 2 issues: >> >> 1. With Redboot you should load the elf file rather bin. >> >> 2. I assume you are using SRAM startup type for twothreads and it's not >> intended for loading with Redboot. You should instead use J-link with >> some GDB server. OpenOCD is known to work. >> >> 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 >> > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss