From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21256 invoked by alias); 9 Oct 2014 14:08:16 -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 21231 invoked by uid 89); 9 Oct 2014 14:08:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_SORBS_WEB autolearn=no version=3.3.2 X-HELO: xm21.hostsila.net Received: from xm21.hostsila.net (HELO xm21.hostsila.net) (80.91.189.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 09 Oct 2014 14:08:09 +0000 Received: from [195.20.130.1] (port=60535 helo=[10.1.7.235]) by xm21.hostsila.net with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1XcEP1-003Hbf-Kl; Thu, 09 Oct 2014 17:09:11 +0300 Message-ID: <543696C4.2040201@unicore.co.ua> Date: Thu, 09 Oct 2014 14:08:00 -0000 From: Oleg Uzenkov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Sergei Gavrikov CC: eCos Discussion References: <542D110B.9080002@unicore.co.ua> <542E8B41.8030905@dallaway.org.uk> <5436726C.8000703@unicore.co.ua> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Get-Message-Sender-Via: xm21.hostsila.net: authenticated_id: o.uzenkov@unicore.co.ua X-IsSubscribed: yes Subject: Re: [ECOS] redboot on STM3240G-EVAL board X-SW-Source: 2014-10/txt/msg00009.txt.bz2 Thank you very much, Sergei! the way you described works just fine: RedBoot> load -m x RedBoot> fis create app RedBoot> fis load app RedBoot> go the app gets executed correctly! Huray! ELF files are quite large, what is the preferred format for an image to be passed to redboot? what "load" and "fis create" command look like? Oleg > On Thu, 9 Oct 2014, Oleg Uzenkov wrote: > >> 4. Build app.elf now for RAM startup. > First, check that application runs as expected in GDB (reset board) > > -gdb -q -nx app.elf > (gdb) target remote > (gdb) load > (gdb) continue > > If you see the expected output, then try the below as > >> 5. Transfer app.elf to redboot via serial xmodem >> I transfer it to external ram first. >> >> RedBoot> load -r -m xmodem -b 0x64010000 > Do not use -r(aw), and -b(ase) switches if you load *ELF* images. If you > use serial port, load ELFs as > > RedBoot> load -m x > >> 6. Create fis entry for the app >> >> RedBoot> fis create -b 0x64010000 -f 0x08040000 app > Again, no need to force base address, if the previous command was > `load' (load of ELF). Just type > > RedBoot> fis create > > Thus, do not use odd switches if you load and save ELFs on FIS, do > > RedBoot> load -m x > RedBoot> fis create > RedBoot> fis load > RedBoot> go > > Also I suggest to use standard eCos tests (RAM builds) as the first > eCos applications, i.e. `make tests' and play with them (load and go). > > HTH > > 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