From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27025 invoked by alias); 9 Oct 2014 21:12:34 -0000 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 Received: (qmail 27011 invoked by uid 89); 9 Oct 2014 21:12:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,MALFORMED_FREEMAIL,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-lb0-f181.google.com Received: from mail-lb0-f181.google.com (HELO mail-lb0-f181.google.com) (209.85.217.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 09 Oct 2014 21:12:32 +0000 Received: by mail-lb0-f181.google.com with SMTP id l4so1918754lbv.40 for ; Thu, 09 Oct 2014 14:12:29 -0700 (PDT) X-Received: by 10.152.4.194 with SMTP id m2mr154542lam.63.1412889148971; Thu, 09 Oct 2014 14:12:28 -0700 (PDT) Received: from sg-laptop ([178.121.189.145]) by mx.google.com with ESMTPSA id xu12sm1270877lab.12.2014.10.09.14.12.27 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 09 Oct 2014 14:12:28 -0700 (PDT) Date: Thu, 09 Oct 2014 21:12:00 -0000 From: Sergei Gavrikov To: Oleg Uzenkov cc: eCos Discussion In-Reply-To: <5436AE5C.6060401@unicore.co.ua> Message-ID: References: <542D110B.9080002@unicore.co.ua> <542E8B41.8030905@dallaway.org.uk> <543003B9.20300@siva.com.mk> <5436AE5C.6060401@unicore.co.ua> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Subject: Re: [ECOS] redboot on STM32f4-discovery board X-SW-Source: 2014-10/txt/msg00013.txt.bz2 On Thu, 9 Oct 2014, Oleg Uzenkov wrote: > But, without Flash Image System I do not see how to use redboot to > load and store and run images. Even for builds (CYGOPT_REDBOOT_FIS == 0) you can manage FLASH using absolute FLASH addresses and FIS sub-commands: erase and write. When you make RedBoot work smoothly on your target, then you can try to load images directly to FLASH if you enable cdl_option CYGBLD_REDBOOT_LOAD_INTO_FLASH { user_value 1 }; eCos is designed with XIP (eXecute In Place) in mind and you can use RedBoot 'go' command to execute ROM image from specified place of FLASH. For simple applications it would be enough just to shift *rom* ORIGIN address and *rom_vectors* address in `target.ld' file and re-link ROM application, then with the option above it is possible to load and run such ROM image as load -m go I call that it worked on my target (load-into-flash-and-go). However, you need to inspect and may be fix HAL startup files for such "FLASH" builds. Sergei -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss