From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23257 invoked by alias); 9 Oct 2014 18:44:55 -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 23243 invoked by uid 89); 9 Oct 2014 18:44:54 -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_50 autolearn=ham version=3.3.2 X-HELO: tetra.codeconfidence.com Received: from tetra.codeconfidence.com (HELO tetra.codeconfidence.com) (94.229.66.225) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 09 Oct 2014 18:44:52 +0000 Received: from cog.dallaway.org.uk (cpc1-cmbg1-0-0-cust759.5-4.cable.virginm.net [82.21.98.248]) by tetra.codeconfidence.com (Postfix) with ESMTP id 9E3DC234C02E; Thu, 9 Oct 2014 19:44:49 +0100 (BST) Received: from cog.dallaway.org.uk (cog.dallaway.org.uk [127.0.0.1]) by cog.dallaway.org.uk (8.13.8/8.13.8) with ESMTP id s99IimYv004913; Thu, 9 Oct 2014 19:44:48 +0100 Message-ID: <5436D7A0.9010105@dallaway.org.uk> Date: Thu, 09 Oct 2014 18:44:00 -0000 From: John Dallaway User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.8.0 MIME-Version: 1.0 To: Oleg Uzenkov CC: eCos Discussion References: <542D110B.9080002@unicore.co.ua> <542E8B41.8030905@dallaway.org.uk> <543003B9.20300@siva.com.mk> <5436AE5C.6060401@unicore.co.ua> In-Reply-To: <5436AE5C.6060401@unicore.co.ua> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: [ECOS] Re: redboot on STM32f4-discovery board X-SW-Source: 2014-10/txt/msg00012.txt.bz2 Hi Oleg On 09/10/14 16:48, Oleg Uzenkov wrote: > I have tried to run redboot on a custom board (very similar to > STM32f4-discovery board, so let's say that we have discovery in question). [ snip ] > I just would like to get redboot working on a board without external RAM. > > These are my findings so far: > > 1. I built redboot for ROM startup (applied relevant adjustings from > stm3240g_eval's redboot_rom.ecm) > > 2. flashed the board with redboot at 0x08000000 > > 3. > when CYGOPT_REDBOOT_FIS == 0 redboot loads, but is very unstable, can > stop working any time... But, without Flash Image System I do not see > how to use redboot to load and store and run images. > > when CYGOPT_REDBOOT_FIS == 1 redboot hangs. It happens when > do_flash_init() runs (problem in memcpy , probably illigal memory access) > > A question, can actually redboot work without external ram? > > If yes, how to fit it properly? (the board has stm32f407VE with 128+64 > KB of internal ram, 512KB internal flash) Consider the output of RedBoot on STM3240G-EVAL (from your earlier message): > RedBoot(tm) bootstrap and debug environment [ROM] > ... > Platform: ST STM3240G-EVAL (Cortex-M4) > RAM: 0x64000000-0x64200000 [0x64005d30-0x641dd000 available] > 0x20000000-0x2001f000 [0x20000000-0x2001f000 available] > 0x10000000-0x10010000 [0x10000000-0x10010000 available] > FLASH: 0x08000000-0x080fffff, 4 x 0x4000 blocks, 1 x 0x10000 blocks, 7 x 0x20000 blocks > RedBoot> This shows that RedBoot is using 0x5d30 bytes of external RAM with FIS enabled. If you have ported RedBoot to your custom board correctly, I would expect it to report internal RAM usage similar, but not identical, to the following: > RAM: 0x20000000-0x2001f000 [0x20005d30-0x2001f000 available] Is that what you are observing? So RedBoot should fit it available RAM quite easily. I would concentrate on tracking down the reliability issue when RedBoot is configured without the FIS first. Once you have a stable RedBoot without the FIS, you can then try enabling the FIS. I hope this helps.... John Dallaway eCos maintainer http://www.dallaway.org.uk/john -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss